Compare
Phi-4 vs Qwen3 14B
Qwen3 14B has 14.8B parameters and Phi-4 14.7B, about the same. In BF16 the weights take 29.3 GB and 29.5 GB. Phi-4 needs 1.3 times as much KV cache per token (204.8 KB against 163.8 KB): GQA against GQA.
| Phi-4 | Qwen3 14B | Ratio | |
|---|---|---|---|
| Parameters | 14.7B 14,659,507,200 | 14.8B 14,768,307,200 | 1.01× |
| Active per token | all (dense) | all (dense) | 1.01× |
| Layers | 40 | 40 | same |
| Hidden size (d) | 5,120 | 5,120 | same |
| Attention | 40 heads, 10 KV heads × 128 | 40 heads, 8 KV heads × 128 | |
| FFN | SwiGLU, 17,920 | SwiGLU, 17,408 | |
| Vocabulary | 100,352 | 151,936 | 1.51× |
| Tied embeddings | no | no | |
| Max context | 16K | 40K | 2.50× |
| Weights, BF16 | 29.3 GB | 29.5 GB | 1.01× |
| Weights, 4-bit | 7.3 GB | 7.4 GB | 1.01× |
| KV cache per token (BF16) | 204.8 KB | 163.8 KB | 0.80× |
| KV cache at 32K tokens | – (max 16K) | 5.4 GB | 1.60× |
| FLOPs per token (4K context) | 32.7 GFLOPs | 32.9 GFLOPs | 1.01× |
The full workings: Phi-4 · Qwen3 14B · change the models