Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs GLM-4.7-Flash-Derestricted

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: GLM-4.7-Flash-Derestricted's KV cache at 32K is 1.5× 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.7-Flash-Derestricted
Parameters12.0B31.2B
Architecturegemma4deepseek2
Layers4847
Native context262,144202,752
Mixture of expertsnoyes, 64 experts
Quantizations published234
Smallest quantization6.50 GiB5.78 GiB
Q4_K_M16.89 GiB
Licenceapache-2.0mit

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedGLM-4.7-Flash-DerestrictedRatio
4,0960.72 GiB0.21 GiB3.48×
8,1920.97 GiB0.41 GiB2.35×
16,3841.47 GiB0.83 GiB1.78×
32,7682.47 GiB1.65 GiB1.49×
65,5364.47 GiB3.30 GiB1.35×
131,0728.47 GiB6.61 GiB1.28×