Model comparison

gemma-3-4b-it vs gemma-4-E4B-it

At Q4_K_M, gemma-3-4b-it is the smaller download — 2,489,757,856 bytes against 4,977,171,584. At long context the gap widens: gemma-4-E4B-it's KV cache at 32K is 1.6× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-3-4b-itgemma-4-E4B-it
Parameters4.3B8.0B
Architecturegemma3gemma4
Layers3442
Native context131,072131,072
Mixture of expertsnono
Quantizations published2836
Smallest quantization1.43 GiB3.30 GiB
Q4_K_M2.32 GiB4.64 GiB
Licenceapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-3-4b-itgemma-4-E4B-itRatio
4,0960.25 GiB0.12 GiB2.02×
8,1920.33 GiB0.18 GiB1.84×
16,3840.48 GiB0.29 GiB1.68×
32,7680.79 GiB0.51 GiB1.57×
65,5361.42 GiB0.94 GiB1.51×
131,0722.67 GiB1.82 GiB1.47×