Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs Phi-3-medium-4k-instruct

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: gemma-4-12B-it-qat-q4_0-unquantized's KV cache at 32K is 2.5× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-4-12B-it-qat-q4_0-unquantizedPhi-3-medium-4k-instruct
Parameters12.0B14.0B
Architecturegemma4phi3
Layers4840
Native context262,1444,096
Mixture of expertsnono
Quantizations published254
Smallest quantization6.50 GiB2.75 GiB
Q4_K_M7.98 GiB
Licenceapache-2.0mit

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedPhi-3-medium-4k-instructRatio
4,0960.72 GiB0.78 GiB1.09×
8,1920.97 GiB1.56 GiB1.61×
16,3841.47 GiB3.13 GiB2.13×
32,7682.47 GiB6.25 GiB2.53×
65,5364.47 GiB12.50 GiB2.80×
131,0728.47 GiB25.00 GiB2.95×