Instructions to use Qwen/Qwen3-0.6B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3-0.6B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Qwen/Qwen3-0.6B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-0.6B") model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen3-0.6B") 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 Settings
- vLLM
How to use Qwen/Qwen3-0.6B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3-0.6B" # 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-0.6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Qwen/Qwen3-0.6B
- SGLang
How to use Qwen/Qwen3-0.6B 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-0.6B" \ --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-0.6B", "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-0.6B" \ --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-0.6B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Qwen/Qwen3-0.6B with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3-0.6B
New architecture: TemporalMesh Transformer — dynamic kNN graph attention + per-token exit routing, 29.4 PPL at 48% compute
#35 opened 2 days ago
by
vigneshwar234
Where can I find the source code?
#34 opened about 1 month ago
by
work19990909
Install & run Qwen/Qwen3-0.6B easily using llmpm
1
#33 opened 3 months ago
by
sarthak-saxena
remove --enable-reasoning as it was deprecated
#32 opened 3 months ago
by
saidmukhamad
what is the max length token of qwen3-0.6B
1
#28 opened 7 months ago
by
guruboy123
qwen3_pull_from_huggingface
#26 opened 7 months ago
by
nah20250424
BFloat16 is not supported on MPS
#25 opened 8 months ago
by
To-the-north-pole
Memory spikes on long context length
#24 opened 8 months ago
by
imomayiz
MMLU Redux Zero-shot Prompt
#22 opened 9 months ago
by
sh0416
Config does not match context length.
#19 opened 11 months ago
by
aberrio
Request: DOI
#18 opened 12 months ago
by
HaiOi
Qwen3_0.6B is not fully compatible with the Qualcomm QCS6490 chipset. How can it be adapted? Can you provide a detailed and complete deployment tutorial?
#17 opened 12 months ago
by
ThinkStart
Thinking flag is flipped?
1
#16 opened 12 months ago
by
rasbt
Add assistant mask support to Qwen3-0.6B
2
#14 opened about 1 year ago
by
waleko
Qwen3ForCausalLM
1
#13 opened about 1 year ago
by
cr-gkn
What's the difference between Qwen/Qwen3-0.6B and Qwen/Qwen3-0.6B-Base?
2
#12 opened about 1 year ago
by
luohuashijieyoufengjun
Adding ONNX file of this model
#10 opened about 1 year ago
by
Mayuli
Create aaa
#7 opened about 1 year ago
by
Linsonss
Qwen3 0.6B model Bad Cases Genuinue User Reviews and Comments Collection
#6 opened about 1 year ago
by
DeepNLP
Very coherent for the size, though it is also adamant in defending its wrong conclusions and false knowledge
👍 1
#5 opened about 1 year ago
by
cmp-nct
Training methodologys
👍 1
2
#4 opened about 1 year ago
by
LeroyDyer
【Evaluation】Best practice for evaluating Qwen3 !!
🚀👀 4
#2 opened about 1 year ago
by
wangxingjun778
Add languages tag
#1 opened about 1 year ago
by
de-francophones