LLM VRAM Calculator
Pick a model, quantization and context length to see how much GPU memory it needs and which GPUs can run it. An 8B model needs about 6.3 GB at Q4_K_M with 8K context; a 70B model needs about 43.2 GB.
6.3 GB VRAM
Llama 3.1 8B at Q4_K_M with 8K context and the KV cache in FP16.
- Weights 4.5 GB
- KV cache 1.0 GB
- Runtime overhead 0.8 GB
Which GPUs can run it
- RTX 3060 12GBFits~43 tok/s
- RTX 4060 Ti 16GBFits~34 tok/s
- RTX 3090 24GBFits~109 tok/s
- Radeon RX 7900 XTX 24GBFits~95 tok/s
- RTX 4090 24GBFits~117 tok/s
- RTX 5090 32GBFits~202 tok/s
- RTX 6000 Ada 48GBFits~111 tok/s
- A100 80GBFits~227 tok/s
- H100 80GB SXMFits~357 tok/s
- Ryzen AI Max+ 395 128GBFits~28 tok/s
- Apple M4 Max 128GBFits~64 tok/s
- Apple M5 Max 128GBFits~72 tok/s
- RTX PRO 6000 Blackwell 96GBFits~202 tok/s
- NVIDIA DGX Spark 128GBFits~30 tok/s
- Apple M3 Ultra 512GBFits~95 tok/s
Llama 3.1 8B VRAM requirements: every quantization and context length →
How the estimate works
Total VRAM is the sum of three parts, each calculated from the model's own config.json rather than a flat percentage:
- Weights = parameters × bits per weight ÷ 8. Q4_K_M averages about 4.85 bits because GGUF keeps some tensors at higher precision.
- KV cache = 2 × layers × KV heads × head dimension × bytes per value × tokens. Sliding-window layers (Gemma 3 and 4, gpt-oss), latent attention (DeepSeek, Kimi, Mistral Small 4), hybrid linear attention (Qwen 3.5 and later) and shared-KV layers (Gemma 4 E2B/E4B) are handled separately.
- Overhead = the CUDA or Metal context plus compute buffers, about 0.6–1.2 GB depending on vocabulary size.
A model is marked as fitting when the total is within 94% of usable memory. The full formulas and their limits are on the methodology page.
VRAM needed by popular models
At Q4_K_M (or the official native format) with 8K context and FP16 KV cache:
| Model | Weights | Total at 8K | Smallest VRAM tier |
|---|---|---|---|
| Llama 3.2 3B Q4_K_M | 1.8 GB | 3.5 GB | 4 GB |
| Gemma 4 E4B Q4_K_M | 4.5 GB | 5.7 GB | 8 GB |
| Llama 3.1 8B Q4_K_M | 4.5 GB | 6.3 GB | 8 GB |
| Qwen 3.5 9B Q4_K_M | 5.1 GB | 6.4 GB | 8 GB |
| Qwen 3 14B Q4_K_M | 8.4 GB | 10.5 GB | 12 GB |
| gpt-oss-20b MXFP4 (official) | 12.8 GB | 13.9 GB | 16 GB |
| Mistral Small 3.1 24B Q4_K_M | 13.6 GB | 15.6 GB | 20 GB |
| Gemma 4 26B-A4B Q4_K_M | 14.2 GB | 15.6 GB | 20 GB |
| Qwen 3.6 27B Q4_K_M | 15.2 GB | 16.9 GB | 20 GB |
| Gemma 4 31B Q4_K_M | 17.3 GB | 19.8 GB | 24 GB |
| Qwen 3.6 35B-A3B Q4_K_M | 19.8 GB | 21.0 GB | 24 GB |
| Qwen 3 32B Q4_K_M | 18.5 GB | 21.4 GB | 24 GB |
| Llama 3.3 70B Q4_K_M | 39.9 GB | 43.2 GB | 48 GB |
| Qwen 3.5 122B-A10B Q4_K_M | 68.9 GB | 70.2 GB | 80 GB |
| gpt-oss-120b MXFP4 (official) | 60.8 GB | 62.0 GB | 80 GB |
Browse by model, GPU or VRAM
More calculators
Frequently asked questions
How much VRAM do I need to run an LLM?
Roughly the model size in billions × 0.6 GB at Q4_K_M, plus memory for context. A 7–8B model needs about 6.3 GB with 8K context, a 32B model about 21.4 GB, and a 70B model about 43.2 GB.
Can I run a 70B model on 24 GB of VRAM?
Not fully. Llama 3.3 70B needs about 43.2 GB at Q4_K_M. On 24 GB you can offload part of it to system RAM, but speed drops to a few tokens per second. Two 24 GB cards or 64 GB+ of unified memory run it properly.
Does context length affect VRAM?
Yes. Every token in the context stores keys and values for every layer. Llama 3.1 8B uses 128 KB per token in FP16, so 32K of context adds 4 GB and 128K adds 16 GB. Quantizing the KV cache to Q8_0 roughly halves that.
Do MoE models need VRAM for total or active parameters?
Total. Every expert must be in memory because any token can route to any expert. The active parameter count only sets the speed, which is why gpt-oss-120b (5.1B active) runs fast on 128 GB unified-memory systems.
Is Apple unified memory the same as VRAM?
Close, with a limit. macOS lets the GPU use about 75% of memory on larger Macs (about two thirds on smaller ones) by default. A 128 GB Mac has roughly 96 GB usable for models, and you can raise the limit with the iogpu.wired_limit_mb setting.
Why does my model use more VRAM than calculated?
Common causes are a larger context than you think (some apps default to the model maximum), several parallel sequences, a vision encoder loaded alongside the model, or another app using the GPU. Your desktop and browser can take 0.5–1.5 GB on a GPU that also drives a display.