Model comparison

granite-8b-code-instruct-4k vs Qwen3-4B

At Q4_K_M, Qwen3-4B is the smaller download — 2,497,280,256 bytes against 4,882,858,528.

From the file· summed bytes, KV per layer

Side by side

granite-8b-code-instruct-4kQwen3-4B
Parameters8.1B4.0B
Architecturellamaqwen3
Layers3636
Native context4,09640,960
Mixture of expertsnono
Quantizations published5729
Smallest quantization1.68 GiB1.01 GiB
Q4_K_M4.55 GiB2.33 GiB
Licenceapache-2.0

KV cache by context

the term that decides long-context viability
Contextgranite-8b-code-instruct-4kQwen3-4BRatio
4,0960.56 GiB0.56 GiB1.00×
8,1921.13 GiB1.13 GiB1.00×
16,3842.25 GiB2.25 GiB1.00×
32,7684.50 GiB4.50 GiB1.00×
65,5369.00 GiB9.00 GiB1.00×
131,07218.00 GiB18.00 GiB1.00×