Instructions to use Qwen/Qwen3.8-27B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3.8-27B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Qwen/Qwen3.8-27B") 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, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Qwen/Qwen3.8-27B") model = AutoModelForMultimodalLM.from_pretrained("Qwen/Qwen3.8-27B", device_map="auto") 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
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Qwen/Qwen3.8-27B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3.8-27B" # 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.8-27B", "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.8-27B
- SGLang
How to use Qwen/Qwen3.8-27B 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.8-27B" \ --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.8-27B", "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.8-27B" \ --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.8-27B", "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.8-27B with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3.8-27B
MTP (SPEC_DRAFT_N_MAX) leads to Nvidia RC Watchdog killing the kernel, llama.cpp calls SIGABRT
#122 opened 10 minutes ago
by
Nosepicker3
Qwen3.8-27B
#121 opened 40 minutes ago
by
willowoods
🙏 The community needs Qwen 3.8 35B-A3B models and others, help us get there 🚀
❤️➕ 4
#120 opened about 1 hour ago
by
highpolygonal
呼唤Qwen3.8MOE模型
❤️ 3
#119 opened about 2 hours ago
by
ackerx
Upload R.Basca_Tr2.geojson
#118 opened about 3 hours ago
by
tab12k
Upload R.Basca_Tr2.geojson
#117 opened about 3 hours ago
by
tab12k
MOE when?
👍 2
#116 opened about 4 hours ago
by
Rzkoohi
Qwen3.8-27B download
#115 opened about 5 hours ago
by
PonyXia
Small MoE models
👍 12
#114 opened about 10 hours ago
by
Orcazephyr
This model cannot stop thinking
2
#113 opened about 15 hours ago
by
xvcy3w
Follow-up: I benchmarked 45 llama.cpp settings on Qwen3.8-27B. The MTP draft head is worth 1.81x, free (RTX 5090, Q4_K_M)
🚀❤️ 7
#112 opened about 15 hours ago
by
laxmimerit
why model return stop casually
3
#111 opened about 16 hours ago
by
xuguowong
Add WildClawBench evaluation result
#110 opened about 18 hours ago
by
ChrisDing1105
FP8 KV Cache Calibration
2
#109 opened about 18 hours ago
by
peterdab
代码能力可能变强了,但是写作能力明显变弱了
👍 5
3
#107 opened about 20 hours ago
by
sumirecccp
Exploring ThinkingCap fine-tunes for Qwen 3.8: Is it still necessary with native `reasoning_effort`?
👍 4
2
#106 opened 1 day ago
by
icognito
Hallucinates MUCH more than Qwen3.6-27B?
3
#105 opened 1 day ago
by
nebi
Benchmarked Qwen3.8-27B vs Nemotron 3.5 Lightning and Muse Glimmer on 16 hard problems (RTX 5090, Q4_K_M)
👍❤️ 10
6
#103 opened 1 day ago
by
laxmimerit
Thank You Qwen Team!!!!
🤗❤️ 4
#102 opened 1 day ago
by
cob05
qwen3.8-27b on one pro 6000: 140 tok/s, day after release
2
#101 opened 1 day ago
by
Avifenesh
It’s really good
🚀 4
3
#100 opened 1 day ago
by
jbourny
Tested the model (locally) on coding and agentic work
👍 1
1
#99 opened 1 day ago
by
curiousily
Many thanks Qwen and Unsloth
👍 2
#98 opened 1 day ago
by
Seraph-Northforge
A crazy thinking model
👍😔 9
15
#97 opened 1 day ago
by
xuguowong
About countless think time 关于模型不停思考的问题
1
#96 opened 1 day ago
by
TAOTAO777
You brought great honor upon yourself and the country
1
#95 opened 1 day ago
by
gbaromhunterisback
New Qwen 4B when?
🚀😔 9
1
#94 opened 1 day ago
by
Enderchef
The test wich worth waching
#93 opened 2 days ago
by
Seraph-Northforge
After waiting 49 minutes and 16 seconds while the model was still thinking, I'm simply giving up...
🧠👀 3
11
#92 opened 2 days ago
by
MrDevolver
首先,谢谢你制作这个模型!!还有,请务必推出 12B 版本!/ First, thank you for model!!AND please 12B!
😔➕ 5
#91 opened 2 days ago
by
VaLtEc-BoY
MOE MODEL 35B!
🤯🔥 32
1
#90 opened 2 days ago
by
pinkpink96
35b moe pls ><
👍 23
1
#89 opened 2 days ago
by
clecho52
35B MOE please
➕❤️ 16
2
#88 opened 2 days ago
by
SanderMer
MLX support
#87 opened 2 days ago
by
tushar310
Much better in agent coding
👍 3
#86 opened 2 days ago
by
rosspanda0
35B-A3B PLS!!
👀 8
1
#85 opened 2 days ago
by
hzhzhh
Bench maxed -- don't be fooled by the table presented in the model card
👀 1
4
#84 opened 2 days ago
by
pathosethoslogos
35B-A3B or 35B-A5B
🔥😔 17
6
#83 opened 2 days ago
by
MaxDaddyLongs
Very good 🥰 but thinks too much 🧠
👍 1
4
#82 opened 2 days ago
by
auf1r2
MTP speculation is net-negative under Ollama's GGUF path, strongly positive under MLX (measured on M4 Pro)
5
#80 opened 2 days ago
by
OtsoaD
lengthy reasoning without conclusion
2
#79 opened 2 days ago
by
35huseyin
Does no one use dark mode on HF?
👍 5
2
#78 opened 2 days ago
by
suteki1
35B-A3B
➕👍 32
2
#77 opened 2 days ago
by
gbuzhf
Why Qwen3.8-27B overthinks? Here the reason and partial fix confirmed by benchmarks.
❤️👀 24
25
#76 opened 2 days ago
by
LuffyTheFox
Please provide the model Qwen 3.8 35B-A3B 🙏
🔥🚀 81
6
#75 opened 2 days ago
by
highpolygonal
恭迎小模型的神!
👍 1
1
#73 opened 2 days ago
by
Kalida6
Training and Tinker service support
#72 opened 2 days ago
by
tastelikefeet
Qwen3.8-9B please 9B models
👍➕ 11
6
#71 opened 2 days ago
by
AMAImedia
Please don't forget about us 35B MOE users!
🤯➕ 12
2
#70 opened 2 days ago
by
CYISNOTHERE
It is inferior to the qwen3.6 35 model in image and video recognition
4
#69 opened 2 days ago
by
wzgrx