LLM VRAM & KV-Cache Calculator
Interactive GPU memory sizing for LLM inference: model weights, architecture-exact KV cache (GQA, MLA, MoE, sliding window), prefix sharing, MIG slices, and ready-to-run vLLM commands.
1. Model & Precision
config.json exactPaste Hugging Face config.json (auto-fill)
Weight quantization
KV cache dtype
2. Workload & Prefix Cache
KV scales here
8,192 tokens
32 requests
0% shared
When requests share a system prompt or tool definitions, prefix caching stores the shared portion once instead of duplicating it per user.
3. GPU, MIG & Budget
Target hardwareTensor Parallelism (GPUs)
0.90
2.0 GB / GPU
FITS WITH HEADROOM
Model Weights
-
KV / Token
-
Max Concurrency
-
Decode Ceiling
-
VRAM Budget Breakdown
Decimal GB (1e9 bytes)How Context Length Changes Concurrency
Same GPU, different prompt lengths| Tokens / request | KV / request | Max concurrent | Window |
|---|
Memory ceiling only, not a latency promise. Check your real TTFT and TPOT knee with a load test.
Will It Fit Across Hardware?
Click any card to switch targetGenerated Serving Config
Synced to your slidersExact Math Behind These Numbers
Live formula walkthroughDeep-dive guides behind this tool: