Qwen3 Coder 30B-A3B

30.5B total, 3B active · 256k context · apache-2.0 · released 2025-07-31

codingagentic

In short

Qwen3 Coder 30B-A3B is an open model from Alibaba Qwen with 30.5B parameters (3B active per token). At Q4_K_M, Qwen3 Coder 30B-A3B needs about 19 GB of memory at 8k context and 19 GB at 8k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in the US that runs Qwen3 Coder 30B-A3B fully in memory at 8k context is the NVIDIA RTX PRO 4000 Blackwell, $339 at Amazon, at about 85 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

Cheapest way to run it in the US today

NVIDIA RTX PRO 4000 Blackwell, new at Amazon

Runs Qwen3 Coder 30B-A3B at Q5_K_M fully in memory at 8k context, about 85 tok/sest.

$339

In stock, checked

What to run it on in the US

Fully in memory at 8k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
NVIDIA RTX PRO 4000 BlackwellQ5_K_Mfits85 tok/s$339250.7
NVIDIA Tesla P40Q5_K_Mfits44 tok/s$44997.6
AMD Radeon RX 7900 XTQ4_K_Mfits100 tok/s$880114.1
Intel Arc Pro B60Q5_K_Mfits43 tok/s$89947.5
Mac mini M4 32GBQ4_K_Mfits18 tok/s$1,19914.8
AMD Radeon RX 7900 XTXQ5_K_Mfits108 tok/s$1,40077.0
AMD Radeon AI PRO R9700Q6_Kfits65 tok/s$1,70038.0
Intel Arc Pro B70Q6_Kfits51 tok/s$1,80028.4
NVIDIA GeForce RTX 3090Q5_K_Mfits118 tok/s$1,97959.8
Mac mini M4 Pro 48GBQ8_0fits27 tok/s$2,02513.1
NVIDIA GeForce RTX 3090 TiQ5_K_Mfits128 tok/s$2,03362.7
NVIDIA GeForce RTX 4090Q5_K_Mfits128 tok/s$2,07361.5
Mac mini M4 Pro 64GBQ8_0fits27 tok/s$2,39911.1
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ5_K_Mfits55 tok/s$2,98018.4
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits21 tok/s$3,5006.0
Mac Studio M4 Max 64GBQ8_0fits53 tok/s$3,50015.2
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits21 tok/s$3,8005.6
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits21 tok/s$3,9595.3
NVIDIA RTX PRO 4500 BlackwellQ6_Kfits102 tok/s$4,00025.5
AMD Radeon PRO W7900Q8_0fits71 tok/s$4,00017.8
Mac Studio M3 Ultra 96GBQ8_0fits80 tok/s$4,75816.8
Mac Studio M4 Max 128GBQ8_0fits53 tok/s$5,4009.9
NVIDIA RTX A6000Q8_0fits72 tok/s$5,98911.9
ASUS Ascent GX10 128GBQ8_0fits25 tok/s$6,1004.2
NVIDIA GeForce RTX 5090Q6_Kfits204 tok/s$6,49531.4
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits125 tok/s$6,99917.9
NVIDIA DGX Spark 128GBQ8_0fits25 tok/s$7,8003.3
NVIDIA RTX 6000 Ada GenerationQ8_0fits89 tok/s$8,49510.5
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits125 tok/s$8,49914.7
Mac Studio M3 Ultra 256GBQ8_0fits80 tok/s$9,5008.4
NVIDIA RTX PRO 6000 BlackwellQ8_0fits167 tok/s$16,00010.4
Mac Studio M3 Ultra 512GBQ8_0fits80 tok/s$30,0002.7
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits21 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits21 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits25 tok/s––
Dell Pro Max with GB10 128GBQ8_0fits25 tok/s––
Intel Arc B570Q4_K_Moffload17 tok/s$30455.3
NVIDIA GeForce RTX 5050Q4_K_Moffload17 tok/s$35946.8
NVIDIA GeForce RTX 3060 12GBQ4_K_Moffload22 tok/s$38857.2
NVIDIA GeForce RTX 4060Q4_K_Moffload16 tok/s$40041.0
Intel Arc B580Q4_K_Moffload20 tok/s$42547.1
NVIDIA GeForce RTX 5060Q4_K_Moffload18 tok/s$43540.2
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload21 tok/s$50042.6
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload18 tok/s$51134.2
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload17 tok/s$53630.8
NVIDIA GeForce RTX 4070Q4_K_Moffload24 tok/s$57042.1
Intel Arc Pro B50Q4_K_Moffload19 tok/s$60032.0
NVIDIA GeForce RTX 5060 Ti 16GBQ4_K_Moffload36 tok/s$61857.6
AMD Radeon RX 9060 XT 16GBQ4_K_Moffload27 tok/s$72038.1
Intel Arc A770 16GBQ4_K_Moffload32 tok/s$74542.3
AMD Radeon RX 7800 XTQ4_K_Moffload37 tok/s$75749.3
NVIDIA RTX PRO 2000 BlackwellQ4_K_Moffload28 tok/s$79535.7
NVIDIA GeForce RTX 4070 SuperQ4_K_Moffload24 tok/s$80030.0
AMD Radeon RX 9070 XTQ4_K_Moffload38 tok/s$81046.5
AMD Radeon RX 9070Q4_K_Moffload38 tok/s$86043.8
NVIDIA GeForce RTX 5070Q4_K_Moffload25 tok/s$90028.1
NVIDIA GeForce RTX 4060 Ti 16GBQ4_K_Moffload28 tok/s$91830.9
AMD Radeon RX 7600 XTQ4_K_Moffload26 tok/s$95927.0
NVIDIA GeForce RTX 4070 Ti SuperQ4_K_Moffload42 tok/s$1,14036.8
NVIDIA GeForce RTX 5070 TiQ4_K_Moffload46 tok/s$1,30035.5
NVIDIA GeForce RTX 4080 SuperQ4_K_Moffload43 tok/s$1,46929.5
NVIDIA GeForce RTX 5080Q4_K_Moffload47 tok/s$1,90024.8

