Model comparison

Phi-3-mini-4k-instruct vs gemma-3-1b-it

At Q4_K_M, gemma-3-1b-it is the smaller download — 806,058,240 bytes against 2,393,231,456. At long context the gap widens: gemma-3-1b-it's KV cache at 32K is 81.9× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

Phi-3-mini-4k-instructgemma-3-1b-it
Parameters3.8B1000M
Architecturephi3gemma3
Layers3226
Native context4,09632,768
Mixture of expertsnono
Quantizations published6828
Smallest quantization0.78 GiB0.52 GiB
Q4_K_M2.23 GiB0.75 GiB
Licencemitgemma

KV cache by context

the term that decides long-context viability
ContextPhi-3-mini-4k-instructgemma-3-1b-itRatio
4,0961.50 GiB0.04 GiB40.42×
8,1923.00 GiB0.05 GiB56.89×
16,3846.00 GiB0.08 GiB71.44×
32,76812.00 GiB0.15 GiB81.92×
65,53624.00 GiB0.27 GiB88.40×
131,07248.00 GiB0.52 GiB92.04×