Model comparison

Qwen2.5-Coder-3B-Instruct vs Llama-3.1-8B-Instruct

At Q4_K_M, Qwen2.5-Coder-3B-Instruct is the smaller download — 1,929,903,072 bytes against 4,920,739,168. At long context the gap widens: Qwen2.5-Coder-3B-Instruct's KV cache at 32K is 3.6× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

Qwen2.5-Coder-3B-InstructLlama-3.1-8B-Instruct
Parameters3.1B8.0B
Architectureqwen2llama
Layers3632
Native context32,768131,072
Mixture of expertsnono
Quantizations published3245
Smallest quantization1.06 GiB2.02 GiB
Q4_K_M1.80 GiB4.58 GiB
Licenceotherllama3.1

KV cache by context

the term that decides long-context viability
ContextQwen2.5-Coder-3B-InstructLlama-3.1-8B-InstructRatio
4,0960.14 GiB0.50 GiB3.56×
8,1920.28 GiB1.00 GiB3.56×
16,3840.56 GiB2.00 GiB3.56×
32,7681.13 GiB4.00 GiB3.56×
65,5362.25 GiB8.00 GiB3.56×
131,0724.50 GiB16.00 GiB3.56×