Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs c4ai-command-r-08-2024

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.0× 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-unquantizedc4ai-command-r-08-2024
Parameters12.0B32.3B
Architecturegemma4command-r
Layers4840
Native context262,144131,072
Mixture of expertsnono
Quantizations published228
Smallest quantization6.50 GiB9.61 GiB
Q4_K_M18.44 GiB
Licenceapache-2.0cc-by-nc-4.0

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedc4ai-command-r-08-2024Ratio
4,0960.72 GiB0.63 GiB1.15×
8,1920.97 GiB1.25 GiB1.29×
16,3841.47 GiB2.50 GiB1.70×
32,7682.47 GiB5.00 GiB2.03×
65,5364.47 GiB10.00 GiB2.24×
131,0728.47 GiB20.00 GiB2.36×