Instructions to use Qwen/Qwen3-Coder-Next with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3-Coder-Next with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Qwen/Qwen3-Coder-Next") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-Coder-Next") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-Coder-Next") 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-Next with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3-Coder-Next" # 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-Next", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Qwen/Qwen3-Coder-Next
- SGLang
How to use Qwen/Qwen3-Coder-Next 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-Next" \ --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-Next", "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-Next" \ --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-Next", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Qwen/Qwen3-Coder-Next with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3-Coder-Next
Add link to technical report and improve metadata
#41
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -3,10 +3,17 @@ library_name: transformers
|
|
| 3 |
license: apache-2.0
|
| 4 |
license_link: https://huggingface.co/Qwen/Qwen3-Coder-Next/blob/main/LICENSE
|
| 5 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
# Qwen3-Coder-Next
|
| 9 |
|
|
|
|
|
|
|
| 10 |
## Highlights
|
| 11 |
|
| 12 |
Today, we're announcing **Qwen3-Coder-Next**, an open-weight language model designed specifically for coding agents and local development. It features the following key enhancements:
|
|
@@ -198,7 +205,7 @@ To achieve optimal performance, we recommend the following sampling parameters:
|
|
| 198 |
|
| 199 |
If you find our work helpful, feel free to give us a cite.
|
| 200 |
|
| 201 |
-
```
|
| 202 |
@techreport{qwen_qwen3_coder_next_tech_report,
|
| 203 |
title = {Qwen3-Coder-Next Technical Report},
|
| 204 |
author = {{Qwen Team}},
|
|
|
|
| 3 |
license: apache-2.0
|
| 4 |
license_link: https://huggingface.co/Qwen/Qwen3-Coder-Next/blob/main/LICENSE
|
| 5 |
pipeline_tag: text-generation
|
| 6 |
+
base_model: Qwen/Qwen3-Next-80B-A3B-Base
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- qwen
|
| 10 |
+
- moe
|
| 11 |
---
|
| 12 |
|
| 13 |
# Qwen3-Coder-Next
|
| 14 |
|
| 15 |
+
[[Technical Report](https://huggingface.co/papers/2603.00729)] [[Blog](https://qwen.ai/blog?id=qwen3-coder-next)] [[GitHub](https://github.com/QwenLM/Qwen3-Coder)]
|
| 16 |
+
|
| 17 |
## Highlights
|
| 18 |
|
| 19 |
Today, we're announcing **Qwen3-Coder-Next**, an open-weight language model designed specifically for coding agents and local development. It features the following key enhancements:
|
|
|
|
| 205 |
|
| 206 |
If you find our work helpful, feel free to give us a cite.
|
| 207 |
|
| 208 |
+
```bibtex
|
| 209 |
@techreport{qwen_qwen3_coder_next_tech_report,
|
| 210 |
title = {Qwen3-Coder-Next Technical Report},
|
| 211 |
author = {{Qwen Team}},
|