Model comparison

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

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.7× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-2-27b-itgemma-4-12B-it-qat-q4_0-unquantized
Parameters27.2B12.0B
Architecturegemma2gemma4
Layers4648
Native context8,192262,144
Mixture of expertsnono
Quantizations published542
Smallest quantization5.71 GiB6.50 GiB
Q4_K_M15.50 GiB
Licencegemmaapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-2-27b-itgemma-4-12B-it-qat-q4_0-unquantizedRatio
4,0961.44 GiB0.72 GiB2.00×
8,1922.25 GiB0.97 GiB2.32×
16,3843.68 GiB1.47 GiB2.51×
32,7686.56 GiB2.47 GiB2.66×
65,53612.31 GiB4.47 GiB2.75×
131,07223.81 GiB8.47 GiB2.81×