Model comparison

phi-4 vs Qwen3.8-27B

At Q4_K_M, phi-4 is the smaller download — 8,890,306,112 bytes against 16,810,714,336. At long context the gap widens: Qwen3.8-27B's KV cache at 32K is 3.1× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

phi-4Qwen3.8-27B
Parameters14.7B27.8B
Architecturephi3qwen35
Layers4064
Native context16,384262,144
Mixture of expertsnono
Quantizations published3722
Smallest quantization4.18 GiB8.39 GiB
Q4_K_M8.28 GiB15.66 GiB
Licenceapache-2.0

KV cache by context

the term that decides long-context viability
Contextphi-4Qwen3.8-27BRatio
4,0960.78 GiB0.25 GiB3.12×
8,1921.56 GiB0.50 GiB3.12×
16,3843.13 GiB1.00 GiB3.12×
32,7686.25 GiB2.00 GiB3.12×
65,53612.50 GiB4.00 GiB3.12×
131,07225.00 GiB8.00 GiB3.12×