Model comparison
granite-8b-code-instruct-4k vs Qwen3-8B
At Q4_K_M, granite-8b-code-instruct-4k is the smaller download — 4,882,858,528 bytes against 5,027,783,488.
From the file· summed bytes, KV per layer
Side by side
| granite-8b-code-instruct-4k | Qwen3-8B | |
|---|---|---|
| Parameters | 8.1B | 8.2B |
| Architecture | llama | qwen3 |
| Layers | 36 | 36 |
| Native context | 4,096 | 40,960 |
| Mixture of experts | no | no |
| Quantizations published | 57 | 51 |
| Smallest quantization | 1.68 GiB | 2.12 GiB |
| Q4_K_M | 4.55 GiB | 4.68 GiB |
| Licence | apache-2.0 | apache-2.0 |
KV cache by context
the term that decides long-context viability
| Context | granite-8b-code-instruct-4k | Qwen3-8B | Ratio |
|---|---|---|---|
| 4,096 | 0.56 GiB | 0.56 GiB | 1.00× |
| 8,192 | 1.13 GiB | 1.13 GiB | 1.00× |
| 16,384 | 2.25 GiB | 2.25 GiB | 1.00× |
| 32,768 | 4.50 GiB | 4.50 GiB | 1.00× |
| 65,536 | 9.00 GiB | 9.00 GiB | 1.00× |
| 131,072 | 18.00 GiB | 18.00 GiB | 1.00× |