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 21 GB at 32k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Canada that runs Qwen3 Coder 30B-A3B fully in memory at 32k context is the AMD Radeon RX 7900 XTX, $2,041 at Amazon, at about 63 tok/s (estimated).

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

Cheapest way to run it in Canada today

AMD Radeon RX 7900 XTX, new at Amazon

Runs Qwen3 Coder 30B-A3B at Q4_K_M fully in memory at 32k context, about 63 tok/sest.

$2,041

In stock, checked

What to run it on in Canada

Fully in memory at 32k 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
AMD Radeon RX 7900 XTXQ4_K_Mfits63 tok/s$2,04130.8
Intel Arc Pro B60Q4_K_Mfits25 tok/s$2,07912.0
NVIDIA GeForce RTX 3090 TiQ4_K_Mfits74 tok/s$2,50029.7
NVIDIA RTX PRO 4000 BlackwellQ4_K_Mfits50 tok/s$2,81017.6
AMD Radeon AI PRO R9700Q6_Kfits37 tok/s$2,86912.9
NVIDIA GeForce RTX 3090Q4_K_Mfits69 tok/s$3,30020.9
Intel Arc Pro B70Q6_Kfits29 tok/s$4,0887.2
AMD Radeon PRO W7900Q8_0fits45 tok/s$4,9009.1
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits13 tok/s$5,2892.5
NVIDIA RTX PRO 4500 BlackwellQ6_Kfits59 tok/s$6,5998.9
ASUS Ascent GX10 128GBQ8_0fits16 tok/s$8,5001.9
NVIDIA GeForce RTX 4090Q4_K_Mfits74 tok/s$9,1608.1
NVIDIA DGX Spark 128GBQ8_0fits16 tok/s$11,1501.4
NVIDIA RTX A6000Q8_0fits45 tok/s$11,4783.9
NVIDIA GeForce RTX 5090Q6_Kfits117 tok/s$12,3009.5
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits78 tok/s$13,4375.8
NVIDIA RTX 6000 Ada GenerationQ8_0fits56 tok/s$15,1363.7
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits78 tok/s$20,6503.8
Mac Studio M3 Ultra 512GBQ8_0fits50 tok/s$28,0001.8
Mac Studio M4 Max 128GBQ8_0fits33 tok/s––
Mac mini M4 Pro 64GBQ8_0fits17 tok/s––
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits13 tok/s––
Mac Studio M3 Ultra 256GBQ8_0fits50 tok/s––
Mac mini M4 Pro 48GBQ8_0fits17 tok/s––
Mac Studio M4 Max 64GBQ8_0fits33 tok/s––
Mac Studio M3 Ultra 96GBQ8_0fits50 tok/s––
NVIDIA RTX PRO 6000 BlackwellQ8_0fits104 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits13 tok/s––
Mac mini M4 32GBQ4_K_Mfits9 tok/s––
NVIDIA Tesla P40Q4_K_Mfits26 tok/s––
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ4_K_Mfits32 tok/s––
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits13 tok/s––
Lenovo ThinkStation PGX GB10 128GBQ8_0fits16 tok/s––
Dell Pro Max with GB10 128GBQ8_0fits16 tok/s––
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits13 tok/s––
NVIDIA GeForce RTX 3060 12GBQ4_K_Moffload11 tok/s$56318.7
NVIDIA GeForce RTX 5050Q4_K_Moffload8 tok/s$57014.6
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload9 tok/s$59014.6
NVIDIA GeForce RTX 5060Q4_K_Moffload9 tok/s$60814.1
NVIDIA GeForce RTX 4060Q4_K_Moffload8 tok/s$67512.1
Intel Arc B570Q4_K_Moffload8 tok/s$80110.4
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload10 tok/s$86011.9
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload8 tok/s$8649.5
AMD Radeon RX 9060 XT 16GBQ4_K_Moffload13 tok/s$87014.4
NVIDIA GeForce RTX 5060 Ti 16GBQ4_K_Moffload15 tok/s$1,13013.4
NVIDIA RTX PRO 2000 BlackwellQ4_K_Moffload13 tok/s$1,14911.1
AMD Radeon RX 9070Q4_K_Moffload16 tok/s$1,20013.1
NVIDIA GeForce RTX 5070Q4_K_Moffload12 tok/s$1,2069.7
AMD Radeon RX 9070 XTQ4_K_Moffload16 tok/s$1,28512.2
NVIDIA GeForce RTX 4070Q4_K_Moffload11 tok/s$1,3008.6
AMD Radeon RX 7800 XTQ4_K_Moffload16 tok/s$1,42211.0
AMD Radeon RX 7900 XTQ4_K_Moffload30 tok/s$1,43721.0
AMD Radeon RX 7600 XTQ4_K_Moffload12 tok/s$1,4458.2
NVIDIA GeForce RTX 5070 TiQ4_K_Moffload18 tok/s$1,8909.6
NVIDIA GeForce RTX 4070 SuperQ4_K_Moffload11 tok/s$2,0965.3
NVIDIA GeForce RTX 4080 SuperQ4_K_Moffload17 tok/s$2,5006.9
NVIDIA GeForce RTX 5080Q4_K_Moffload18 tok/s$2,9996.1
NVIDIA GeForce RTX 4060 Ti 16GBQ4_K_Moffload13 tok/s––
NVIDIA GeForce RTX 4070 Ti SuperQ4_K_Moffload17 tok/s––
Intel Arc B580Q4_K_Moffload10 tok/s––
Intel Arc A770 16GBQ4_K_Moffload14 tok/s––
Intel Arc Pro B50Q4_K_Moffload9 tok/s––

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 21 GB at 32k, 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 Canada that runs Qwen3 Coder 30B-A3B fully in memory at 32k context is the AMD Radeon RX 7900 XTX, $2,041 at Amazon, at about 63 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 117 tok/s.
What is the cheapest way to run Qwen3 Coder 30B-A3B in Canada today?
The AMD Radeon RX 7900 XTX, $2,041 new at Amazon, in stock: it runs Qwen3 Coder 30B-A3B at Q4_K_M fully in memory at 32k context, at about 63 tok/s (estimated).
Can I run Qwen3 Coder 30B-A3B on a 16 GB GPU?
Only partly: at 32k context it does not fit in 16 GB, so part of it runs from system RAM and it slows to about 13 tok/s on the AMD Radeon RX 9060 XT 16GB (estimated).
Can I run Qwen3 Coder 30B-A3B on a 24 GB GPU?
Yes: at Q4_K_M it fits fully in 24 GB at 32k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 74 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