Model comparison

gemma-3-12b-it vs gemma-4-12B-it

At Q4_K_M, gemma-4-12B-it is the smaller download — 7,121,861,440 bytes against 7,300,574,976.

From the file· summed bytes, KV per layer

Side by side

gemma-3-12b-itgemma-4-12B-it
Parameters12.2B12.0B
Architecturegemma3gemma4
Layers4848
Native context131,072262,144
Mixture of expertsnono
Quantizations published2559
Smallest quantization2.85 GiB3.92 GiB
Q4_K_M6.80 GiB6.63 GiB
Licencegemmaapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-3-12b-itgemma-4-12B-itRatio
4,0960.72 GiB0.72 GiB1.00×
8,1920.97 GiB0.97 GiB1.00×
16,3841.47 GiB1.47 GiB1.00×
32,7682.47 GiB2.47 GiB1.00×
65,5364.47 GiB4.47 GiB1.00×
131,0728.47 GiB8.47 GiB1.00×