Model comparison

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

At Q4_K_M, Qwen2.5-Coder-1.5B is the smaller download — 986,045,504 bytes against 4,920,739,168. At long context the gap widens: Qwen2.5-Coder-1.5B's KV cache at 32K is 4.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-1.5BLlama-3.1-8B-Instruct
Parameters1.5B8.0B
Architectureqwen2llama
Layers2832
Native context32,768131,072
Mixture of expertsnono
Quantizations published645
Smallest quantization0.92 GiB2.02 GiB
Q4_K_M0.92 GiB4.58 GiB
Licenceapache-2.0llama3.1

KV cache by context

the term that decides long-context viability
ContextQwen2.5-Coder-1.5BLlama-3.1-8B-InstructRatio
4,0960.11 GiB0.50 GiB4.57×
8,1920.22 GiB1.00 GiB4.57×
16,3840.44 GiB2.00 GiB4.57×
32,7680.88 GiB4.00 GiB4.57×
65,5361.75 GiB8.00 GiB4.57×
131,0723.50 GiB16.00 GiB4.57×