Alibaba Qwen · released 2025-07-31

Qwen3 Coder 30B-A3B

Compact Qwen3 coding MoE with 3.3B active parameters and a 256K context; still one of the most downloaded local coding models.

codingagenticmixture-of-experts
Parameters
31B
Active / token
3.3B
Context
256K
Memory at Q4
20.5 GB
License
apache-2.0
Images
No
Thinking mode
No

Cheapest ways to use it $0.15 in / $0.60 out per 1M tokens via Amazon Bedrock · or free on RTX 3090 or better

Official size: 30.5B total / 3.3B active. We size memory from the actual files on Hugging Face.

Get started

1 · Try it now

Use via API from $0.15/1M on Amazon Bedrock

Free online chats are the quickest way to see if a model suits you before downloading anything.

2 · Download the files

You’ll need about 20.5 GB of memory at 4-bit. Check your machine →

3 · Run it on your machine

For a Linux GPU server, serving an OpenAI-compatible API:

vllm serve Qwen/Qwen3-Coder-30B-A3B-Instruct

Will it run on my computer?

Qwen3 Coder 30B-A3B needs roughly 20.5 GB of GPU memory at the usual Q4 quality, but only 3.3B parameters are used per token, so it runs faster than its size suggests and copes better with spilling into system RAM. Check your exact machine →

MachineBest fileFitEst. speed
RTX 4060 Q4_K_M Spills to RAM ~20 tok/s · Usable
RTX 3060 12GB Q4_K_M Spills to RAM ~26 tok/s · Fast
RTX 4060 Ti 16GB Q4_K_M Spills to RAM ~34 tok/s · Fast
RTX 3090 Q4_K_M Fits in memory ~137 tok/s · Very fast
RTX 4090 Q4_K_M Fits in memory ~143 tok/s · Very fast
RTX 5090 Q5_K_M Fits in memory ~180 tok/s · Very fast
M4 · 16 GB — Too big —
M4 Pro · 48 GB Q5_K_M Fits in memory ~45 tok/s · Fast
M4 Max · 128 GB Q5_K_M Fits in memory ~79 tok/s · Very fast
M3 Ultra · 512 GB Q5_K_M Fits in memory ~106 tok/s · Very fast
DGX Spark Q5_K_M Fits in memory ~50 tok/s · Fast
Ryzen AI Max+ 395 Q5_K_M Fits in memory ~39 tok/s · Fast

PCs assume 64 GB system RAM. Estimates, not measurements — method.

Ways to run it

Use it through an API 1 provider

ProviderInput / 1MOutput / 1MStated precisionContext
Amazon Bedrock $0.15 $0.60 not stated — source ↗

Prices in USD from each provider’s own pricing page, checked 2026-12-04. Cheapest highlighted.

Rent a GPU and run it yourself

SetupFromPer hourFileEst. speedPer 1M tokens*
1× RTX A5000 24GB RunPod
community
$0.16 4-bit
20.5 GB
~122 tok/s $0.37
1× RTX 3090 24GB Vast.ai
marketplace
$0.21 4-bit
20.5 GB
~137 tok/s $0.42
1× RTX 3090 Ti 24GB Vast.ai
marketplace
$0.27 4-bit
20.5 GB
~143 tok/s $0.52
1× L4 24GB Vast.ai
marketplace
$0.32 4-bit
20.5 GB
~61 tok/s $1.45

*For one conversation at a time. Serving many users at once (batching, e.g. with vLLM) cuts the cost per token by 10× or more, which is how API providers get so cheap. Rental prices checked 2026-12-04. All GPU prices →

On your own machine

Free after the hardware. See the table above for which GPUs and Macs can run it, or check your exact machine. Easiest apps: Ollama and LM Studio.

Memory by quality level

FileQualityWeights+ 8K contextTotal
Q3_K_MNoticeably worse 14.9 GB 0.8 GB 16.7 GB
Q4_K_MGood — the usual pick 18.5 GB 0.8 GB 20.5 GB
Q5_K_MVery close to full 21.7 GB 0.8 GB 23.8 GB
Q6_KNear lossless 25.2 GB 0.8 GB 27.3 GB
Q8_0Practically lossless 32.4 GB 0.8 GB 34.8 GB
FP16Full precision 61.0 GB 0.8 GB 64.2 GB

Test answers

Qwen3 Coder 30B-A3B is queued for our test suite. See tested models →

Similar models