Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs glm-4-9b-chat

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 8.1× 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-chat
Parameters12.0B9.4B
Architecturegemma4chatglm
Layers4840
Native context262,144
Mixture of expertsnono
Quantizations published258
Smallest quantization6.50 GiB2.89 GiB
Q4_K_M5.82 GiB
Licenceapache-2.0other

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedglm-4-9b-chatRatio
4,0960.72 GiB2.50 GiB3.48×
8,1920.97 GiB5.00 GiB5.16×
16,3841.47 GiB10.00 GiB6.81×
32,7682.47 GiB20.00 GiB8.10×
65,5364.47 GiB40.00 GiB8.95×
131,0728.47 GiB80.00 GiB9.45×