1 other card or machine we price cannot hold it at this context.

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k@32k@64k@128k
Q4_K_Mgguf17.3 GB18.8 GB21.2 GB24.4 GB30.7 GB
mlx-4bitmlx16.0 GB17.5 GB19.9 GB23.1 GB29.5 GB
Q5_K_Mgguf20.2 GB21.7 GB24.1 GB27.3 GB33.7 GB
Q6_Kgguf23.4 GB24.9 GB27.3 GB30.4 GB36.8 GB
mlx-8bitmlx30.2 GB31.7 GB34.1 GB37.3 GB43.7 GB
Q8_0gguf30.3 GB31.7 GB34.1 GB37.3 GB43.7 GB

Run it

Copy a command for the runtime you use.

  • Q4_K_M
    • Ollamaollama run hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
    • LM Studiolms get unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF@q4_k_m
    • llama.cppllama-server -hf unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/Qwen3-Coder-30B-A3B-Instruct-4bit
    • MLXmlx_lm.server --model mlx-community/Qwen3-Coder-30B-A3B-Instruct-4bit
  • Q5_K_M
    • Ollamaollama run hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q5_K_M
    • LM Studiolms get unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF@q5_k_m
    • llama.cppllama-server -hf unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q5_K_M
  • Q6_K
    • Ollamaollama run hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q6_K
    • LM Studiolms get unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF@q6_k
    • llama.cppllama-server -hf unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q6_K
  • mlx-8bit
    • LM Studiolms get mlx-community/Qwen3-Coder-30B-A3B-Instruct-8bit
    • MLXmlx_lm.server --model mlx-community/Qwen3-Coder-30B-A3B-Instruct-8bit
  • Q8_0
    • Ollamaollama run hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q8_0
    • LM Studiolms get unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF@q8_0
    • llama.cppllama-server -hf unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q8_0

Questions

How much VRAM does Qwen3 Coder 30B-A3B need?
At Q4_K_M, Qwen3 Coder 30B-A3B needs about 19 GB of memory at 8k context and 19 GB at 8k, counting the weights, the KV cache and runtime buffers.
What is the best GPU for running Qwen3 Coder 30B-A3B locally?
The cheapest hardware in the US that runs Qwen3 Coder 30B-A3B fully in memory at 8k context is the NVIDIA RTX PRO 4000 Blackwell, $339 at Amazon, at about 85 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 204 tok/s.
What is the cheapest way to run Qwen3 Coder 30B-A3B in the US today?
The NVIDIA RTX PRO 4000 Blackwell, $339 new at Amazon, in stock: it runs Qwen3 Coder 30B-A3B at Q5_K_M fully in memory at 8k context, at about 85 tok/s (estimated).
Can I run Qwen3 Coder 30B-A3B on a 16 GB GPU?
Only partly: at 8k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 19 tok/s on the Intel Arc Pro B50 (estimated).
Can I run Qwen3 Coder 30B-A3B on a 24 GB GPU?
Yes: at Q5_K_M it fits fully in 24 GB at 8k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 128 tok/s (estimated).
How do I run Qwen3 Coder 30B-A3B locally?
With Ollama: ollama run hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
What licence is Qwen3 Coder 30B-A3B released under?
apache-2.0, which allows commercial use.

More hardware for local AI