Qwen3 Coder 30B-A3B Instruct is Alibaba's July 2025 coding model, released under Apache 2.0. It is a mixture of experts: 30.5B parameters, about 3.3B active per token, built for agentic coding and tool calling.
At Q4_K_M it needs about 19.9 GB with an 8K conversation. It reads up to 256K tokens natively, and each 8,000 tokens add about 0.8 GB of cache at F16, so whole-repository context is possible on 32GB or more.
<think> blocks.ollama run qwen3-coder:30bIt works with coding agents and editor plugins that speak the OpenAI API, through Ollama or llama.cpp's server with --jinja for tool calls.
Last reviewed · How we calculate
qwen3-coder:30bThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 37K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 18.5 GB | 19.5 GB | 19.9 GB | 20.7 GB | 22.3 GB | Small loss, best default |
| Q5_K_M | 21.7 GB | 22.7 GB | 23.1 GB | 23.9 GB | 25.5 GB | Very close to Q8 |
| Q6_K | 25.0 GB | 26.0 GB | 26.4 GB | 27.2 GB | 28.8 GB | Hard to tell from Q8 |
| Q8_0 | 32.4 GB | 33.4 GB | 33.8 GB | 34.6 GB | 36.2 GB | Near full quality |
| F16 | 61.0 GB | 62.0 GB | 62.4 GB | 63.2 GB | 64.8 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Won't run | about 14 tok/s | Doesn't fit | |
| RTX 3060 12GB | Slow, uses RAM | Won't run | about 19 tok/s | Doesn't fit | |
| RTX 4070 12GB | Slow, uses RAM | Won't run | about 20 tok/s | Doesn't fit | |
| RTX 4060 Ti 16GB | Slow, uses RAM | Slow, uses RAM | about 25 tok/s | Doesn't fit | |
| Radeon RX 7600 XT 16GB | Slow, uses RAM | Slow, uses RAM | about 25 tok/s | Doesn't fit | |
| RTX 5060 Ti 16GB | Slow, uses RAM | Slow, uses RAM | about 29 tok/s | Doesn't fit | |
| Intel Arc A770 16GB | Slow, uses RAM | Slow, uses RAM | about 31 tok/s | Doesn't fit | |
| Radeon RX 9070 XT 16GB | Slow, uses RAM | Slow, uses RAM | about 32 tok/s | Doesn't fit | |
| RTX 4070 Ti Super 16GB | Slow, uses RAM | Slow, uses RAM | about 32 tok/s | Doesn't fit | |
| RTX 4080 Super 16GB | Slow, uses RAM | Slow, uses RAM | about 33 tok/s | Doesn't fit | |
| RTX 5080 16GB | Slow, uses RAM | Slow, uses RAM | about 34 tok/s | Doesn't fit | |
| RTX 3090 24GB | Runs well | Slow, uses RAM | about 152 tok/s | 37K | |
| Radeon RX 7900 XTX 24GB | Runs well | Slow, uses RAM | about 156 tok/s | 37K | |
| RTX 4090 24GB | Runs well | Slow, uses RAM | about 164 tok/s | 37K | |
| RTX 5090 32GB | Runs well | Slow, uses RAM | about 291 tok/s | 115K | |
| Mac mini M4 16GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 24GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 48GB | Runs well | Runs, tight | about 44 tok/s | 172K | |
| Mac M4 Max 64GB | Runs well | Runs well | about 89 tok/s | 256K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 89 tok/s | 256K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run qwen3-coder:30b
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkRun ollama run qwen3-coder:30b. It downloads the Q4_K_M build, about 19 GB, with a 256K context limit. Raise Ollama's context setting to use long files.
Partly. The Q4 file is about 19 GB, so some expert layers go to system RAM. Because only 3.3B parameters are active per token, it stays usable; 24GB or more is the smooth option.
No. It is a non-thinking model and answers directly, which keeps coding agents fast. Use Qwen3 30B-A3B if you want thinking.
Start llama-server with the --jinja flag so the model's tool-call template is used. Agents can then call it through the OpenAI-compatible API.
Yes. Qwen3 Coder 30B-A3B is released under the Apache 2.0 licence, which allows commercial use, fine-tuning and redistribution as long as the licence notice is kept.
About 19.9 GB at Q4_K_M with an 8K conversation, 23.1 GB at Q5_K_M, 33.8 GB at Q8_0 and 62.4 GB at full F16 precision. Longer conversations add about 0.8 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 14 tokens a second.
Only partly. It doesn't fit in 12 GB, so part of it moves to system RAM and speed drops to roughly 19 tokens a second.
Only partly. It doesn't fit in 16 GB, so part of it moves to system RAM and speed drops to roughly 25 tokens a second.
Yes. A Mac with 48 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.