Model comparison

MathCoder2-CodeLlama-7B vs gemma-4-E4B-it

At Q4_K_M, MathCoder2-CodeLlama-7B is the smaller download — 4,081,096,640 bytes against 4,977,171,584. At long context the gap widens: gemma-4-E4B-it's KV cache at 32K is 31.6× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

MathCoder2-CodeLlama-7Bgemma-4-E4B-it
Parameters6.7B8.0B
Architecturellamagemma4
Layers3242
Native context16,384131,072
Mixture of expertsnono
Quantizations published2036
Smallest quantization2.20 GiB3.30 GiB
Q4_K_M3.80 GiB4.64 GiB
Licenceapache-2.0apache-2.0

KV cache by context

the term that decides long-context viability
ContextMathCoder2-CodeLlama-7Bgemma-4-E4B-itRatio
4,0962.00 GiB0.12 GiB16.25×
8,1924.00 GiB0.18 GiB22.51×
16,3848.00 GiB0.29 GiB27.86×
32,76816.00 GiB0.51 GiB31.63×
65,53632.00 GiB0.94 GiB33.92×
131,07264.00 GiB1.82 GiB35.20×