Model comparison

Codestral-22B-v0.1 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 2.8× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

Codestral-22B-v0.1gemma-4-12B-it-qat-q4_0-unquantized
Parameters22.2B12.0B
Architecturellamagemma4
Layers5648
Native context32,768262,144
Mixture of expertsnono
Quantizations published502
Smallest quantization4.50 GiB6.50 GiB
Q4_K_M12.42 GiB
Licenceotherapache-2.0

KV cache by context

the term that decides long-context viability
ContextCodestral-22B-v0.1gemma-4-12B-it-qat-q4_0-unquantizedRatio
4,0960.88 GiB0.72 GiB1.22×
8,1921.75 GiB0.97 GiB1.81×
16,3843.50 GiB1.47 GiB2.38×
32,7687.00 GiB2.47 GiB2.84×
65,53614.00 GiB4.47 GiB3.13×
131,07228.00 GiB8.47 GiB3.31×