Qwen · text

Qwen2.5-Coder-32B

Qwen/Qwen2.5-Coder-32B

Qwen2.5-Coder-32B at Q4_K_M is exactly 19,851,336,224 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
IQ1_S6.77 GiB7,274,507,2321.776ThomasBaruzier
IQ1_M7.39 GiB7,932,160,9921.937ThomasBaruzier
IQ2_XXS8.41 GiB9,028,250,4002.204bartowski
IQ2_XXS8.41 GiB9,028,250,5922.204ThomasBaruzier
IQ2_XS9.27 GiB9,957,550,8802.431bartowski
IQ2_XS9.27 GiB9,957,551,0722.431ThomasBaruzier
IQ2_S9.67 GiB10,387,569,4402.536bartowski
IQ2_S9.67 GiB10,387,569,6322.536ThomasBaruzier
IQ2_M10.49 GiB11,264,441,1202.751bartowski
IQ2_M10.49 GiB11,264,441,3122.751ThomasBaruzier
Q2_K_S10.70 GiB11,488,000,9922.805ThomasBaruzier
Q2_K11.47 GiB12,313,099,0403.006bartowski
Q2_K11.47 GiB12,313,099,2323.006ThomasBaruzier
IQ3_XXS11.96 GiB12,839,271,2003.135bartowski
IQ3_XXS11.96 GiB12,839,271,3923.135ThomasBaruzier
Q2_K_L12.18 GiB13,073,419,0403.192bartowski
IQ3_XS12.76 GiB13,705,513,7603.346bartowski
IQ3_XS12.76 GiB13,705,513,9523.346ThomasBaruzier
Q3_K_S13.40 GiB14,392,331,0403.514bartowski
Q3_K_S13.40 GiB14,392,331,2323.514ThomasBaruzier
IQ3_S13.45 GiB14,436,895,7123.525ThomasBaruzier
IQ3_M13.79 GiB14,810,123,0403.616bartowski
IQ3_M13.79 GiB14,810,123,2323.616ThomasBaruzier
Q3_K_M14.84 GiB15,935,048,4803.891bartowski
Q3_K_M14.84 GiB15,935,048,6723.891ThomasBaruzier
Q3_K_L16.06 GiB17,247,078,9444.211lmstudio-community
Q3_K_L16.06 GiB17,247,079,2004.211bartowski
Q3_K_L16.06 GiB17,247,079,3924.211ThomasBaruzier
IQ4_XS16.48 GiB17,693,154,0804.320bartowski
IQ4_XS16.48 GiB17,693,154,2724.320ThomasBaruzier
IQ4_NL17.40 GiB18,682,174,2404.562bartowski
IQ4_NL17.40 GiB18,682,174,4324.562ThomasBaruzier
Q4_017.43 GiB18,711,010,0804.569bartowski
Q4_017.43 GiB18,711,010,2724.569ThomasBaruzier
Q4_K_S17.49 GiB18,784,410,4004.587bartowski
Q4_K_S17.49 GiB18,784,410,5924.587ThomasBaruzier
Q4_K_M18.49 GiB19,851,336,2244.847lmstudio-community
Q4_K_M18.49 GiB19,851,336,4804.847bartowski
Q4_K_M18.49 GiB19,851,336,6724.847ThomasBaruzier
Q4_K_L19.03 GiB20,429,179,6804.988bartowski

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 need?
Q4_K_M is exactly 19,851,336,224 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'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 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.