Instructions to use Qwen/Qwen3-30B-A3B-Instruct-2507 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3-30B-A3B-Instruct-2507 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Qwen/Qwen3-30B-A3B-Instruct-2507") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-30B-A3B-Instruct-2507") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-30B-A3B-Instruct-2507") 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Qwen/Qwen3-30B-A3B-Instruct-2507 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3-30B-A3B-Instruct-2507" # 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-30B-A3B-Instruct-2507", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Qwen/Qwen3-30B-A3B-Instruct-2507
- SGLang
How to use Qwen/Qwen3-30B-A3B-Instruct-2507 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-30B-A3B-Instruct-2507" \ --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-30B-A3B-Instruct-2507", "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-30B-A3B-Instruct-2507" \ --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-30B-A3B-Instruct-2507", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Qwen/Qwen3-30B-A3B-Instruct-2507 with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3-30B-A3B-Instruct-2507
Install & run this model easily using llmpm
#30 opened 3 months ago
by
sarthak-saxena
Regarding RoPE frequency
#29 opened 3 months ago
by
juneyongyang
Add GPQA evaluation result
โค๏ธ 2
#28 opened 4 months ago
by
burtenshaw
๐ฆ **่ด Qwen3๏ผ่ฐข่ฐขไฝ ๆไธบโๆ่่ โ็ๅบ็ณ**
โค๏ธ 1
#27 opened 4 months ago
by
aifeifei798
Lora Fine Tning- Several Issues
3
#25 opened 6 months ago
by
aetherforge
RTX 5090 + Qwen 30B MoE @ 135 tok/s in NVFP4 Guide
#24 opened 6 months ago
by
JohnTdi
Error when utilizing DUAL_CHUNK_FLASH_ATTN with vLLM.
1
#23 opened 7 months ago
by
lssj14
Can I enable DCA on other qwen3 dense models?
#22 opened 9 months ago
by
dophys
Update README.md
#18 opened 10 months ago
by
Brokersponsor
Polish language support
#17 opened 10 months ago
by
eXt73
Working GPTQ-Int4 version?
๐ 1
#15 opened 10 months ago
by
koesn
fix: max tokens to 1M
#14 opened 10 months ago
by
heitormsb
help: 1M context error?
#13 opened 10 months ago
by
heitormsb
ๅ ณไบ static KV-Cache(ValueError: This model does not support cache_implementation='static')
#11 opened 10 months ago
by
luohuashijieyoufengjun
Upload 17F9CDA2-7E35-4793-9D18-0581B0276089.jpeg
1
#10 opened 10 months ago
by
Faragcg
Test Scores Can Be Misleading
๐ 1
8
#8 opened 10 months ago
by
phil111
Qwen3-30B-A3B-Instruct-2507-Autoround-Int-4bit-gptq
๐ฅ๐ 2
1
#7 opened 10 months ago
by
jart25
Remove trailing tabs after license to avoid mlx_lm.convert errors
#6 opened 10 months ago
by
Gallardo994
Local Installation Video and Testing - Step by Step
#5 opened 10 months ago
by
fahdmirzac
Is the base model of the this model Qwen3-30B-A3B๏ผ
โ 4
#4 opened 10 months ago
by
paulcx
AWQ version
โค๏ธ 6
6
#3 opened 10 months ago
by
devops724
An Improvement, But Q3 30b Still Has Very Little General Knowledge
๐โค๏ธ 3
11
#2 opened 10 months ago
by
phil111
THANK YOU QWEN! ๐
๐โค๏ธ 11
1
#1 opened 10 months ago
by
AyyYOO