Model comparison

Phi-3-medium-128k-instruct vs gemma-4-E4B-it

At Q4_K_M, gemma-4-E4B-it is the smaller download — 4,977,171,584 bytes against 8,566,821,408. At long context the gap widens: gemma-4-E4B-it's KV cache at 32K is 12.4× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

Phi-3-medium-128k-instructgemma-4-E4B-it
Parameters14.0B8.0B
Architecturephi3gemma4
Layers4042
Native context131,072131,072
Mixture of expertsnono
Quantizations published7336
Smallest quantization2.75 GiB3.30 GiB
Q4_K_M7.98 GiB4.64 GiB
Licencemitapache-2.0

KV cache by context

the term that decides long-context viability
ContextPhi-3-medium-128k-instructgemma-4-E4B-itRatio
4,0960.78 GiB0.12 GiB6.35×
8,1921.56 GiB0.18 GiB8.79×
16,3843.13 GiB0.29 GiB10.88×
32,7686.25 GiB0.51 GiB12.36×
65,53612.50 GiB0.94 GiB13.25×
131,07225.00 GiB1.82 GiB13.75×