Model comparison

gemma-3n-E2B-it vs gemma-4-12B-it

At Q4_K_M, gemma-3n-E2B-it is the smaller download — 2,787,806,304 bytes against 7,121,861,440. At long context the gap widens: gemma-3n-E2B-it's KV cache at 32K is 5.9× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-3n-E2B-itgemma-4-12B-it
Parameters5.4B12.0B
Architecturegemma3ngemma4
Layers3048
Native context32,768262,144
Mixture of expertsnono
Quantizations published4059
Smallest quantization1.76 GiB3.92 GiB
Q4_K_M2.60 GiB6.63 GiB
Licencegemmaapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-3n-E2B-itgemma-4-12B-itRatio
4,0960.09 GiB0.72 GiB7.67×
8,1920.14 GiB0.97 GiB6.89×
16,3840.23 GiB1.47 GiB6.27×
32,7680.42 GiB2.47 GiB5.85×
65,5360.80 GiB4.47 GiB5.61×
131,0721.55 GiB8.47 GiB5.47×