Qwen3-Coder-30B-A3B-Instruct
By Qwen. 30.5 billion parameters, a context window of 262,144 tokens and the licence apache-2.0.
Facts
- Released
- 2025-07-31 the day the repository was first published on Hugging Face Hugging Face, read
- Licence
- apache-2.0 the licence the model card declares Hugging Face, read
- Open weights
- Yes the weights are published in this Hugging Face repository Hugging Face, read
- Parameters
- 30.5 billion counted from the safetensors weight files Hugging Face, read
- Active parameters
- 3.4 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
- Knowledge cutoff
- Unknown
- Context window
- 262,144 tokens the maximum position embeddings in the model configuration model configuration, read
- Longest output
- Unknown
- Tool calling
- Yes the chat template in the tokenizer configuration accepts tool definitions Hugging Face, read
- Structured output
- Unknown
- Reasoning controls
- Unknown
- Inputs and outputs
- text in, text out Hugging Face, read
- Good for
- Coding: the maker's name for the model marks it for code Hugging Face, read
Prices
| Provider | Input | Output | Context | As of | Source |
|---|---|---|---|---|---|
| ModelScope | 0 USD | 0 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Hugging Face | 0.070 USD | 0.260 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| Novita AI | 0.070 USD | 0.270 USD | 160,000 | LiteLLM, read | |
| Kilo Gateway | 0.070 USD | 0.280 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| OpenRouter | 0.070 USD | 0.280 USD | 262,144 | older than 30 days; check the provider | models.dev, read |
| SiliconFlow | 0.070 USD | 0.280 USD | 262,000 | older than 30 days; check the provider | models.dev, read |
| SiliconFlow (China) | 0.070 USD | 0.280 USD | 262,000 | older than 30 days; check the provider | models.dev, read |
| NanoGPT | 0.100 USD | 0.400 USD | 128,000 | older than 30 days; check the provider | models.dev, read |
| Scaleway | 0.200 USD | 0.800 USD | 128,000 | LiteLLM, read |
Run it on your own hardware
Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.
| Quantization | Weights | Memory at 8,192 tokens | Memory at 32,768 tokens |
|---|---|---|---|
| UD-TQ1_0 | 7.5 GiB | 9.1 GiB | 11.3 GiB |
| UD-IQ1_S | 8.3 GiB | 10.0 GiB | 12.2 GiB |
| UD-IQ1_M | 9.0 GiB | 10.7 GiB | 12.9 GiB |
| UD-IQ2_XXS | 9.6 GiB | 11.4 GiB | 13.6 GiB |
| UD-IQ2_M | 10.1 GiB | 11.8 GiB | 14.1 GiB |
| Q2_K | 10.5 GiB | 12.3 GiB | 14.5 GiB |
| Q2_K_L | 10.6 GiB | 12.3 GiB | 14.6 GiB |
| UD-Q2_K_XL | 11.0 GiB | 12.8 GiB | 15.0 GiB |
| UD-IQ3_XXS | 12.0 GiB | 13.8 GiB | 16.1 GiB |
| Q3_K_S | 12.4 GiB | 14.2 GiB | 16.5 GiB |
| UD-Q3_K_XL | 12.9 GiB | 14.8 GiB | 17.0 GiB |
| Q3_K_M | 13.7 GiB | 15.6 GiB | 17.9 GiB |
| IQ4_XS | 15.3 GiB | 17.3 GiB | 19.5 GiB |
| IQ4_NL | 16.1 GiB | 18.2 GiB | 20.4 GiB |
| Q4_0 | 16.2 GiB | 18.2 GiB | 20.5 GiB |
| Q4_K_S | 16.3 GiB | 18.3 GiB | 20.6 GiB |
| UD-Q4_K_XL | 16.5 GiB | 18.5 GiB | 20.8 GiB |
| Q4_K_M | 17.3 GiB | 19.4 GiB | 21.6 GiB |
| Q4_1 | 17.9 GiB | 20.0 GiB | 22.3 GiB |
| Q5_K_S | 19.6 GiB | 21.9 GiB | 24.1 GiB |
| Q5_K_M | 20.2 GiB | 22.5 GiB | 24.7 GiB |
| UD-Q5_K_XL | 20.2 GiB | 22.5 GiB | 24.8 GiB |
| Q6_K | 23.4 GiB | 25.8 GiB | 28.0 GiB |
| UD-Q6_K_XL | 24.5 GiB | 27.0 GiB | 29.3 GiB |
| Q8_0 | 30.3 GiB | 33.0 GiB | 35.3 GiB |
| UD-Q8_K_XL | 33.5 GiB | 36.4 GiB | 38.7 GiB |
| BF16 | 56.9 GiB | 61.0 GiB | 63.2 GiB |
Start it with a local runtime
- Ollama
ollama run hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_0 - LM Studio
lms get unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF lms server start - llama.cpp server
llama-server -hf unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_0 --jinja - vLLM
vllm serve Qwen/Qwen3-Coder-30B-A3B-Instruct - SGLang
sglang serve --model-path Qwen/Qwen3-Coder-30B-A3B-Instruct --port 30000
Use it from your harness
Set up for Hugging Face with the model Qwen/Qwen3-Coder-30B-A3B-Instruct. Each endpoint page has the same setup for its own address.
OpenCode
Put this in opencode.json in your project folder:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"huggingface": {
"npm": "@ai-sdk/openai-compatible",
"name": "Hugging Face",
"options": {
"baseURL": "https://router.huggingface.co/v1",
"apiKey": "{env:HF_TOKEN}"
},
"models": {
"Qwen/Qwen3-Coder-30B-A3B-Instruct": {
"name": "Qwen3-Coder-30B-A3B-Instruct"
}
}
}
}
}- OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.
From OpenCode documentation, read .
Pi
Put this in ~/.pi/agent/models.json:
{
"providers": {
"huggingface": {
"baseUrl": "https://router.huggingface.co/v1",
"api": "openai-completions",
"apiKey": "$HF_TOKEN",
"models": [
{
"id": "Qwen/Qwen3-Coder-30B-A3B-Instruct"
}
]
}
}
}- The apiKey field can name an environment variable as $NAME.
From Pi documentation, read .
Codex
Codex speaks only the Responses API, and Hugging Face documents no Responses address. A gateway that offers one can sit in between.
- Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.
From Codex documentation, read .
Claude Code
Claude Code sends Anthropic Messages requests, and Hugging Face documents no such address. A gateway that translates to that API can sit in between.
- Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.
From Claude Code documentation, read .
Other ways to reach it
- Kilo Gateway, model
qwen/qwen3-coder-30b-a3b-instruct - ModelScope, model
Qwen/Qwen3-Coder-30B-A3B-Instruct - NanoGPT, model
qwen/qwen3-coder-30b-a3b-instruct - Novita AI, model
qwen/qwen3-coder-30b-a3b-instruct - OpenRouter, model
qwen/qwen3-coder-30b-a3b-instruct - Scaleway, model
qwen/qwen3-coder-30b-a3b-instruct - SiliconFlow, model
Qwen/Qwen3-Coder-30B-A3B-Instruct - SiliconFlow (China), model
Qwen/Qwen3-Coder-30B-A3B-Instruct - Ollama, model
hf.co/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF:Q4_0
Published results
These are results other people published. Baltor did not run them and does not rank models by them.
- Results the maker published on the model card published by Qwen Hugging Face, read
Two more publishers are linked, never copied, because their terms do not allow it:
- Artificial Analysis publishes its own intelligence, speed and price measurements.
- OpenRouter lists current prices and uptime for each provider it routes to.
Sources of this page
- huggingface.co/api/models/Qwen/Qwen3-Coder-30B-A3B-Instruct, read
- huggingface.co/Qwen/Qwen3-Coder-30B-A3B-Instruct/raw/main/config.json, read
- huggingface.co/api/models/unsloth/Qwen3-Coder-30B-A3B-Instruct-GGUF/tree/main, read
- models.dev/api.json, read
- github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json, read
Paid links
No link in this directory is a paid link or an ad, and no listing is paid for. The order and the contents of every list come from the sources named on this page.