Compare
Qwen3.5 27B vs Gemma 4 31B
Gemma 4 31B has 30.7B parameters, 1.1 times the 26.9B of Qwen3.5 27B. In BF16 the weights take 53.8 GB and 61.4 GB. Gemma 4 31B needs 13.8 times as much KV cache per token (901.1 KB against 65.5 KB): GQA against GQA.
| Qwen3.5 27B | Gemma 4 31B | Ratio | |
|---|---|---|---|
| Parameters | 26.9B 26,895,998,464 | 30.7B 30,697,345,340 | 1.14× |
| Active per token | all (dense) | all (dense) | 1.14× |
| Layers | 64 | 60 | 0.94× |
| Hidden size (d) | 5,120 | 5,376 | 1.05× |
| Attention | 24 heads, 4 KV heads × 256 | 32 heads, 4 KV heads × 512 | |
| FFN | SwiGLU, 17,408 | GeGLU, 21,504 | |
| Vocabulary | 248,320 | 262,144 | 1.06× |
| Tied embeddings | no | yes | |
| Max context | 256K | 256K | same |
| Weights, BF16 | 53.8 GB | 61.4 GB | 1.14× |
| Weights, 4-bit | 13.4 GB | 15.3 GB | 1.14× |
| KV cache per token (BF16) | 65.5 KB | 901.1 KB | 13.75× |
| KV cache at 32K tokens | 2.1 GB | 29.5 GB | 13.75× |
| FLOPs per token (4K context) | 55.6 GFLOPs | 65.8 GFLOPs | 1.18× |
The full workings: Qwen3.5 27B · Gemma 4 31B · change the models