How much VRAM do you need for 7B, 13B, 34B and 70B models
VRAM use has three parts: model weights, KV cache (which grows with context length) and runtime overhead. You can estimate each with simple arithmetic.
Weights
Weight memory is roughly parameters times bits per weight, divided by 8. Quantized formats use slightly more than their nominal bits because of scale metadata. Common approximations:
- FP16 / BF16: 16 bits per weight.
- Q8_0 (GGUF): about 8.5 bits per weight.
- Q4_K_M (GGUF): about 4.8 to 4.9 bits per weight.
| Model class | FP16 | Q8_0 | Q4_K_M |
|---|---|---|---|
| 7B | about 14 GB | about 7.5 GB | about 4.2 GB |
| 13B | about 26 GB | about 14 GB | about 8 GB |
| 34B | about 68 GB | about 36 GB | about 21 GB |
| 70B | about 140 GB | about 74 GB | about 42 GB |
These are weights only, computed from the nominal parameter count. Real models differ a little (an "8B" model can have 8.03 billion parameters, for instance), and tied or untied embeddings change the total. Check the actual file size of the quantized file you plan to download; it is the most reliable number.
KV cache
The KV cache stores attention keys and values for every token in the context. Per token it is: 2 (K and V) times layers times KV heads times head dimension times bytes per value. Models using grouped-query attention have far fewer KV heads than attention heads, which shrinks it a lot.
Worked examples at 16-bit cache, using published architecture values:
- Llama 3.1 8B (32 layers, 8 KV heads, head dim 128): 128 KiB per token, so about 1 GiB at 8,192 tokens.
- Llama 3.1 70B (80 layers, 8 KV heads, head dim 128): 320 KiB per token, so about 2.5 GiB at 8,192 tokens.
Older models without grouped-query attention have much larger caches. Long-context use scales linearly: 128k tokens on the 8B example above is on the order of 16 GiB of cache alone. Some engines can store the cache in 8-bit to halve this, at some quality cost.
Overhead
Budget around 1 GB or more for the CUDA context, compute buffers and fragmentation, and more if you run a display on the same GPU or batch several requests.
Putting it together
| Goal | Rough VRAM to plan for |
|---|---|
| 7B to 8B at Q4_K_M, 8k context | about 6 to 8 GB |
| 13B to 14B at Q4_K_M, 8k context | about 10 to 12 GB |
| 30B to 34B at Q4_K_M, 8k context | about 24 GB, tight |
| 70B at Q4_K_M, 8k context | about 46 to 48 GB, so two 24 GB cards is tight |
Treat the table as a planning range, not a guarantee. The 70B line assumes grouped-query attention; check the specific model card.
If it does not fit
- Drop to a lower quantization (see quantization explained).
- Shorten the context or quantize the KV cache.
- Offload some layers to system RAM; this works but is much slower, bounded by RAM bandwidth.
- Add a second GPU (dual-GPU rigs) or consider unified memory (Apple Silicon).
The picker's VRAM check uses this same weights plus KV cache plus overhead structure; its KV cache is estimated from parameter count when architecture data is missing, so treat it as an estimate.
Disclosure: some links on this site may be affiliate links, and we may earn a commission if you buy. It never changes how builds are ranked. See the affiliate disclosure.
Ready to check a specific model? Pick a model and quantization and see compatible builds with estimated VRAM fit.