How mhxdali/llm-gpu-capacity-planner works
This is a small command-line GPU capacity planner. A user supplies model, context, concurrency, and optionally GPU memory; the CLI obtains GPU usage or uses the supplied capacity, fetches Ollama model metadata, estimates VRAM, and reports whether it fits. The calculator and CLI excerpts show the runtime calls; hardware and model-service behavior is described in the README.
Main entry points: check.py Input and verdict CLI · calculator.py Ollama model specs
Components 7
CLI workflow
- Input and verdict CLI
check.py - NVIDIA GPU query
check.py
VRAM calculation
- Ollama model specs
calculator.py - VRAM estimator
calculator.py
Other components
- Planner user
- Ollama service
- nvidia-smi
Connections 7
- Planner user → Input and verdict CLI: runs with options
README.md - Input and verdict CLI → NVIDIA GPU query: queries GPU
check.py - NVIDIA GPU query → nvidia-smi: runs command
check.py - Input and verdict CLI → Ollama model specs: requests model data
check.py - Ollama model specs → Ollama service: fetches metadata
calculator.py - Input and verdict CLI → VRAM estimator: requests estimate
check.py - Input and verdict CLI → Planner user: prints fit verdict
check.py