How much VRAM does Qwen 2.5 72B need at Q4_K_M? Long-context inference

By TechCompare · Updated · How we check

At the full 128K context the KV cache takes 43 GB. If you don't use all of that context, set it to 8K or 16K in your inference engine, which cuts the cache to 5.4 GB at 16K. A Q8 KV cache is the other lever.

Calculator

Estimated VRAM required

95.6 GB

72B params at Q4_K_M, 131,072 token context, batch 1, inference.

Weights
44.0 GB
KV cache
43.0 GB
Overhead
8.7 GB

Estimate accuracy: Weights within ~3% of most GGUF files from Q4_K_M up, ~7% for Q3_K_M and Q2_K. KV cache within ~5% for standard GQA models, ~10% for MLA or hybrid state estimates. Real VRAM may vary with framework (vLLM vs llama.cpp vs Transformers), Flash Attention, and driver overhead.

Hardware that fits

Unified memory machines show a model budget, not their installed memory. We hold back 8 GB for the system, or use the vendor's GPU limit when that's lower. It's a planning estimate, not a hard limit.

RTX PRO 6000 96GB
Pro
96 GB
100% used
AMD Ryzen AI Max+ 395 128GB
Unified
~112 GB
86% of estimate
Apple M5 Max 128GB
Unified
~120 GB
80% of estimate

Multi-GPU setups

4× RTX 5090
Consumer · 24.7 GB per card
128 GB
77% used

Pooled cards show up once a model outgrows the biggest single card of that kind. Each card past the first keeps about 1 GB for its own buffers, and that's counted here. Your inference engine has to support the split, and speed also depends on how the cards connect.

Qwen 2.5 72B at Q4_K_M with the model's native 128K context needs about 95.6 GB of VRAM. Note how the long context cache of 43 GB is nearly as big as the 44 GB of weights.

How this is calculated

At 128K with FP16 KV, the cache for this model is around 43 GB on its own. Weights take 44.0 GB, and overhead is 8.7 GB, totaling 95.6 GB.

Verdict

For 70B-class models at native context the cache is about as big as the weights: 43 GB against 44.0 GB here. Drop the context to 16K and the cache falls to roughly 5.4 GB, which compresses the total to about 55 GB and fits a single 80 GB card, where the full context needs 2.

Q8 KV quantization halves the cache row (43 GB to 21.5 GB) without materially affecting inference quality, and is the lever to pull first when you need more headroom than the context cap grants.

More Qwen scenarios

Kimi K3.1 Pro at Q4_K_M
A 2.78T expert pool with 24 latent attention layers and fixed state in the other 69.
View details
Mistral Large 4 at Q4_K_M
A 1T expert pool with 63 latent cache owners and 44 layers that also store an index key.
View details
Muse Spark Open at Q4_K_M
Only 16 of its 62 layers grow with context, and the other 46 hold a 2,048 token window.
View details

Frequently asked questions

Why is the VRAM higher than Llama 3.1 70B at the same quant?
Qwen 2.5 72B is slightly larger (72B vs 70B params) and we are running at its native context. At matched context and parameters they are within 5% of each other.
Does Q8 KV cache hurt quality?
Not measurably for inference. Q8 KV is supported in llama.cpp and usually shows no observable change in output. Use it freely as a memory-saving lever.
Why does the VRAM look higher than Llama 3.1 70B at the same Q4?
Because Qwen 2.5 72B uses a larger model architecture (more layers, more attention heads, and a slightly larger hidden dimension) which makes the KV cache bigger at the same context window. A Q8 KV cache halves that cache and preserves quality. Plan for roughly 61 GB resident at standard Q4 + FP16 KV cache at 32K context, similar to Llama 70B.
Why do two models with the same parameter count need different amounts of VRAM?
Because parameter count covers only the weights. The KV cache depends on layers, attention heads, and head dimension, all architecture choices that Qwen 2.5 pushes higher than Llama at a similar parameter scale. The bigger the KV cache, the more the context length multiplies total memory. Two 70B-class models can honestly differ by several gigabytes at long context for this reason alone.