Compare
Gemma 3 4B vs Qwen3 4B
Qwen3 4B has 4.02B parameters and Gemma 3 4B 3.88B, about the same. In BF16 the weights take 7.8 GB and 8.0 GB.
| Gemma 3 4B | Qwen3 4B | Ratio | |
|---|---|---|---|
| Parameters | 3.88B 3,880,263,168 | 4.02B 4,022,468,096 | 1.04× |
| Active per token | all (dense) | all (dense) | 1.04× |
| Layers | 34 | 36 | 1.06× |
| Hidden size (d) | 2,560 | 2,560 | same |
| Attention | 8 heads, 4 KV heads × 256 | 32 heads, 8 KV heads × 128 | |
| FFN | GeGLU, 10,240 | SwiGLU, 9,728 | |
| Vocabulary | 262,208 | 151,936 | 0.58× |
| Tied embeddings | yes | yes | |
| Max context | 128K | 40K | 0.31× |
| Weights, BF16 | 7.8 GB | 8.0 GB | 1.04× |
| Weights, 4-bit | 1.9 GB | 2.0 GB | 1.04× |
| KV cache per token (BF16) | 139.3 KB | 147.5 KB | 1.06× |
| KV cache at 32K tokens | 4.6 GB | 4.8 GB | 1.06× |
| FLOPs per token (4K context) | 8.2 GFLOPs | 10.5 GFLOPs | 1.28× |
The full workings: Gemma 3 4B · Qwen3 4B · change the models