Qwen3-Coder-Next-Base: 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-Next-Base is a mixture-of-experts model with 79.7B parameters, of which about 3.6B are active per token (input embedding lookup not counted). At Q4_K_M with a context of 8,192 tokens, a single GPU needs 49.2 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
Q6_K
61.03 GiB
65.7 GiB
65.8 GiB
66.5 GiB
69.0 GiB
Q5_K_M
52.89 GiB
57.2 GiB
57.3 GiB
57.9 GiB
60.5 GiB
Q4_K_M
45.16 GiB
49.1 GiB
49.2 GiB
49.8 GiB
52.4 GiB
Q4_0
42.17 GiB
45.9 GiB
46.0 GiB
46.7 GiB
49.3 GiB
IQ4_XS
39.68 GiB
43.3 GiB
43.4 GiB
44.1 GiB
46.6 GiB
Q3_K_M
35.65 GiB
39.1 GiB
39.2 GiB
39.9 GiB
42.4 GiB
IQ3_XXS
28.68 GiB
31.8 GiB
31.9 GiB
32.5 GiB
35.1 GiB
Q2_K
27.13 GiB
30.2 GiB
30.3 GiB
30.9 GiB
33.5 GiB
IQ2_M
24.27 GiB
27.1 GiB
27.2 GiB
27.9 GiB
30.4 GiB
IQ2_XXS
19.57 GiB
22.2 GiB
22.3 GiB
23.0 GiB
25.5 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
Q6_K
No listed GPU fits on one card. For several cards, use the Calculator
—
Q5_K_M
No listed GPU fits on one card. For several cards, use the Calculator
—
Q4_K_M
No listed GPU fits on one card. For several cards, use the Calculator
—
Q4_0
No listed GPU fits on one card. For several cards, use the Calculator
—
IQ4_XS
No listed GPU fits on one card. For several cards, use the Calculator
—
Q3_K_M
No listed GPU fits on one card. For several cards, use the Calculator
—
IQ3_XXS
No listed GPU fits on one card. For several cards, use the Calculator
—
Q2_K
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 148.4 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-Next-Base · Methodology