Model comparison
phi-2 vs Qwen3-4B
At Q4_K_M, phi-2 is the smaller download — 1,737,636,384 bytes against 2,497,280,256. At long context the gap widens: Qwen3-4B's KV cache at 32K is 2.2× smaller, which usually matters more than the difference in weights.
From the file· summed bytes, KV per layer
Side by side
KV cache by context
the term that decides long-context viability
| Context | phi-2 | Qwen3-4B | Ratio |
|---|---|---|---|
| 4,096 | 1.25 GiB | 0.56 GiB | 2.22× |
| 8,192 | 2.50 GiB | 1.13 GiB | 2.22× |
| 16,384 | 5.00 GiB | 2.25 GiB | 2.22× |
| 32,768 | 10.00 GiB | 4.50 GiB | 2.22× |
| 65,536 | 20.00 GiB | 9.00 GiB | 2.22× |
| 131,072 | 40.00 GiB | 18.00 GiB | 2.22× |