Instructions to use Qwen/Qwen3-Coder-480B-A35B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3-Coder-480B-A35B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Qwen/Qwen3-Coder-480B-A35B-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-480B-A35B-Instruct") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-Coder-480B-A35B-Instruct", device_map="auto") 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 Settings
- vLLM
How to use Qwen/Qwen3-Coder-480B-A35B-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-480B-A35B-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-480B-A35B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Qwen/Qwen3-Coder-480B-A35B-Instruct
- SGLang
How to use Qwen/Qwen3-Coder-480B-A35B-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-480B-A35B-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-480B-A35B-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-480B-A35B-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-480B-A35B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Qwen/Qwen3-Coder-480B-A35B-Instruct with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3-Coder-480B-A35B-Instruct
Add files using upload-large-folder tool
Browse files- model-00008-of-00241.safetensors +3 -0
- model-00019-of-00241.safetensors +3 -0
- model-00038-of-00241.safetensors +3 -0
- model-00047-of-00241.safetensors +3 -0
- model-00054-of-00241.safetensors +3 -0
- model-00069-of-00241.safetensors +3 -0
- model-00093-of-00241.safetensors +3 -0
- model-00106-of-00241.safetensors +3 -0
- model-00121-of-00241.safetensors +3 -0
- model-00130-of-00241.safetensors +3 -0
- model-00144-of-00241.safetensors +3 -0
- model-00156-of-00241.safetensors +3 -0
- model-00161-of-00241.safetensors +3 -0
- model-00166-of-00241.safetensors +3 -0
- model-00195-of-00241.safetensors +3 -0
- model-00199-of-00241.safetensors +3 -0
- model-00210-of-00241.safetensors +3 -0
- model-00224-of-00241.safetensors +3 -0
model-00008-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:eb218233ab8d7c0cc9e69303b52849251f12326c18d65c3da3d5c46eda79553b
|
| 3 |
+
size 3995090448
|
model-00019-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15ac812c536dd408f1f287e3d496f4f461aab337918e5f4bb27421de8a0a57c8
|
| 3 |
+
size 3995090392
|
model-00038-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8eba06af74446d4a41bc959f379652db340519ce9299a98958f8668e13c193b8
|
| 3 |
+
size 3995090352
|
model-00047-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f34bd1e83df880cc177aca0ac3dc2bf5c0edad7766175519945e142d4f257fe3
|
| 3 |
+
size 3978207000
|
model-00054-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e67fc2516e7cdedd75b47dda213168df85b82b5d7da0ee23a489753005d71f83
|
| 3 |
+
size 3995090544
|
model-00069-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3465ab20ee78b3b93e393e766068770c8294fab561bb103535bd8a511d15d3ff
|
| 3 |
+
size 3995090488
|
model-00093-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0b44f3b443d4938b6412f042212811ece84ea6cbc53678a2e08fcf7ffdc1561b
|
| 3 |
+
size 3995090568
|
model-00106-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c293c8b176dd8d8f034b33875e9250cc3592f56d1aa63c79fbf2e56f136382d4
|
| 3 |
+
size 3995090416
|
model-00121-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:07af65ac9a0fed0b574bc12e8b2c7ce009dccb5d6c6ad28c280689f2e234b3b5
|
| 3 |
+
size 3978206912
|
model-00130-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a17e527502220a9bda3ec279752001bcfd69f1ec751c793946225ff4066f7ceb
|
| 3 |
+
size 3995090448
|
model-00144-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e563e0015876458f9c880f30988323b107d5f16411e9b97567c73e62981f9a52
|
| 3 |
+
size 3978206936
|
model-00156-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03677b231f3a702e54c7ce4c849447e03bf3cfd81b044c4e501cc75d5ec034c8
|
| 3 |
+
size 3978206880
|
model-00161-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:199e6e6f231821317af5886cbe7e8cad7addcd1e3129f2d95ce2b8881613056f
|
| 3 |
+
size 3995090440
|
model-00166-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a9d0d5b5c14c3552cb4b2b5d0b45756d45780dc79fab90e6136bf63057b0406f
|
| 3 |
+
size 3995090528
|
model-00195-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ddc4f212a8c7d83e1b93957e3629f63395799ba6dfbda86cc78844e1e943cea8
|
| 3 |
+
size 3995090424
|
model-00199-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b6669ef25857096b29c8fc26a3e44b2ca995ce3304b57f50b90cb986741c6f11
|
| 3 |
+
size 3995090440
|
model-00210-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0cc3f532a06717540ba09f8957e03a1c1f60c693d039a379a3d128dffd603514
|
| 3 |
+
size 3978206904
|
model-00224-of-00241.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5b5221655a11f4415c377229850f9a988f27aa933dbfb317e6aae864a1e9fe8d
|
| 3 |
+
size 3995090528
|