Model comparison

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

At Q4_K_M, gemma-3n-E4B-it is the smaller download — 4,237,064,064 bytes against 7,121,861,440. At long context the gap widens: gemma-3n-E4B-it's KV cache at 32K is 5.0× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-3n-E4B-itgemma-4-12B-it
Parameters7.8B12.0B
Architecturegemma3ngemma4
Layers3548
Native context32,768262,144
Mixture of expertsnono
Quantizations published3859
Smallest quantization2.57 GiB3.92 GiB
Q4_K_M3.95 GiB6.63 GiB
Licencegemmaapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-3n-E4B-itgemma-4-12B-itRatio
4,0960.11 GiB0.72 GiB6.57×
8,1920.16 GiB0.97 GiB5.90×
16,3840.27 GiB1.47 GiB5.37×
32,7680.49 GiB2.47 GiB5.02×
65,5360.93 GiB4.47 GiB4.81×
131,0721.80 GiB8.47 GiB4.69×