Model comparison

gemma-4-12B-it-qat-q4_0-unquantized vs Llama-2-13b-chat-hf

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: gemma-4-12B-it-qat-q4_0-unquantized's KV cache at 32K is 10.1× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

gemma-4-12B-it-qat-q4_0-unquantizedLlama-2-13b-chat-hf
Parameters12.0B13.0B
Architecturegemma4llama
Layers4840
Native context262,1444,096
Mixture of expertsnono
Quantizations published225
Smallest quantization6.50 GiB5.06 GiB
Q4_K_M7.33 GiB
Licenceapache-2.0llama2

KV cache by context

the term that decides long-context viability
Contextgemma-4-12B-it-qat-q4_0-unquantizedLlama-2-13b-chat-hfRatio
4,0960.72 GiB3.13 GiB4.35×
8,1920.97 GiB6.25 GiB6.45×
16,3841.47 GiB12.50 GiB8.51×
32,7682.47 GiB25.00 GiB10.13×
65,5364.47 GiB50.00 GiB11.19×
131,0728.47 GiB100.00 GiB11.81×