Model comparison

codegeex4-all-9b vs gemma-4-12B-it-qat-q4_0-unquantized

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

codegeex4-all-9bgemma-4-12B-it-qat-q4_0-unquantized
Parameters9.4B12.0B
Architecturechatglmgemma4
Layers4048
Native context262,144
Mixture of expertsnono
Quantizations published532
Smallest quantization2.89 GiB6.50 GiB
Q4_K_M5.82 GiB
Licenceotherapache-2.0

KV cache by context

the term that decides long-context viability
Contextcodegeex4-all-9bgemma-4-12B-it-qat-q4_0-unquantizedRatio
4,0962.50 GiB0.72 GiB3.48×
8,1925.00 GiB0.97 GiB5.16×
16,38410.00 GiB1.47 GiB6.81×
32,76820.00 GiB2.47 GiB8.10×
65,53640.00 GiB4.47 GiB8.95×
131,07280.00 GiB8.47 GiB9.45×