Model comparison

Phi-3.5-mini-instruct vs Llama-3.2-1B-Instruct

These two publish different quantization sets; the table below has the exact sizes. At long context the gap widens: Llama-3.2-1B-Instruct's KV cache at 32K is 12.0× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

Phi-3.5-mini-instructLlama-3.2-1B-Instruct
Parameters3.8B1.2B
Architecturellamallama
Layers3216
Native context131,072131,072
Mixture of expertsnono
Quantizations published2439
Smallest quantization0.82 GiB0.39 GiB
Q4_K_M0.75 GiB
Licencemit

KV cache by context

the term that decides long-context viability
ContextPhi-3.5-mini-instructLlama-3.2-1B-InstructRatio
4,0961.50 GiB0.13 GiB12.00×
8,1923.00 GiB0.25 GiB12.00×
16,3846.00 GiB0.50 GiB12.00×
32,76812.00 GiB1.00 GiB12.00×
65,53624.00 GiB2.00 GiB12.00×
131,07248.00 GiB4.00 GiB12.00×