# Gemma 4 31B IT datasheet

> The other Issue 001 24 GB model. Q4_K_M is 18.32 GB. Fifty of the sixty layers only look at the last 1,024 tokens, so the KV cache stays smaller as context grows.

Canonical: https://thelocalbench.com/models/gemma-4-31b-it · Data as of 2026-11-19 · The Local Bench (thelocalbench.com), data as of 2026-11-19, CC BY 4.0

Flags: [verified] checked against primary source · [sourced] cited · [estimate] formula · [sample] placeholder

## Specifications

| Field | Value | Flag | Source |
|---|---|---|---|
| params_total | 31.27 B | verified | https://huggingface.co/api/models/google/gemma-4-31B-it |
| params_active | 31.27 B | verified | https://huggingface.co/api/models/google/gemma-4-31B-it |
| layers | 60 | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| kv_heads | 16 | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| q_heads | 32 | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| head_dim | 256 | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| hidden_size | 5376 | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| context | 262144 tokens | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| sliding_window | 1024 tokens | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| sliding_layers | 50 | verified | https://huggingface.co/google/gemma-4-31B-it/blob/main/config.json |
| license | Apache-2.0 | verified | https://ai.google.dev/gemma/docs/gemma_4_license |

## Memory and quants (total = weights + F16 KV + overhead)

| Quant | bpw | File GB | At 8k | At 32k | At 128k | KLD | 24 GB card, 8k |
|---|---|---|---|---|---|---|---|
| Q3_K_M | 3.91 | 14.74 [verified] | 17.5 | 21.7 | 38.6 | — | fit |
| Q4_K_M | 4.85 | 18.32 [verified] | 21.1 | 25.3 | 42.1 | — | fit |
| Q5_K_M | 5.69 | 21.66 [verified] | 24.4 | 28.6 | 45.5 | — | offload |
| Q6_K | 6.56 | 25.2 [verified] | 27.9 | 32.2 | 49.0 | — | offload |
| Q8_0 | 8.5 | 32.64 [verified] | 35.4 | 39.6 | 56.5 | — | offload |
| F16 | 16 | 61.41 [verified] | 64.2 | 68.4 | 85.2 | — | offload |

## Speed (default quant, 8k context, single stream)

| Device | Verdict | Decode tok/s | Flag |
|---|---|---|---|
| [GeForce RTX 3060 12 GB (used)](/hardware/rtx-3060-12g-used.md) | offload | 2.9 | estimate |
| [Mac mini M4 · 16 GB](/hardware/mac-mini-m4-16g.md) | nofit | — |  |
| [Intel Arc Pro B50 16 GB](/hardware/arc-pro-b50-16g.md) | offload | 3.5 | estimate |
| [Radeon RX 9060 XT 16 GB](/hardware/rx-9060-xt-16g.md) | offload | 4.0 | estimate |
| [GeForce RTX 5060 Ti 16 GB](/hardware/rtx-5060-ti-16g.md) | offload | 4.4 | estimate |
| [GeForce RTX 4060 Ti 16 GB](/hardware/rtx-4060-ti-16g.md) | offload | 3.8 | estimate |
| [Intel Arc B580 12 GB](/hardware/arc-b580-12g.md) | offload | 3.0 | estimate |
| [Radeon RX 7900 XTX 24 GB](/hardware/rx-7900-xtx-24g.md) | fit | 28.1 | estimate |
| [GeForce RTX 5070 12 GB](/hardware/rtx-5070-12g.md) | offload | 3.1 | estimate |
| [Intel Arc Pro B60 24 GB](/hardware/arc-pro-b60-24g.md) | fit | 13.3 | estimate |
| [Radeon RX 9070 XT 16 GB](/hardware/rx-9070-xt-16g.md) | offload | 4.7 | estimate |
| [GeForce RTX 3090 24 GB (used)](/hardware/rtx-3090-24g-used.md) | fit | 27.4 | estimate |
| [MacBook Air M4 · 24 GB](/hardware/macbook-air-m4-24g.md) | nofit | — |  |
| [CPU only · Ryzen 9 9950X + 128 GB DDR5](/hardware/cpu-ryzen-9-9950x-128g.md) | fit | 2.2 | estimate |
| [GeForce RTX 5070 Ti 16 GB](/hardware/rtx-5070-ti-16g.md) | offload | 5.0 | estimate |
| [Mac mini M4 Pro · 48 GB](/hardware/mac-mini-m4-pro-48g.md) | fit | 6.0 | estimate |
| [GeForce RTX 4080 Super 16 GB](/hardware/rtx-4080-super-16g.md) | offload | 4.8 | estimate |
| [GeForce RTX 5080 16 GB](/hardware/rtx-5080-16g.md) | offload | 5.0 | estimate |
| [Ryzen AI Max+ 395 mini PC 64 GB](/hardware/ryzen-ai-max-395-64g.md) | fit | 5.6 | estimate |
| [Mac Studio M5 Max (base)](/hardware/mac-studio-m5-max.md) | fit | 10.1 | estimate |
| [2× RTX 3090 (used) 48 GB](/hardware/2x-rtx-3090-48g-used.md) | fit | 27.4 | estimate |
| [MacBook Pro M5 Pro · 48 GB](/hardware/macbook-pro-m5-pro-48g.md) | fit | 6.7 | estimate |
| [Ryzen AI Max+ 395 mini PC 128 GB](/hardware/ryzen-ai-max-395-128g.md) | fit | 5.6 | estimate |
| [GeForce RTX 4090 24 GB](/hardware/rtx-4090-24g.md) | fit | 29.5 | estimate |
| [NVIDIA DGX Spark FE 128 GB](/hardware/dgx-spark-128g.md) | fit | 6.0 | estimate |
| [MacBook Pro M4 Max 40c · 128 GB](/hardware/macbook-pro-m4-max-128g.md) | fit | 12.0 | estimate |
| [Mac Studio M5 Max · 128 GB](/hardware/mac-studio-m5-max-128g.md) | fit | 13.5 | estimate |
| [Mac Studio M5 Ultra (base)](/hardware/mac-studio-m5-ultra.md) | fit | 26.3 | estimate |
| [GeForce RTX 5090 32 GB](/hardware/rtx-5090-32g.md) | fit | 52.4 | estimate |
| [Mac Studio M5 Ultra · 512 GB](/hardware/mac-studio-m5-ultra-512g.md) | fit | 26.3 | estimate |
| [2× RTX 5090 64 GB](/hardware/2x-rtx-5090-64g.md) | fit | 52.4 | estimate |
| [NVIDIA RTX PRO 6000 Blackwell 96 GB](/hardware/rtx-pro-6000-blackwell-96g.md) | fit | 52.4 | estimate |

## Quality

LMArena text score: 1442.9 [sourced] (LMArena text, overall, entry 'Gemma 4 31B': 1442.9 (95% CI 1435.5–1450.3, 6,118 votes), leaderboard published 2026-11-22. CC-BY-4.0.)

JSON: https://thelocalbench.com/api/v1/models/gemma-4-31b-it.json · Configurator: https://thelocalbench.com/configurator?model=gemma-4-31b-it

Embed: https://thelocalbench.com/embed?model=gemma-4-31b-it
