Instructions to use Qwen/Qwen3.5-397B-A17B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3.5-397B-A17B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Qwen/Qwen3.5-397B-A17B") 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-397B-A17B") model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3.5-397B-A17B") 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-397B-A17B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3.5-397B-A17B" # 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-397B-A17B", "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-397B-A17B
- SGLang
How to use Qwen/Qwen3.5-397B-A17B 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-397B-A17B" \ --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-397B-A17B", "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-397B-A17B" \ --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-397B-A17B", "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-397B-A17B with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3.5-397B-A17B
Update WildClawBench evaluation result
#81 opened 10 days ago
by
yuhangzang
Add ResearchClawBench evaluation result
#80 opened 12 days ago
by
black-yt
Add Claw-Eval evaluation results
#79 opened 27 days ago
by
SaylorTwift
Add VideoMMEv2 evaluation results
#78 opened about 1 month ago
by
nielsr
Create .eval_results/apex-agents.yaml
#77 opened about 1 month ago
by
madhavan113
Qwen3.6 397b
3
#75 opened about 2 months ago
by
zenmagnets
fix chat template to avoid empty historical `<think>` blocks
1
#74 opened about 2 months ago
by
latent-variable
Desactivate thinking mode
#73 opened about 2 months ago
by
agomberto
Potential misalignment between Qwen3.5 chat template and recommended tool parser
#72 opened about 2 months ago
by
sen-ppl
Need Base varient for 122b and 397b
#71 opened 2 months ago
by
bharathi1604
Add YC-Bench evaluation results (avg $90,787)
#70 opened 2 months ago
by
RiddleHe
Add WildClawBench evaluation result
#69 opened 2 months ago
by
yuhangzang
qwen 3.5 系列 什么时候在megatron 支持cp
#67 opened 2 months ago
by
prayerdan
Add ScreenSpot-Pro evaluation result
#66 opened 3 months ago
by
merve
Request: DOI
#64 opened 3 months ago
by
HtppsDragonslayer1011
我问它是谁 它有小概率说它是google训练的,,
👀 1
3
#62 opened 3 months ago
by
Zhoudaxia2024
Benchmark评测问题?
#61 opened 3 months ago
by
whyadnao
[Bug Report] chat_template is vulnerable to LLM hallucinated tool arguments, causing vLLM crash / chat_template 工具调用参数容错 Bug 及修复方案
#60 opened 3 months ago
by
reex3625
How to fine-tune this model using the HF Trainer?
#59 opened 3 months ago
by
chuarac
How to fine-tune this model using the HF Trainer?
#58 opened 3 months ago
by
sungjun12
Audio understanding ability 音频理解能力
1
#57 opened 3 months ago
by
CrisXuantu
Different param dtype between Qwen3.5 and Qwen3-Next
#56 opened 3 months ago
by
BestJuly7
Benchmark评测问题?
#55 opened 3 months ago
by
TMRBMWK
Add MathArena evaluation result for hmmt/hmmt_feb_2026
#53 opened 3 months ago
by
JasperDekoninck
ImportError: cannot import name 'HybridCache' from 'transformers.cache_utils' (/opt/nas/p/conda/envs/tcxia_swift/lib/python3.12/site-packages/transformers/cache_utils.py)
🔥 2
2
#52 opened 3 months ago
by
marsmc
Context-Folding Reproducibility | 可复现性 ?
👀 4
#51 opened 3 months ago
by
pandemo
请千万千万别忘了把 Qwen Image 2.0 也开源——这对我们本地用户来说会是个巨大的改变 :-)
2
#48 opened 3 months ago
by
Hanswalter
Add MathArena evaluation result for aime/aime_2026
2
#47 opened 3 months ago
by
JasperDekoninck
是否可以开源强化学习训练框架?
➕🚀 5
#46 opened 3 months ago
by
kaishen
Overview and Capabilities of Qwen AI
#38 opened 3 months ago
by
BOSSDAN
如果想获得在更多芯片上的可部署版本,可以关注FlagRelease下的产出
👍 1
#36 opened 3 months ago
by
YummyYum
qwen3.5_fixed.jinja
#34 opened 3 months ago
by
xldistance
Qwen3.5 Unsloth GGUF Evaluation Results
🚀 15
6
#33 opened 3 months ago
by
danielhanchen
請求80B參數量的Qwen3.5
👀 1
1
#32 opened 3 months ago
by
win10
Suggestion: Dense versions of Qwen 3.5 at multiple scales
2
#31 opened 3 months ago
by
zletpm
any AWQ quantized model ??
3
#29 opened 3 months ago
by
crystech
牛逼就完事儿了,新春快乐
1
#28 opened 3 months ago
by
JoJoGo
Qwen are you doing lower parameter versions?
1
#27 opened 3 months ago
by
Crownelius
Qwen3.5-VL 啥时候能出呢?
3
#25 opened 3 months ago
by
drguolai
Getting error while running the code !pip install -U transformers
#24 opened 3 months ago
by
adarshtiwari2505
Template issue maybe
👍 1
1
#23 opened 3 months ago
by
sm54
vllm 部署oom
13
#22 opened 3 months ago
by
Chris2me
fake knowledge 假知识
6
#21 opened 3 months ago
by
aabbccddwasd
Memory Requirements to run `Qwen/Qwen3.5-397B-A17B`
👀❤️ 10
5
#20 opened 3 months ago
by
alvarobartt
Smaller GGUF without the vision weights?
1
#19 opened 3 months ago
by
rtzurtz
Can we get a distilled 2B or 4B?
5
#18 opened 3 months ago
by
Abc7347
Base model?
#17 opened 4 months ago
by
mrfakename
will there be a smaller version?
👍🔥 12
2
#16 opened 4 months ago
by
iojvsuynv
THANKS QWEN TEAM I'M SO HYPED TO THE QWEN 3.5 LETSS GOOO
❤️ 8
#15 opened 4 months ago
by
AxionLab-official