Model comparison

gemma-3n-E4B-it vs gemma-4-E2B-it

At Q4_K_M, gemma-4-E2B-it is the smaller download — 3,106,738,272 bytes against 4,237,064,064. At long context the gap widens: gemma-4-E2B-it's KV cache at 32K is 2.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-E2B-it
Parameters7.8B5.1B
Architecturegemma3ngemma4
Layers3535
Native context32,768131,072
Mixture of expertsnono
Quantizations published3854
Smallest quantization2.57 GiB2.13 GiB
Q4_K_M3.95 GiB2.89 GiB
Licencegemmaapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-3n-E4B-itgemma-4-E2B-itRatio
4,0960.11 GiB0.05 GiB2.00×
8,1920.16 GiB0.08 GiB2.00×
16,3840.27 GiB0.14 GiB2.00×
32,7680.49 GiB0.25 GiB2.00×
65,5360.93 GiB0.46 GiB2.00×
131,0721.80 GiB0.90 GiB2.00×
gemma-3n-E4B-it vs gemma-4-E2B-it — size, memory and hardware fit — ossmodeldb