作者: Jakub Rusinowski · 最后更新: 2026年7月21日
How much GPU VRAM you need to run Gemma 4 Gemma 4 31B by Google locally, a 31B-parameter model. Figures are quantized weights + KV cache + framework overhead from a memory-bandwidth roofline model.
Gemma 4 31B needs about 20 GB VRAM at Q4_K_M.
| Quant | Bits/weight | Weights | Total VRAM |
|---|---|---|---|
| Q2_K | 2.63 | 10.2 GB | 11.0 GB |
| Q3_K_M | 3.41 | 13.2 GB | 14.0 GB |
| Q4_K_M | 4.83 | 18.7 GB | 19.5 GB |
| Q5_K_M | 5.67 | 22.0 GB | 22.8 GB |
| Q6_K | 6.56 | 25.4 GB | 26.2 GB |
| Q8_0 | 8.50 | 32.9 GB | 33.7 GB |
| F16 | 16.00 | 62.0 GB | 62.8 GB |
Switch quantization in the interactive calculator, or see the full Gemma 4 model page.
Model creators: paste this into your Hugging Face model card README to link readers straight to this VRAM breakdown.
[](https://llmconfigurator.com/en/vram-calculator/gemma-4-31b)
Estimates only — actual VRAM varies with context length, batch size, runtime and KV-cache settings.