Gemma 4 31B quants compared
28 real GGUF builds of Gemma 4 31B measured from bartowski/google_gemma-4-31b-it-GGUF. Download the Q4_K_M (18.25 GB) unless you know why you need heavier. Probed 2026-09-02.
- GGUF builds
- 28
- default pick
- Q4_K_M
- weights
- 18.25 GB
- fits comfortably in
- 32 GB
Download Gemma 4 31B Q4_K_M (18.25 GB). It fits 32 GB of memory with 16k context. With Ollama: ollama run gemma4:31b
Every Gemma 4 31B quant by real file size
28 builds| Quant | Weights | + KV (16k) | Total | Fits comfortably in | Quality |
|---|---|---|---|---|---|
| BF16 | 57.2 GB | 4.0 GB | 61.2 GB | 96 GB | Full precision (lossless) |
| Q8_0 | 30.87 GB | 4.0 GB | 34.9 GB | 48 GB | Near-lossless |
| Q6_K_L | 25.21 GB | 4.0 GB | 29.2 GB | 48 GB | Excellent |
| Q6_K | 24.89 GB | 4.0 GB | 28.9 GB | 48 GB | Excellent |
| Q5_K_L | 21.37 GB | 4.0 GB | 25.4 GB | 32 GB | Very high |
| Q5_K_M | 21.06 GB | 4.0 GB | 25.1 GB | 32 GB | Very high |
| Q5_K_S | 20.03 GB | 4.0 GB | 24.0 GB | 32 GB | Very high |
| Q4_K_M * | 18.25 GB | 4.0 GB | 22.3 GB | 32 GB | High: the default pick |
| Q4_K_L | 18.57 GB | 4.0 GB | 22.6 GB | 32 GB | High |
| Q4_1 | 18.41 GB | 4.0 GB | 22.4 GB | 32 GB | High |
| Q4_0 | 17.16 GB | 4.0 GB | 21.2 GB | 24 GB | High |
| Q4_K_S | 16.95 GB | 4.0 GB | 20.9 GB | 24 GB | High |
| IQ4_NL | 16.79 GB | 4.0 GB | 20.8 GB | 24 GB | High |
| IQ4_XS | 15.98 GB | 4.0 GB | 20.0 GB | 24 GB | High |
| Q3_K_XL | 15.97 GB | 4.0 GB | 20.0 GB | 24 GB | Acceptable: visible loss |
| Q3_K_L | 15.66 GB | 4.0 GB | 19.7 GB | 24 GB | Acceptable: visible loss |
| Q3_K_M | 14.82 GB | 4.0 GB | 18.8 GB | 24 GB | Acceptable: visible loss |
| IQ3_M | 14.09 GB | 4.0 GB | 18.1 GB | 24 GB | Acceptable: visible loss |
| Q3_K_S | 13.34 GB | 4.0 GB | 17.3 GB | 24 GB | Acceptable: visible loss |
| IQ3_XS | 12.89 GB | 4.0 GB | 16.9 GB | 24 GB | Acceptable: visible loss |
| IQ3_XXS | 12.09 GB | 4.0 GB | 16.1 GB | 24 GB | Acceptable: visible loss |
| Q2_K_L | 12.08 GB | 4.0 GB | 16.1 GB | 24 GB | Experimental: not ranked: never recommended |
| IQ2_M | 11.78 GB | 4.0 GB | 15.8 GB | 24 GB | Experimental: not ranked: never recommended |
| Q2_K | 11.76 GB | 4.0 GB | 15.8 GB | 24 GB | Experimental: not ranked: never recommended |
| IQ2_S | 11.25 GB | 4.0 GB | 15.3 GB | 24 GB | Experimental: not ranked: never recommended |
| IQ2_XS | 10.71 GB | 4.0 GB | 14.7 GB | 24 GB | Experimental: not ranked: never recommended |
| IQ2_XXS | 10.09 GB | 4.0 GB | 14.1 GB | 16 GB | Experimental: not ranked: never recommended |
| IQ1_M | 9.42 GB | 4.0 GB | 13.4 GB | 16 GB | Experimental: not ranked: never recommended |
* default pick. Weights = real GGUF file sizes from bartowski/google_gemma-4-31b-it-GGUF (probed 2026-09-02). KV = fp16 estimate; a q8_0 cache roughly halves it. "Comfortable" = weights + KV within 90% of memory.
Best Gemma 4 31B quant by memory
| Memory | Recommended quant | Total (16k ctx) |
|---|---|---|
| 24 GB | Q4_0 | 21.2 GB |
| 32 GB | Q5_K_M | 25.1 GB |
| 48 GB | Q8_0 | 34.9 GB |
| 96 GB | BF16 | 61.2 GB |
Why we don't rank Gemma 4 31B's 2-bit quants
Quants at 2 bits per weight or below (Q2_K, IQ2, IQ1, TQ1) cut file size by roughly half versus Q4, but the quality collapse is steep and non-linear: perplexity spikes, instruction-following degrades, and hallucinations rise. A model that answers faster but wrong is not a smaller model: it is a worse one. ModelFit lists these builds for completeness but never ranks or recommends them.
Run Gemma 4 31B on your GPU
Get told when a better model fits your RTX 4090
Get one email when a new open-weight model is a better fit for this machine.
For: RTX 4090
You'll also get the weekly ModelFit email. By signing up you agree to our Privacy Policy. Unsubscribe from either email anytime, in one click.
Frequently asked questions
What is the best quantization of Gemma 4 31B?
Q4_K_M is the default pick: 18.25 GB of weights, high: the default pick quality, fitting comfortably in 32 GB of memory (weights + 16k context KV-cache). Go Q6_K or Q8_0 if you have headroom.
How much memory does Gemma 4 31B need?
At Q4_K_M, Gemma 4 31B needs 18.25 GB for the weights plus ~4.0 GB of KV-cache at 16k context, about 22.3 GB total, so a 32 GB card or Mac (90% usable budget) runs it comfortably.
Should I use a Q2_K or IQ2 quant of Gemma 4 31B?
No. Gemma 4 31B at 2 bits per weight is a visibly worse model. Quality collapse at that bitrate is steep, not gradual. If only a 2-bit build fits your memory, run a smaller model at Q4_K_M instead. ModelFit lists these builds but never recommends them.
Cite this page
ModelFit: Gemma 4 31B quantization comparison (real GGUF file sizes). https://modelfit.io/quant-compare/gemma4-31b/ (data probed 2026-09-02, CC BY 4.0).