Qwen · text

Qwen2.5-Coder-3B-Instruct

Qwen/Qwen2.5-Coder-3B-Instruct

Qwen2.5-Coder-3B-Instruct at Q4_K_M is exactly 1,929,903,072 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,516,0962.957bartowski
Q2_K1.19 GiB1,274,756,3523.305bartowski
Q2_K_L1.26 GiB1,350,116,6083.500bartowski
Q2_K1.28 GiB1,376,856,5123.569Qwen
IQ3_XS1.30 GiB1,391,836,4163.608bartowski
Q3_K_S1.35 GiB1,454,357,7603.770bartowski
IQ3_M1.39 GiB1,488,895,2323.860bartowski
Q3_K_M1.48 GiB1,590,476,0324.123434bartowski
Q3_K_L1.59 GiB1,707,391,9684.426lmstudio-community
Q3_K_L1.59 GiB1,707,392,2564.426bartowski
Q3_K_M1.61 GiB1,724,178,8804.470435Qwen
IQ4_XS1.62 GiB1,739,095,2964.508434bartowski
Q4_01.70 GiB1,828,486,4004.740434bartowski
Q4_K_S1.71 GiB1,834,384,6404.755bartowski
Q4_K_M1.80 GiB1,929,903,0725.003lmstudio-community
Q4_K_M1.80 GiB1,929,903,3605.003bartowski
Q4_01.86 GiB1,997,879,7445.179435Qwen
Q4_K_L1.87 GiB2,005,263,6165.199bartowski
Q4_K_M1.96 GiB2,104,932,8005.457435Qwen
Q5_K_S2.02 GiB2,169,666,8165.625bartowski
Q5_K_M2.07 GiB2,224,815,3605.768434bartowski
Q5_K_L2.14 GiB2,300,175,6165.963bartowski
Q5_02.22 GiB2,383,591,8726.179Qwen
Q5_K_M2.27 GiB2,438,740,4166.322435Qwen
Q6_K2.36 GiB2,538,159,0726.580434lmstudio-community
Q6_K2.36 GiB2,538,159,3606.580bartowski
Q6_K_L2.43 GiB2,613,519,6166.775bartowski
Q6_K2.60 GiB2,793,411,0087.242435Qwen
Q8_03.06 GiB3,285,476,3208.517434lmstudio-community
Q8_03.06 GiB3,285,476,6088.517bartowski
Q8_03.37 GiB3,616,088,5129.374435Qwen
F165.75 GiB6,178,317,28016.017434bartowski

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-Instruct need?
Q4_K_M is exactly 1,929,903,072 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-Instruct'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-Instruct 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.