Instructions to use Qwen/Qwen3.5-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3.5-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Qwen/Qwen3.5-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Qwen/Qwen3.5-9B") model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.5-9B") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- HuggingChat
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Qwen/Qwen3.5-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3.5-9B" # 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.5-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Qwen/Qwen3.5-9B
- SGLang
How to use Qwen/Qwen3.5-9B 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.5-9B" \ --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.5-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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.5-9B" \ --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.5-9B", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use Qwen/Qwen3.5-9B with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3.5-9B
Add MMMU-Pro evaluation result
#55 opened 1 day ago
by
SaylorTwift
Question about OSWorld-Verified evaluation settings for Qwen3.5-9B
#54 opened 10 days ago
by
goonco
Add ParseBench evaluation results
#53 opened 27 days ago
by
boyang-runllama
Qwen3.5
#52 opened about 1 month ago
by
willowoods
[Docs] Conflicting sampling parameters in README.md
#51 opened about 1 month ago
by
trgtszr
Add MDPBench evaluation results
❤️ 1
#50 opened about 1 month ago
by
Delores-Lin
有没有直接用transformer库的用法示例?
#49 opened about 1 month ago
by
tangjiuqi097
fix chat template to avoid empty historical `<think>` blocks
❤️ 1
1
#48 opened about 1 month ago
by
latent-variable
Can we have a FP8 version?
👍 4
1
#47 opened about 1 month ago
by
drguolai
Upload generation_config.json
#46 opened about 1 month ago
by
Manojkumar96
finetuning
#45 opened about 2 months ago
by
huu-ontocord
Update README.md
#44 opened about 2 months ago
by
IFthisisrealitynbds
Delete README.md
#43 opened about 2 months ago
by
Maniche23
Will ai completely replace humans
1
#42 opened about 2 months ago
by
okateun
Create 123
#41 opened about 2 months ago
by
Alex-Neural
Proposal: new chat_template_arg `enable_history_reasoning` for reusing prompt cache among querys within Agents .
#39 opened about 2 months ago
by
Abioy
Add ScreenSpot-Pro evaluation result
#37 opened 2 months ago
by
merve
Add MathArena evaluation result for hmmt/hmmt_feb_2026
#36 opened 2 months ago
by
JasperDekoninck
Add MathArena evaluation result for aime/aime_2026
#35 opened 2 months ago
by
JasperDekoninck
Is the Qwen3VL inference guide applicable to Qwen3.5?
#34 opened 2 months ago
by
summerishere
Create generation_config.json
#32 opened 2 months ago
by
jalola
Install & run Qwen/Qwen3.5-9B easily using llmpm
1
#30 opened 2 months ago
by
sarthak-saxena
anuoluwapo
#28 opened 2 months ago
by
mapema
for the love of action model
3
#27 opened 2 months ago
by
sirmyy
Just asking
#26 opened 2 months ago
by
levuci88
greeting
1
#25 opened 2 months ago
by
ahmafc123
kamote
1
#24 opened 2 months ago
by
balatubs123
ilhmop09
🔥 1
2
#23 opened 2 months ago
by
cryptosxion
Update README.md
#22 opened 2 months ago
by
cryptosxion
mr clean
1
#21 opened 2 months ago
by
ghetra
Running the model using HF backend
#20 opened 2 months ago
by
sahilj2701
life as a journey
2
#19 opened 2 months ago
by
bdfsparkles
Update README.md
1
#17 opened 3 months ago
by
kerasakit
possible to run on RTX 2060 8GB + 32GB RAM DDR4?
4
#16 opened 3 months ago
by
krigeta
No generation_config.json?
➕ 2
#15 opened 3 months ago
by
deep1401
Now we waiting for Qwen4-10B
3
#14 opened 3 months ago
by
Naster17
How to disable or reduce thinking
3
#13 opened 3 months ago
by
AyoubChLin
Giberish response when using the model with transformers library with an image
4
#12 opened 3 months ago
by
jluixjurado
Can‘t run AutoModelForSequenceClassification for Qwen3.5-9B
1
#11 opened 3 months ago
by
HanyuYuzuru
Tool call stops in middle of the conversation, doesn't finish the complete task
👍 3
3
#10 opened 3 months ago
by
TechCarbasa
How to reproduce the results of Android World?
#9 opened 3 months ago
by
llmmlman
how does it perform on SWE-Bench or in general for agentic coding
👀 3
#7 opened 3 months ago
by
mayankiit04
Installation Video and Testing - Step by Step
#6 opened 3 months ago
by
fahdmirzac
Can we get a 9B-FP8 version next
👍 15
5
#5 opened 3 months ago
by
kq
DGX SPARK VLLM RESULTS
👍 2
2
#4 opened 3 months ago
by
RGMC98
value error, The checkpoint you are trying to load has model type `qwen3_5`
3
#3 opened 3 months ago
by
cesinsingapore
Add GPQA Diamond evaluation result
#2 opened 3 months ago
by
SaylorTwift
new soto for dense
👍🧠 4
#1 opened 3 months ago
by
ox-ox