Qwen · text

Qwen2.5-Coder-32B-Instruct

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

Qwen2.5-Coder-32B-Instruct at Q4_K_M is exactly 19,851,336,384 bytes (18.49 GiB / 19.85 GB) — an effective 4.847 bits per weight, not the nominal 4. Its KV cache at 32K is 8.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
32.8B
Architecture
qwen2
64 layers
Context
32,768
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
IQ2_XXS8.41 GiB9,028,250,5922.204bartowski
IQ2_XS9.27 GiB9,957,551,0722.431bartowski
IQ2_S9.67 GiB10,387,569,6322.536bartowski
IQ2_M10.49 GiB11,264,441,3122.751bartowski
Q2_K11.47 GiB12,313,099,2323.006bartowski
IQ3_XXS11.96 GiB12,839,271,3923.135bartowski
Q2_K_L12.18 GiB13,073,419,2323.192bartowski
IQ3_XS12.76 GiB13,705,513,9523.346bartowski
Q3_K_S13.40 GiB14,392,331,2323.514bartowski
IQ3_M13.79 GiB14,810,123,2323.616bartowski
Q3_K_M14.84 GiB15,935,048,6723.891771bartowski
Q3_K_L16.06 GiB17,247,079,1044.211lmstudio-community
Q3_K_L16.06 GiB17,247,079,3924.211bartowski
IQ4_XS16.48 GiB17,693,154,2724.320771bartowski
IQ4_NL17.40 GiB18,682,174,4324.562bartowski
Q4_017.43 GiB18,711,010,2724.569771bartowski
Q4_K_S17.49 GiB18,784,410,5924.587bartowski
Q4_K_M18.49 GiB19,851,336,3844.847771lmstudio-community
Q4_K_M18.49 GiB19,851,336,6724.847771bartowski
Q4_K_L19.03 GiB20,429,179,8724.988bartowski
Q5_K_S21.08 GiB22,638,255,0725.528bartowski
Q5_K_M21.66 GiB23,262,157,7925.680771bartowski
Q5_K_L22.11 GiB23,742,680,0325.797bartowski
Q2_K3 shards22.93 GiB24,626,196,9926.013Qwen
Q6_K25.04 GiB26,886,154,9446.565771lmstudio-community
Q6_K25.04 GiB26,886,155,2326.565bartowski
Q6_K_L25.39 GiB27,263,273,9526.657bartowski
Q3_K_M3 shards29.68 GiB31,870,095,8727.782Qwen
Q8_032.43 GiB34,820,885,1848.502771bartowski
Q8_032.43 GiB34,820,885,1848.502771lmstudio-community
Q4_04 shards34.72 GiB37,280,461,4089.103Qwen
Q4_K_M4 shards36.98 GiB39,702,672,0009.694Qwen
Q5_04 shards42.17 GiB45,276,508,80011.055Qwen
Q5_K_M4 shards43.33 GiB46,524,314,20811.360Qwen
Q6_K5 shards50.08 GiB53,772,309,24813.130Qwen
Q8_06 shards64.86 GiB69,641,769,82417.005Qwen

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0961.00 GiB1.00 GiB64 / 0 / 0
8,1922.00 GiB2.00 GiB64 / 0 / 0
16,3844.00 GiB4.00 GiB64 / 0 / 0
32,7688.00 GiB8.00 GiB64 / 0 / 0
65,53616.00 GiB16.00 GiB64 / 0 / 0
131,07232.00 GiB32.00 GiB64 / 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 17.16 GiB. The real file is 18.49 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
64
Attention heads
40
KV heads
8
Head dim
128
Hidden size
5120
Vocab
152,064
Sliding window
131072
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-32B-Instruct need?
Q4_K_M is exactly 19,851,336,384 bytes (18.49 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-32B-Instruct's KV cache?
8.00 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-32B-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.