Family · Google
Gemma 2: every size compared
3 Gemma 2 models, from Gemma 2 2B (2.61B) to Gemma 2 27B (27.2B). The weights go from 5.2 GB to 54.5 GB in BF16, 1.3 GB to 13.6 GB at 4-bit.
| Model | Params | Layers | d | Heads / KV | FFN | Context | BF16 | 8-bit | 4-bit | KV / token |
|---|---|---|---|---|---|---|---|---|---|---|
| Gemma 2 2B | 2.61B | 26 | 2,304 | 8 / 4 | 9,216 | 8K | 5.2 GB | 2.6 GB | 1.3 GB | 106.5 KB |
| Gemma 2 9B | 9.24B | 42 | 3,584 | 16 / 8 | 14,336 | 8K | 18.5 GB | 9.2 GB | 4.6 GB | 344.1 KB |
| Gemma 2 27B | 27.2B | 46 | 4,608 | 32 / 16 | 36,864 | 8K | 54.5 GB | 27.2 GB | 13.6 GB | 376.8 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 256,000 tokens.
- All of them tie the output head to the embedding.
Which size fits your GPU
The biggest Gemma 2 model whose 4-bit weights and an 8K-token KV cache fit:
- 8 GB: up to Gemma 2 2B at 4-bit
- 12 GB: up to Gemma 2 9B at 4-bit
- 16 GB: up to Gemma 2 9B at 4-bit
- 24 GB: up to Gemma 2 27B at 4-bit
- 48 GB: up to Gemma 2 27B at 4-bit
- 80 GB: up to Gemma 2 27B at 4-bit
Comparisons
Gemma 2 9B vs Llama 3.1 8B · Gemma 2 27B vs Qwen2.5 72B
Other families: Llama 3 · Llama 4 · Qwen2.5 · Qwen3 · Gemma 3 · Mistral · Phi · DeepSeek · DeepSeek-R1 distills · gpt-oss · SmolLM · OLMo 2 · Granite · Falcon3