Qwen 3 Coder 30B A3B

MoE · 3.3B active

Agentic coding specialist built on the ultra-fast 30B-A3B MoE architecture with 256K native context.

Alibaba·30.5B params·48 layers / 4 KV heads·Max 256K ctx·Apache 2.0
Local Run Command
Q4_K_M minimum memory: 20.3 GB at 16K context.
Artificial Analysis Benchmarkartificialanalysis.ai ↗
Intelligence Index
—
Cloud API median
148 tok/s

Independent benchmark scores sourced from Artificial Analysis.

OpenRouter API & Cloud GPUOpenRouter ↗
Input / 1M
$0.07
Output / 1M
$0.28

VRAM by Quantization (16K context)

Q4_K_M (4-bit)17.3 GB
real file size
1.5 GB20.3 GB19.6 GBBest speed-to-quality balance for local inference (~98% quality)
ollama run qwen3-coder:30b
Q6_K (6-bit)23.4 GB
estimate
1.5 GB26.7 GB25.9 GBNear-lossless quality with ~35% larger footprint than Q4
Q8_0 (8-bit)30.3 GB
real file size
1.5 GB33.9 GB33.1 GBVirtually indistinguishable from FP16 for coding & reasoning
ollama run qwen3-coder:30b-a3b-q8_0
FP16 / BF16 (16-bit)56.9 GB
real file size
1.5 GB61.7 GB61.0 GBFull native precision; standard for production GPU serving
ollama run qwen3-coder:30b-a3b-fp16

Layer and head counts are read from the published config.json. KV cache is exact for this architecture.

Run Qwen 3 Coder 30B A3B with Ollama, LM Studio, llama.cpp, MLX or vLLM

Command
Ollama
Q4_K_M
qwen3-coder:30b
17.3 GB
real file size
LM Studio
Q4_K_M
ggml-org/Qwen3-Coder-30B-A3B-Instruct-GGUF
16.8 GB
real file size
Not in LM Studio's catalog. Search for ggml-org/Qwen3-Coder-30B-A3B-Instruct-GGUF in the app's Discover tab.
llama.cpp
Q4_K_M
ggml-org/Qwen3-Coder-30B-A3B-Instruct-GGUF
16.8 GB
real file size
MLX
4-bit
mlx-community/Qwen3-Coder-30B-A3B-Instruct-4bit
16.0 GB
real file size
vLLM
INT4
18.5 GB
estimate
No INT4 build of this model found for vLLM.

Each runtime loads its own build of the model, so download sizes differ. Sizes marked as real are file sizes read from the Ollama registry or Hugging Face.

Hardware Compatibility Matrix (Q4_K_M · 16K context)

