Instructions to use Qwen/Qwen3-Coder-30B-A3B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3-Coder-30B-A3B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Qwen/Qwen3-Coder-30B-A3B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-Coder-30B-A3B-Instruct") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-Coder-30B-A3B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Qwen/Qwen3-Coder-30B-A3B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3-Coder-30B-A3B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Qwen/Qwen3-Coder-30B-A3B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Qwen/Qwen3-Coder-30B-A3B-Instruct
- SGLang
How to use Qwen/Qwen3-Coder-30B-A3B-Instruct with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Qwen/Qwen3-Coder-30B-A3B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Qwen/Qwen3-Coder-30B-A3B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Qwen/Qwen3-Coder-30B-A3B-Instruct" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Qwen/Qwen3-Coder-30B-A3B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Qwen/Qwen3-Coder-30B-A3B-Instruct with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3-Coder-30B-A3B-Instruct
Install & run this model easily using llmpm
#36 opened 3 months ago
by
sarthak-saxena
Safety Audit: GAE Score 44.90% (FAIL)
#35 opened 6 months ago
by
GAE-Auditor
Does new update require GGUF update?
4
#34 opened 6 months ago
by
engrtipusultan
gguf q4 in parts
#33 opened 7 months ago
by
asdgad
vLLM MoE Config
#32 opened 7 months ago
by
j4ys0n
We Need 70B Model!!,
βπ 9
1
#31 opened 7 months ago
by
gigascake
SWE-bench Verified Repro
β 7
#30 opened 7 months ago
by
vim-ary
What does `max_window_layers` do?
#29 opened 8 months ago
by
jonaskuebler
Update chat_template.jinja
1
#28 opened 8 months ago
by
mahmoudhas9
rQwen25Sep
#27 opened 8 months ago
by
bigfundu
Add `{% generation %} to support tokenizer.apply_chat_template return_assistant_tokens_mask
#25 opened 9 months ago
by
zeromquan
ε¨python 3.7δΈθΏθ‘樑ζΏιθ¦ε°|itemsζΉδΈΊ.items()
#23 opened 9 months ago
by
bloomv
Tool Call parser not working in vLLM
4
#19 opened 10 months ago
by
VivekMalipatel23
Is AWQ quantization possible for this model?
π 1
1
#17 opened 10 months ago
by
VivekMalipatel23
attention_bias error
#16 opened 10 months ago
by
capyun
Update Jinja template for Jinja version compatibility
3
#13 opened 10 months ago
by
rshcao
How to achieve reliable native function calling
π 4
2
#12 opened 10 months ago
by
Ithanil
what does `shared_expert_intermediate_size` in the config for?
π 1
#11 opened 10 months ago
by
Viper403
Base model
π 2
#9 opened 10 months ago
by
Mokanarangan
LoRA adapters?
β 4
1
#8 opened 10 months ago
by
lightenup
Update README.md
#7 opened 10 months ago
by
Fernanda24
typo in README.md
#6 opened 10 months ago
by
Fernanda24
Local Installation Video with Ollama and Testing - Step by Step
#5 opened 10 months ago
by
fahdmirzac
Best snake game in html ever :)
β€οΈ 5
1
#4 opened 10 months ago
by
urtuuuu
FIM completion
π 3
1
#2 opened 10 months ago
by
dr-e
Update README.md
#1 opened 10 months ago
by
snapo