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.
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.
Multi-GPU setups
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
Related guides
Frequently asked questions
Why is the VRAM higher than Llama 3.1 70B at the same quant?
Does Q8 KV cache hurt quality?
Why does the VRAM look higher than Llama 3.1 70B at the same Q4?
Why do two models with the same parameter count need different amounts of VRAM?
Related tools
RAM Latency Calculator
Convert DDR3/DDR4/DDR5 timings (CL, tRCD, tRP, tRAS) into true latency in nanoseconds.
Use toolPower Cost Estimator
Estimate annual electricity costs for your PC, Server, or TV.
Use toolData Transfer Calculator
Calculate file transfer time or the speed you need over USB, Wi-Fi or Ethernet, with latency.
Use toolMemory and Storage Throughput Visualizer
Visualize the large speed gap between CPU cache, RAM, and storage.
Use tool