Details
11.5 GBToo large——Qwen 3 Coder 30B A3B on M1 16GB →
48.0 GBFits comfortably53–88 tok/s—Qwen 3 Coder 30B A3B on M1 Max 64GB →
98.0 GBFits comfortably60–125 tok/s—Qwen 3 Coder 30B A3B on M1 Ultra 128GB →
18.0 GBPartial offload7.9–18.4 tok/s—Qwen 3 Coder 30B A3B on M2 24GB →
48.0 GBFits comfortably50–103 tok/s—Qwen 3 Coder 30B A3B on M2 Max 64GB →
152 GBFits comfortably87–145 tok/s—Qwen 3 Coder 30B A3B on M2 Ultra 192GB →
27.0 GBFits comfortably24–50 tok/s—Qwen 3 Coder 30B A3B on M3 Pro 36GB →
48.0 GBFits comfortably50–103 tok/s—Qwen 3 Coder 30B A3B on M3 Max 64GB →
98.0 GBFits comfortably50–103 tok/s—Qwen 3 Coder 30B A3B on M3 Max 128GB →
11.5 GBToo large——Qwen 3 Coder 30B A3B on M4 16GB →
24.0 GBFits comfortably19.3–40 tok/s—Qwen 3 Coder 30B A3B on M4 32GB →
36.0 GBFits comfortably38–80 tok/s—Qwen 3 Coder 30B A3B on M4 Pro 48GB →
48.0 GBFits comfortably38–80 tok/s—Qwen 3 Coder 30B A3B on M4 Pro 64GB →
48.0 GBFits comfortably60–124 tok/s—Qwen 3 Coder 30B A3B on M4 Max 64GB →
98.0 GBFits comfortably60–124 tok/s—Qwen 3 Coder 30B A3B on M4 Max 128GB →
98.0 GBFits comfortably60–124 tok/s—Qwen 3 Coder 30B A3B on Studio M4 Max 128GB →
204 GBFits comfortably83–137 tok/s—Qwen 3 Coder 30B A3B on M3 Ultra 256GB →
430 GBFits comfortably83–137 tok/s—Qwen 3 Coder 30B A3B on M3 Ultra 512GB →
24.0 GBFits comfortably32–52 tok/s—Qwen 3 Coder 30B A3B on M1 Pro 32GB →
24.0 GBFits comfortably30–63 tok/s—Qwen 3 Coder 30B A3B on M2 Pro 32GB →
27.0 GBFits comfortably41–85 tok/s—Qwen 3 Coder 30B A3B on M3 Max 36GB →
11.5 GBToo large——Qwen 3 Coder 30B A3B on Air M4 16GB →
24.0 GBFits comfortably19.3–40 tok/s—Qwen 3 Coder 30B A3B on Air M4 32GB →
18.0 GBPartial offload17.7–41 tok/s—Qwen 3 Coder 30B A3B on M4 Pro 24GB →
11.5 GBToo large——Qwen 3 Coder 30B A3B on Air M5 16GB →
24.0 GBFits comfortably25–51 tok/s—Qwen 3 Coder 30B A3B on Air M5 32GB →
48.0 GBFits comfortably42–86 tok/s—Qwen 3 Coder 30B A3B on M5 Pro 64GB →
98.0 GBFits comfortably64–132 tok/s—Qwen 3 Coder 30B A3B on M5 Max 128GB →
24.0 GBFits comfortably27–55 tok/s—Qwen 3 Coder 30B A3B on mini M6 32GB →
48.0 GBFits comfortably42–86 tok/s—Qwen 3 Coder 30B A3B on mini M5 Pro 64GB →
98.0 GBFits comfortably64–132 tok/s—Qwen 3 Coder 30B A3B on Studio M5 Max 128GB →
430 GBFits comfortably87–180 tok/s—Qwen 3 Coder 30B A3B on Studio M5 Ultra 512GB →
11.2 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 3060 12GB →
9.2 GBToo large—3×Qwen 3 Coder 30B A3B on RTX 3080 10GB →
22.8 GBTight fit110–183 tok/s1×Qwen 3 Coder 30B A3B on RTX 3090 24GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4060 Ti 16GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4070 Ti S 16GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4080 S 16GB →
22.8 GBTight fit153–254 tok/s1×Qwen 3 Coder 30B A3B on RTX 4090 24GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 5070 Ti 16GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 5080 16GB →
30.5 GBFits comfortably203–338 tok/s1×Qwen 3 Coder 30B A3B on RTX 5090 32GB →
22.8 GBTight fit120–249 tok/s1×Qwen 3 Coder 30B A3B on RX 7900 XTX 24GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RX 9070 XT 16GB →
10.2 GBToo large—3×Qwen 3 Coder 30B A3B on RTX 2080 Ti 11GB →
7.3 GBToo large—3×Qwen 3 Coder 30B A3B on RTX 3060 Ti 8GB →
7.3 GBToo large—3×Qwen 3 Coder 30B A3B on RTX 3070 8GB →
11.2 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 3080 Ti 12GB →
22.8 GBTight fit126–262 tok/s1×Qwen 3 Coder 30B A3B on RTX 3090 Ti 24GB →
7.3 GBToo large—3×Qwen 3 Coder 30B A3B on RTX 4060 8GB →
7.3 GBToo large—3×Qwen 3 Coder 30B A3B on RTX 4060 Ti 8GB →
11.2 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4070 12GB →
11.2 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4070 S 12GB →
11.2 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4070 Ti 12GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 4080 16GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 5060 Ti 16GB →
11.2 GBToo large—2×Qwen 3 Coder 30B A3B on RTX 5070 12GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RX 7800 XT 16GB →
18.9 GBPartial offload12.0 tok/s2×Qwen 3 Coder 30B A3B on RX 7900 XT 20GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RX 9070 16GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RX 9060 XT 16GB →
46.2 GBFits comfortably116–240 tok/s1×Qwen 3 Coder 30B A3B on RTX A6000 48GB →
46.2 GBFits comfortably130–269 tok/s1×Qwen 3 Coder 30B A3B on RTX 6000 Ada 48GB →
93.0 GBFits comfortably220–367 tok/s1×Qwen 3 Coder 30B A3B on PRO 6000 96GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on RTX A4000 16GB →
22.8 GBTight fit107–221 tok/s1×Qwen 3 Coder 30B A3B on RTX A5000 24GB →
18.9 GBPartial offload12.0 tok/s2×Qwen 3 Coder 30B A3B on RTX 4000 Ada 20GB →
30.5 GBFits comfortably98–203 tok/s1×Qwen 3 Coder 30B A3B on RTX 5000 Ada 32GB →
46.2 GBFits comfortably151–313 tok/s1×Qwen 3 Coder 30B A3B on PRO 5000 48GB →
46.2 GBFits comfortably101–209 tok/s1×Qwen 3 Coder 30B A3B on PRO W7900 48GB →
30.5 GBFits comfortably97–200 tok/s1×Qwen 3 Coder 30B A3B on AI PRO R9700 32GB →
22.8 GBTight fit59–123 tok/s1×Qwen 3 Coder 30B A3B on L4 24GB →
46.2 GBFits comfortably123–255 tok/s1×Qwen 3 Coder 30B A3B on L40S 48GB →
38.5 GBFits comfortably159–331 tok/s1×Qwen 3 Coder 30B A3B on A100 40GB →
77.5 GBFits comfortably150–312 tok/s1×Qwen 3 Coder 30B A3B on A100 80GB →
77.5 GBFits comfortably175–363 tok/s1×Qwen 3 Coder 30B A3B on H100 80GB →
137 GBFits comfortably212–441 tok/s1×Qwen 3 Coder 30B A3B on H200 141GB →
175 GBFits comfortably227–471 tok/s1×Qwen 3 Coder 30B A3B on B200 180GB →
15.0 GBToo large—2×Qwen 3 Coder 30B A3B on T4 16GB →
46.2 GBFits comfortably102–211 tok/s1×Qwen 3 Coder 30B A3B on A40 48GB →
46.2 GBFits comfortably123–255 tok/s1×Qwen 3 Coder 30B A3B on L40 48GB →
115 GBFits comfortably52–108 tok/s—Qwen 3 Coder 30B A3B on DGX Spark 128GB →
96.0 GBFits comfortably45–94 tok/s—Qwen 3 Coder 30B A3B on Ryzen AI Max+ 395 128GB →
48.0 GBFits comfortably45–94 tok/s—Qwen 3 Coder 30B A3B on Ryzen AI Max+ 395 64GB →

Frequently asked questions

How much VRAM does Qwen 3 Coder 30B A3B require?

At Q4_K_M quantization with a 16K context window, Qwen 3 Coder 30B A3B needs 20.3 GB total VRAM (17.3 GB weights + 1.5 GB KV cache + runtime overhead). In full FP16 precision, it requires 61.7 GB.

Can an RTX 4090 (24 GB) run Qwen 3 Coder 30B A3B?

Yes. At Q4_K_M with 16K context Qwen 3 Coder 30B A3B needs 20.3 GB, which fits a single 24 GB RTX 4090 at an estimated 153–254 tok/s.

How do I run Qwen 3 Coder 30B A3B locally with Ollama?

Install Ollama and run `ollama run qwen3-coder:30b` in your terminal. Make sure your GPU or Apple Silicon unified memory meets the 20.3 GB Q4_K_M requirement.