Qwen · text · mixture of experts

Qwen3-Coder-30B-A3B-Instruct

Qwen/Qwen3-Coder-30B-A3B-Instruct

Qwen3-Coder-30B-A3B-Instruct at Q4_K_M is exactly 18,556,689,568 bytes (17.28 GiB / 18.56 GB) — an effective 4.862 bits per weight, not the nominal 4. Its KV cache at 32K is 3.00 GiB.

From the file· summed from 1 file(s)From the file· KV per layer
Parameters
30.5B
total, not active
Architecture
qwen3moe
48 layers
Context
262,144
native (config.json)
License
apache-2.0

Shipped quantizations

exact bytes, summed from published files
QuantSizeExact bytesEffective bpwTensorsPublisher
UD-TQ1_07.46 GiB8,005,213,3442.098unsloth
UD-TQ1_07.52 GiB8,072,846,6882.115unsloth
UD-IQ1_S8.30 GiB8,914,328,7362.336unsloth
UD-IQ1_S8.34 GiB8,956,796,2562.347unsloth
UD-IQ1_M8.97 GiB9,627,540,6402.523unsloth
UD-IQ1_M8.99 GiB9,647,988,0642.528unsloth
UD-IQ2_XXS9.62 GiB10,333,691,0402.708unsloth
UD-IQ2_XXS9.63 GiB10,344,701,2802.711unsloth
UD-IQ2_M10.09 GiB10,837,007,5202.840unsloth
UD-IQ2_M10.10 GiB10,848,017,7602.842unsloth
Q2_K10.49 GiB11,258,612,8962.950unsloth
Q2_K10.49 GiB11,258,613,0882.950unsloth
Q2_K_L10.55 GiB11,331,542,1762.969unsloth
Q2_K_L10.55 GiB11,331,542,3682.969unsloth
UD-IQ3_XXS11.97 GiB12,848,766,1123.367unsloth
UD-IQ3_XXS11.99 GiB12,869,213,5363.372unsloth
Q3_K_S12.38 GiB13,292,471,4563.483unsloth
Q3_K_S12.38 GiB13,292,471,6483.483unsloth
Q3_K_L13.58 GiB14,583,005,5043.821lmstudio-community
Q3_K_M13.70 GiB14,711,850,1443.855579unsloth
Q3_K_M13.70 GiB14,711,850,3363.855579unsloth
IQ4_XS15.25 GiB16,378,076,3204.291579unsloth
IQ4_XS15.25 GiB16,378,076,5124.291579unsloth
IQ4_NL16.12 GiB17,310,784,6724.536unsloth
IQ4_NL16.12 GiB17,310,784,8644.536unsloth
Q4_016.19 GiB17,379,990,6884.554unsloth
Q4_016.19 GiB17,379,990,8804.554579unsloth
Q4_K_S16.26 GiB17,456,012,4484.574unsloth
Q4_K_S16.26 GiB17,456,012,6404.574unsloth
Q4_K_M17.28 GiB18,556,689,5684.862579unsloth
Q4_K_M17.28 GiB18,556,689,7604.862579unsloth
Q4_K_M17.35 GiB18,632,186,1764.882579lmstudio-community
Q4_117.87 GiB19,192,503,4565.029unsloth
Q4_117.87 GiB19,192,503,6485.029unsloth
Q5_K_S19.63 GiB21,080,513,6965.524unsloth
Q5_K_S19.63 GiB21,080,513,8885.524unsloth
Q5_K_M20.23 GiB21,725,584,5445.692579unsloth
Q5_K_M20.23 GiB21,725,584,7365.692579unsloth
Q6_K23.37 GiB25,092,535,4566.575unsloth
Q6_K23.37 GiB25,092,535,6486.575579unsloth

KV cache by context

computed per layer
ContextKV cache (f16)Flat formulaOverstated byFull / windowed / recurrent
4,0960.38 GiB0.38 GiB48 / 0 / 0
8,1920.75 GiB0.75 GiB48 / 0 / 0
16,3841.50 GiB1.50 GiB48 / 0 / 0
32,7683.00 GiB3.00 GiB48 / 0 / 0
65,5366.00 GiB6.00 GiB48 / 0 / 0
131,07212.00 GiB12.00 GiB48 / 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 15.99 GiB. The real file is 17.28 GiB, because a quantization is a mixture and some tensors are always kept at higher precision.

Architecture

from config.json
Layers
48
Attention heads
32
KV heads
4
Head dim
128
Hidden size
2048
Vocab
151,936
Sliding window
none
SWA period
MLA
no
Experts
128
Experts per token
8
use_sliding_window
false

Questions people ask

How much VRAM does Qwen3-Coder-30B-A3B-Instruct need?
Q4_K_M is exactly 18,556,689,568 bytes (17.28 GiB) in weights. Add the KV cache, which depends on your context length, plus roughly half a gigabyte of runtime overhead.
How large is Qwen3-Coder-30B-A3B-Instruct's KV cache?
3.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.
Is Qwen3-Coder-30B-A3B-Instruct a mixture-of-experts model?
Yes — 128 experts, 8 routed per token. Every expert must be resident, but only the routed ones are read per token, which is why its memory requirement and its speed behave very differently.
Which quantization of Qwen3-Coder-30B-A3B-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.