Family · Google
Gemma 4: every size compared
2 Gemma 4 models, from Gemma 4 26B-A4B (25.2B) to Gemma 4 31B (30.7B). The weights go from 50.5 GB to 61.4 GB in BF16, 12.6 GB to 15.3 GB at 4-bit.
| Model | Params | Active | Layers | d | Heads / KV | FFN | Context | BF16 | 8-bit | 4-bit | KV / token |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Gemma 4 26B-A4B | 25.2B | 3.82B | 30 | 2,816 | 16 / 2 | 128×704 | 256K | 50.5 GB | 25.2 GB | 12.6 GB | 225.3 KB |
| Gemma 4 31B | 30.7B | – | 60 | 5,376 | 32 / 4 | 21,504 | 256K | 61.4 GB | 30.7 GB | 15.3 GB | 901.1 KB |
Weights at 2, 1 and 0.5 bytes per parameter; KV cache in BF16 for one sequence. Each model's page has the full tensor list and the parameter count worked out.
What changes with size
- Every size shares one tokenizer: a vocabulary of 262,144 tokens.
- All of them tie the output head to the embedding.
- The head size is 512 throughout; bigger models get more heads and layers instead.
- Gemma 4 26B-A4B is a mixture of experts: 25.2B stored, 3.82B used per token.
- Gemma 4 26B-A4B, Gemma 4 31B also carry a vision encoder (573M), not counted in the sizes here.
Which size fits your GPU
The biggest Gemma 4 model whose 4-bit weights and an 8K-token KV cache fit:
- 8 GB: none at 4-bit
- 12 GB: none at 4-bit
- 16 GB: none at 4-bit
- 24 GB: up to Gemma 4 26B-A4B at 4-bit
- 48 GB: up to Gemma 4 31B at 4-bit
- 64 GB: up to Gemma 4 31B at 4-bit
- 80 GB: up to Gemma 4 31B at 4-bit
Comparisons
Qwen3.5 27B vs Gemma 4 31B · Qwen3.5 35B-A3B vs Gemma 4 26B-A4B · Gemma 4 31B vs Gemma 3 27B
Other families: Llama 3 · Llama 4 · Qwen2.5 · Qwen3 · Gemma 2 · Gemma 3 · Mistral · Phi · DeepSeek · DeepSeek-R1 distills · gpt-oss · SmolLM · OLMo 2 · Granite · Falcon3 · Inkling · GLM-4.5 · OLMo 3 · Qwen3.5 · Nemotron 3