Model comparison

stable-code-3b vs Qwen3-4B

At Q4_K_M, stable-code-3b is the smaller download — 1,708,595,200 bytes against 2,497,280,256. At long context the gap widens: Qwen3-4B's KV cache at 32K is 2.2× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

stable-code-3bQwen3-4B
Parameters2.8B4.0B
Architecturestablelmqwen3
Layers3236
Native context16,38440,960
Mixture of expertsnono
Quantizations published4829
Smallest quantization0.63 GiB1.01 GiB
Q4_K_M1.59 GiB2.33 GiB
Licenceother

KV cache by context

the term that decides long-context viability
Contextstable-code-3bQwen3-4BRatio
4,0961.25 GiB0.56 GiB2.22×
8,1922.50 GiB1.13 GiB2.22×
16,3845.00 GiB2.25 GiB2.22×
32,76810.00 GiB4.50 GiB2.22×
65,53620.00 GiB9.00 GiB2.22×
131,07240.00 GiB18.00 GiB2.22×