Model comparison

Llama-2-13b-chat-hf vs gemma-4-E4B-it

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

From the file· summed bytes, KV per layer

Side by side

Llama-2-13b-chat-hfgemma-4-E4B-it
Parameters13.0B8.0B
Architecturellamagemma4
Layers4042
Native context4,096131,072
Mixture of expertsnono
Quantizations published2536
Smallest quantization5.06 GiB3.30 GiB
Q4_K_M7.33 GiB4.64 GiB
Licencellama2apache-2.0

KV cache by context

the term that decides long-context viability
ContextLlama-2-13b-chat-hfgemma-4-E4B-itRatio
4,0963.13 GiB0.12 GiB25.40×
8,1926.25 GiB0.18 GiB35.16×
16,38412.50 GiB0.29 GiB43.54×
32,76825.00 GiB0.51 GiB49.42×
65,53650.00 GiB0.94 GiB53.00×
131,072100.00 GiB1.82 GiB54.99×