Qwen3-Coder-30B-A3B-Instruct: how much VRAM does it need?
This page was written and translated automatically by AI and checked by software against its sources, with no human editing. Specifications come from the sources listed; memory requirements and speeds are estimates calculated with published formulas. How we use AI
Qwen3-Coder-30B-A3B-Instruct is a mixture-of-experts model with 30.5B parameters, of which about 3.0B are active per token (input embedding lookup not counted). At Q4_K_M with a context of 8,192 tokens, a single GPU needs 20.1 GiB of available memory for the result to be “Fits”.
File sizes are the real files on Hugging Face. The other columns give X, the available memory one GPU needs for the result to be “Fits” (largest buffer estimate ÷ 0.95 + 1 GiB), with llama.cpp, Flash Attention, F16 KV cache, 4 parallel sequences and micro-batch 512. They do not depend on any particular GPU.
Quantization
File size
X at 4,096 context
X at 8,192 context
X at 32,768 context
X at 131,072 context
BF16
56.90 GiB (2 files)
61.0 GiB
61.4 GiB
63.8 GiB
73.5 GiB
Q8_0
30.25 GiB
33.2 GiB
33.6 GiB
36.0 GiB
45.7 GiB
Q6_K
23.37 GiB
26.1 GiB
26.5 GiB
28.9 GiB
38.5 GiB
Q5_K_M
20.23 GiB
22.8 GiB
23.2 GiB
25.6 GiB
35.3 GiB
Q4_K_M
17.28 GiB
19.7 GiB
20.1 GiB
22.5 GiB
32.2 GiB
Q4_0
16.19 GiB
18.6 GiB
19.0 GiB
21.4 GiB
31.1 GiB
IQ4_XS
15.25 GiB
17.6 GiB
18.0 GiB
20.4 GiB
30.1 GiB
Q3_K_M
13.70 GiB
16.0 GiB
16.4 GiB
18.8 GiB
28.5 GiB
Q2_K
10.49 GiB
12.6 GiB
13.0 GiB
15.5 GiB
25.1 GiB
Smallest GPU for each quantization
For each quantization: the listed GPU with the least memory whose estimate is “Fits” on one card at 8,192 tokens of context. GPUs whose result is “Unknown” (no runtime profile, workstation and data-center cards, unified memory) are not considered.
Quantization
Smallest GPU that fits (one card)
Memory
BF16
No listed GPU fits on one card. For several cards, use the Calculator
—
Q8_0
No listed GPU fits on one card. For several cards, use the Calculator
“Fits” means llama.cpp's default --fit load check would place all layers on the GPU: our estimate of llama.cpp's buffers, plus its error margin, plus llama.cpp's 1 GiB per-card reserve, is within the memory counted as available. It does not promise that peak memory while generating fits. How results are decided
Context 8,192 tokens. Highest quantization that fits on one card, its longest context and the speed ceiling.
Unknown: memory configuration not established for this GPU; only “Doesn’t fit” would be shown.
Unknown
CUDA (NVIDIA): llama.cpp, CUDA back end (NVIDIA discrete GPU), all layers on the GPU, Flash Attention on, micro-batch (-ub) 512, F16 KV cache, context (-c) as shown; “Fits” is judged with llama-server’s default 4 parallel sequences (-np auto, unified KV cache) and “Doesn’t fit” with 1 sequence; idle GPU with no other programs using its memory.
ROCm on Linux (AMD): llama.cpp, ROCm back end on Linux (AMD discrete GPU), all layers on the GPU, Flash Attention on, micro-batch (-ub) 512, F16 KV cache, context (-c) as shown; “Fits” is judged with llama-server’s default 4 parallel sequences (-np auto, unified KV cache) and “Doesn’t fit” with 1 sequence; idle GPU with no other programs using its memory.
The speed ceiling is memory bandwidth divided by the bytes read per generated token. It is a theoretical upper bound; public llama.cpp benchmarks typically reach about half to four-fifths of it, and small models and mixture-of-experts models often less. Public benchmarks
Original weights
The model’s original weight files (safetensors, counted as described in the methodology) total 56.9 GiB. They are listed for reference only; every estimate on this page is for the GGUF files above, run with llama.cpp. Qwen/Qwen3-Coder-30B-A3B-Instruct · Methodology