LLM VRAM Calculator 2026 Hardware Guide
Estimate GPU memory requirements for running local LLMs. Compare quantization levels, context windows, batch sizes, standard GQA attention and DeepSeek-style MLA KV cache.
LLM VRAM estimate comparison
Calculated using the same estimation method as the calculator: 4.5 bits/weight, 8% weight allowance, 8,192-token context, batch 1, FP16 KV cache and a 1.5 GiB runtime reserve. Values are estimates, not measured benchmark results.
| Model | Architecture used | Estimated total | Capacity target (+10%) | Indicative setup |
|---|---|---|---|---|
| Llama 3.2 3B | 28 layers · 8 KV heads | — | — | Single GPU class |
| Llama 3.3 8B | 32 layers · 8 KV heads | — | — | Single / multi GPU depends on quantization |
| Qwen 2.5 14B | 48 layers · 8 KV heads | — | — | Single / multi GPU depends on quantization |
| Qwen 2.5 32B | 64 layers · 8 KV heads | — | — | Multi-GPU or large unified memory |
| Gemma 2 27B | 46 layers · 16 KV heads | — | — | Multi-GPU or large unified memory |
| Llama 3.3 70B | 80 layers · 8 KV heads | — | — | Multi-GPU |
| Mistral Large 2 123B | 88 layers · 8 KV heads | — | — | Multi-GPU / large unified memory |
| DeepSeek V3 / R1 671B | 61 layers · MLA | — | — | Distributed multi-GPU |
Local GPU vs. Cloud API: TCO considerations
There is no universal break-even point. Local inference economics depend on the hardware purchase price, utilization, electricity, maintenance, model performance and the API workload being replaced.
Model weights
Raw weight memory is approximated as parameters × bits per weight ÷ 8. The adjustable allowance accounts for the fact that real quantized files and runtime loaders do not always match the ideal bit count.
Standard GQA KV cache
2 × layers × KV heads × head dimension × context × batch × bytes. The factor of two represents keys and values. Grouped-query attention reduces KV memory by using fewer KV heads than query heads.
MLA and MoE models
For the DeepSeek-style MLA preset, the cache estimate uses a 576-element latent representation rather than the standard K/V head formula. MoE weight memory uses total model parameters: active parameters per token describe compute, not the full weight footprint when all experts are resident.
Inference is not fine-tuning
This calculator estimates inference only. Training and fine-tuning can require substantially more memory for gradients, optimizer states, activations and checkpointing. Use a dedicated fine-tuning estimator for those workloads.