Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs GLM-4-9B-0414

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: GLM-4-9B-0414'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-unquantizedGLM-4-9B-0414
Parameters12.0B9.4B
Architecturegemma4glm4
Layers4840
Native context262,14432,768
Mixture of expertsnono
Quantizations published247
Smallest quantization6.50 GiB2.98 GiB
Q4_K_M5.74 GiB
Licenceapache-2.0mit

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedGLM-4-9B-0414Ratio
4,0960.72 GiB0.16 GiB4.60×
8,1920.97 GiB0.31 GiB3.10×
16,3841.47 GiB0.63 GiB2.35×
32,7682.47 GiB1.25 GiB1.98×
65,5364.47 GiB2.50 GiB1.79×
131,0728.47 GiB5.00 GiB1.69×