Model comparison

gemma-7b vs gemma-4-E4B-it

At Q4_K_M, gemma-4-E4B-it is the smaller download — 4,977,171,584 bytes against 5,329,758,592. At long context the gap widens: gemma-4-E4B-it's KV cache at 32K is 27.7× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-7bgemma-4-E4B-it
Parameters8.5B8.0B
Architecturegemmagemma4
Layers2842
Native context8,192131,072
Mixture of expertsnono
Quantizations published3136
Smallest quantization2.01 GiB3.30 GiB
Q4_K_M4.96 GiB4.64 GiB
Licencegemmaapache-2.0

KV cache by context

the term that decides long-context viability
Contextgemma-7bgemma-4-E4B-itRatio
4,0961.75 GiB0.12 GiB14.22×
8,1923.50 GiB0.18 GiB19.69×
16,3847.00 GiB0.29 GiB24.38×
32,76814.00 GiB0.51 GiB27.68×
65,53628.00 GiB0.94 GiB29.68×
131,07256.00 GiB1.82 GiB30.80×