Compare
Gemma 2 27B vs Qwen2.5 72B
Qwen2.5 72B has 72.7B parameters, 2.7 times the 27.2B of Gemma 2 27B. In BF16 the weights take 54.5 GB and 145 GB.
| Gemma 2 27B | Qwen2.5 72B | Ratio | |
|---|---|---|---|
| Parameters | 27.2B 27,227,128,320 | 72.7B 72,706,203,648 | 2.67× |
| Active per token | all (dense) | all (dense) | 2.67× |
| Layers | 46 | 80 | 1.74× |
| Hidden size (d) | 4,608 | 8,192 | 1.78× |
| Attention | 32 heads, 16 KV heads × 128 | 64 heads, 8 KV heads × 128 | |
| FFN | GeGLU, 36,864 | SwiGLU, 29,568 | |
| Vocabulary | 256,000 | 152,064 | 0.59× |
| Tied embeddings | yes | no | |
| Max context | 8K | 128K | 16.00× |
| Weights, BF16 | 54.5 GB | 145 GB | 2.67× |
| Weights, 4-bit | 13.6 GB | 36.4 GB | 2.67× |
| KV cache per token (BF16) | 376.8 KB | 327.7 KB | 0.87× |
| KV cache at 32K tokens | – (max 8K) | 10.7 GB | 3.48× |
| FLOPs per token (4K context) | 57.5 GFLOPs | 156.1 GFLOPs | 2.71× |
The full workings: Gemma 2 27B · Qwen2.5 72B · change the models