Model comparison

deepseek-coder-7b-instruct-v1.5 vs Qwen3-4B

At Q4_K_M, Qwen3-4B is the smaller download — 2,497,280,256 bytes against 4,223,359,872. At long context the gap widens: Qwen3-4B's KV cache at 32K is 3.3× smaller, which usually matters more than the difference in weights.

From the file· summed bytes, KV per layer

Side by side

deepseek-coder-7b-instruct-v1.5Qwen3-4B
Parameters6.9B4.0B
Architecturellamaqwen3
Layers3036
Native context4,09640,960
Mixture of expertsnono
Quantizations published4929
Smallest quantization1.61 GiB1.01 GiB
Q4_K_M3.93 GiB2.33 GiB
Licenceother

KV cache by context

the term that decides long-context viability
Contextdeepseek-coder-7b-instruct-v1.5Qwen3-4BRatio
4,0961.88 GiB0.56 GiB3.33×
8,1923.75 GiB1.13 GiB3.33×
16,3847.50 GiB2.25 GiB3.33×
32,76815.00 GiB4.50 GiB3.33×
65,53630.00 GiB9.00 GiB3.33×
131,07260.00 GiB18.00 GiB3.33×