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.5B | Llama-3.1-8B-Instruct | |
|---|---|---|
| Parameters | 1.5B | 8.0B |
| Architecture | qwen2 | llama |
| Layers | 28 | 32 |
| Native context | 32,768 | 131,072 |
| Mixture of experts | no | no |
| Quantizations published | 6 | 45 |
| Smallest quantization | 0.92 GiB | 2.02 GiB |
| Q4_K_M | 0.92 GiB | 4.58 GiB |
| Licence | apache-2.0 | llama3.1 |
KV cache by context
the term that decides long-context viability
| Context | Qwen2.5-Coder-1.5B | Llama-3.1-8B-Instruct | Ratio |
|---|---|---|---|
| 4,096 | 0.11 GiB | 0.50 GiB | 4.57× |
| 8,192 | 0.22 GiB | 1.00 GiB | 4.57× |
| 16,384 | 0.44 GiB | 2.00 GiB | 4.57× |
| 32,768 | 0.88 GiB | 4.00 GiB | 4.57× |
| 65,536 | 1.75 GiB | 8.00 GiB | 4.57× |
| 131,072 | 3.50 GiB | 16.00 GiB | 4.57× |