Model comparison

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

These two publish different quantization sets; the table below has the exact sizes. 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-it-qatgemma-4-E4B-it
Parameters3.9B8.0B
Architecturegemma3gemma4
Layers3442
Native context131,072131,072
Mixture of expertsnono
Quantizations published136
Smallest quantization2.35 GiB3.30 GiB
Q4_K_M4.64 GiB
Licenceapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-3-4b-it-qatgemma-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×