Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs gemma-4-A4B-98e-v7-coderx-it

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: gemma-4-A4B-98e-v7-coderx-it's KV cache at 32K is 1.6× 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-4-A4B-98e-v7-coderx-it
Parameters12.0B20.5B
Architecturegemma4gemma4
Layers4830
Native context262,144262,144
Mixture of expertsnoyes, 98 experts
Quantizations published214
Smallest quantization6.50 GiB8.22 GiB
Q4_K_M12.33 GiB
Licenceapache-2.0apache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedgemma-4-A4B-98e-v7-coderx-itRatio
4,0960.72 GiB0.45 GiB1.60×
8,1920.97 GiB0.61 GiB1.60×
16,3841.47 GiB0.92 GiB1.60×
32,7682.47 GiB1.54 GiB1.60×
65,5364.47 GiB2.79 GiB1.60×
131,0728.47 GiB5.29 GiB1.60×