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
- HuggingChat
- 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
Qwen3.8-27B has the best coding ceiling you can run at home on consumer hardware, it ships with reasoning_effort defaulting to xhigh - I measured what that costs
#194 opened about 13 hours ago
by
TomsnKa
Practical experience: Qwen3.8-27B as a tool-using agent on used AMD hardware — 4 quants, receipts, and a bug it found itself
#193 opened about 16 hours ago
by
FLvdW
NVFP4 Shootout (Quality and Speed)
➕ 2
2
#192 opened 2 days ago
by
Rieker
Request: DOI
#190 opened 4 days ago
by
Ca20na
Page unreadable in dark mode
👀 2
#189 opened 6 days ago
by
zencrab
needs "keep model in memory" enabled for some obscure reason or loading it will fail with a cache memory issue
#188 opened 6 days ago
by
warlock76
🏆 ROCM release v10.0 provided significant performance bonus
🤗 3
#186 opened 7 days ago
by
puchuu
BabyVision Reproduction Gap on Qwen3.8-27B: 46% vs. 65.7% 🤔
👀 5
#184 opened 8 days ago
by
SongTang
KV Cache Precision Benchmarks
❤️ 5
#182 opened 14 days ago
by
Rieker
llama.cpp supports DFLash2 now
1
#181 opened 14 days ago
by
artden111
What is the true ranking of this model?
👍 1
6
#180 opened 14 days ago
by
Duonglv
Qwen3.8 isn't a general purpose AI model.
👀👍 8
9
#179 opened 15 days ago
by
phil111
Qwen 3.8 get stuck in massive 20k–50k token thinking loops on SGLang?
1
#178 opened 15 days ago
by
undeadindustries
Qwen 3.8 and Hermes Agent success story
👍 1
2
#177 opened 15 days ago
by
climerman
Request: DOI
#176 opened 15 days ago
by
paulgavrikov
Undertrained vocabulary tokens cause silent substitution in structured-output tasks (forensic writeup + token list)
#175 opened 15 days ago
by
glitch003
Conceptual Proposal] Human-AI co-creation: Two architectural ideas to solve Attention Drift & Catastrophic Forgetting (Seeking engineering stress-test)
#174 opened 16 days ago
by
SntROI
Doubt regarding reasoning instruction in chat_template.jinja
1
#173 opened 16 days ago
by
akanksh-bc
Add ExtractBench and ParseBench evaluation results
#172 opened 17 days ago
by
boyang-runllama
Qwen3.8-Flash-Next
🔥 3
1
#171 opened 17 days ago
by
jezzza1401
Qwen3.8-flash-next size?
🤗 2
2
#170 opened 17 days ago
by
Duonglv
Serving notes: prefix cache on the hybrid attention (1584-token blocks, lazy materialization) + thinking field gotchas
👍 3
#169 opened 17 days ago
by
fogf
Delete config.json
#168 opened 17 days ago
by
wbb1021
I need advice
5
#167 opened 18 days ago
by
HorizontalWorld
We want Moe Qwen 3.8 30b a3b
🔥➕ 26
2
#166 opened 18 days ago
by
KhronosAion
Any plan for Qwen4?
4
#165 opened 18 days ago
by
Duonglv
So, I am a big dih?
#164 opened 19 days ago
by
QwennAI
(request, not costly) mech interp for Qwen3.8-27B
#163 opened 19 days ago
by
john1248
we miss smaller models like 3b - 4b - 5b models that run on tight vram like 4gb to 6 gb vram
😔 1
1
#162 opened 19 days ago
by
Why-T
Qwen 3.8 35B A3B Would be really good!
➕👍 23
7
#161 opened 19 days ago
by
ShyliaSafetensors
Deployment & Performance Report: Qwen3.8-27B (BF16) on RTX PRO 6000 with SGLang + EAGLE
👍 5
2
#160 opened 20 days ago
by
sssssong0814
Where the fuck is 4B
👀👍 4
8
#159 opened 20 days ago
by
Hellomaniamcoollol
Add Terminal-Bench evaluation results
#158 opened 21 days ago
by
SaylorTwift
Quality-first quants here with metrics and graphs
😎 5
#157 opened 21 days ago
by
NikiKrutan
Release: Surgical Quant of Qwen3.8-27B Edition (W4A16 AutoRound + BF16 Preserved) v2
👍 1
#156 opened 22 days ago
by
goldhub
Performance issues in LMStudio
➕ 1
2
#154 opened 22 days ago
by
m1k0la
KV-cache KLD scales with model fidelity, not quant family — three null results and one metric trap
1
#153 opened 22 days ago
by
Knappy
Qwen3.8
#152 opened 22 days ago
by
willowoods
DFlash2 speeds Qwen 3.8 27B up to 4 times
1
#151 opened 22 days ago
by
artden111
mybot
#149 opened 22 days ago
by
Customer345
Mid-conversation system messages raise an exception, breaking agent clients
👍 1
2
#148 opened 22 days ago
by
maven8891
fix(chat_template): accept reasoning_effort="high" (Claude Code default) via alias to "xhigh"
👍 2
1
#147 opened 23 days ago
by
Ekko0612
No multimodal on vLLM? Model Qwen/Qwen3.8-27B-FP8 is treated as multimodal but has no registered multimodal processor; running in text-only mode.
1
#146 opened 23 days ago
by
pabbbb
arxiv endorsement appreciated if anyone is feeling kind
#145 opened 23 days ago
by
mars2titan
Le Cirque du Raisonnement: 27B Parameters, 262K Tokens of Hot Air, and a Packaging Bug That Silently Truncates Every Prompt)
🔥➕ 5
19
#144 opened 23 days ago
by
AdrienneNoctis
ArtificialAnalysis score of 52 outscore GLM 5.2 , Opus 4.6 and touches Opus 4.7!!!!
🔥 1
10
#143 opened 23 days ago
by
mayankiit04
girl
#142 opened 23 days ago
by
absoluT-1c
Turboquant?
6
#141 opened 23 days ago
by
ghostwithahat
Perfect Model
🤗❤️ 5
#140 opened 23 days ago
by
JustinKanne