Qwen · text

Qwen2.5-Coder-3B

Qwen/Qwen2.5-Coder-3B

Qwen2.5-Coder-3B at Q4_K_M is exactly 1,929,902,912 bytes (1.80 GiB / 1.93 GB) — an effective 5.003 bits per weight, not the nominal 4. Its KV cache at 32K is 1.13 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
3.1B
Architecture
qwen2
36 layers
Context
32,768
native (config.json)
License
other

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_M1.06 GiB1,140,515,9362.957bartowski
Q2_K1.19 GiB1,274,756,1923.305bartowski
Q2_K_L1.26 GiB1,350,116,4483.500bartowski
IQ3_XS1.30 GiB1,391,836,2563.608bartowski
Q3_K_S1.35 GiB1,454,357,6003.770bartowski
IQ3_M1.39 GiB1,488,895,0723.860bartowski
Q3_K_M1.48 GiB1,590,475,8724.123bartowski
Q3_K_L1.59 GiB1,707,391,8084.426lmstudio-community
Q3_K_L1.59 GiB1,707,392,0964.426bartowski
IQ4_XS1.62 GiB1,739,095,1364.508bartowski
Q4_01.70 GiB1,828,486,2404.740bartowski
Q4_K_S1.71 GiB1,834,384,4804.755bartowski
Q4_K_M1.80 GiB1,929,902,9125.003lmstudio-community
Q4_K_M1.80 GiB1,929,903,2005.003bartowski
Q4_K_L1.87 GiB2,005,263,4565.199bartowski
Q5_K_S2.02 GiB2,169,666,6565.625bartowski
Q5_K_M2.07 GiB2,224,815,2005.768bartowski
Q5_K_L2.14 GiB2,300,175,4565.963bartowski
Q6_K2.36 GiB2,538,158,9126.580lmstudio-community
Q6_K2.36 GiB2,538,159,2006.580bartowski
Q6_K_L2.43 GiB2,613,519,4566.775bartowski
Q8_03.06 GiB3,285,476,1608.517ggml-org
Q8_03.06 GiB3,285,476,1608.517lmstudio-community
Q8_03.06 GiB3,285,476,4488.517bartowski
F165.75 GiB6,178,317,12016.017bartowski

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.14 GiB0.14 GiB36 / 0 / 0
8,1920.28 GiB0.28 GiB36 / 0 / 0
16,3840.56 GiB0.56 GiB36 / 0 / 0
32,7681.13 GiB1.13 GiB36 / 0 / 0
65,5362.25 GiB2.25 GiB36 / 0 / 0
131,0724.50 GiB4.50 GiB36 / 0 / 0

Compare with

same modality, comparable size

Will it run on your card?

full quant x context sweep

Why other calculators give a different number

A parameters × bits ÷ 8 estimate puts Q4_K_M at roughly 1.62 GiB. The real file is 1.80 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
36
Attention heads
16
KV heads
2
Head dim
128
Hidden size
2048
Vocab
151,936
Sliding window
32768
SWA period
MLA
no
Experts
Experts per token
use_sliding_window
false

This model declares a sliding window but sets use_sliding_window: false, so the window is not applied. Honouring the field without the flag understates KV for the whole family.

Questions people ask

How much VRAM does Qwen2.5-Coder-3B need?
Q4_K_M is exactly 1,929,902,912 bytes (1.80 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Qwen2.5-Coder-3B's KV cache?
1.13 GiB at 32K context with an f16 cache, computed per layer. Quantizing the cache to q8_0 roughly halves it, which is often the difference between a context length fitting and not.
Which quantization of Qwen2.5-Coder-3B should I use?
Q4_K_M is the usual default. Pick the largest quantization that fits your card at the context you actually need — the table above gives exact sizes for every one published.