Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs gemma-3-27b-it

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 1.3× 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-unquantizedgemma-3-27b-it
Parameters12.0B27.4B
Architecturegemma4gemma3
Layers4862
Native context262,144131,072
Mixture of expertsnono
Quantizations published248
Smallest quantization6.50 GiB6.06 GiB
Q4_K_M15.41 GiB
Licenceapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedgemma-3-27b-itRatio
4,0960.72 GiB0.92 GiB1.28×
8,1920.97 GiB1.23 GiB1.27×
16,3841.47 GiB1.86 GiB1.27×
32,7682.47 GiB3.11 GiB1.26×
65,5364.47 GiB5.61 GiB1.26×
131,0728.47 GiB10.61 GiB1.25×