Model comparison

phi-4 vs Qwen3-Coder-30B-A3B-Instruct

At Q4_K_M, phi-4 is the smaller download — 8,890,306,112 bytes against 18,556,689,568. At long context the gap widens: Qwen3-Coder-30B-A3B-Instruct's KV cache at 32K is 2.1× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

phi-4Qwen3-Coder-30B-A3B-Instruct
Parameters14.7B30.5B
Architecturephi3qwen3moe
Layers4048
Native context16,384262,144
Mixture of expertsnoyes, 128 experts
Quantizations published3746
Smallest quantization4.18 GiB7.46 GiB
Q4_K_M8.28 GiB17.28 GiB
Licenceapache-2.0

KV cache by context

the term that decides long-context viability
Contextphi-4Qwen3-Coder-30B-A3B-InstructRatio
4,0960.78 GiB0.38 GiB2.08×
8,1921.56 GiB0.75 GiB2.08×
16,3843.13 GiB1.50 GiB2.08×
32,7686.25 GiB3.00 GiB2.08×
65,53612.50 GiB6.00 GiB2.08×
131,07225.00 GiB12.00 GiB2.08×