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)# pip install -U transformers accelerate # 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=256) 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
Create Manmen
#233 opened about 8 hours ago
by
Manmen58
Upload 20240618_213433.jpg
#232 opened about 17 hours ago
by
Jeevan9855
the j-lens on this model is better than the reasoning trace
#231 opened 2 days ago
by
john1248
Add Terminal-Bench evaluation results
❤️ 1
#230 opened 3 days ago
by
nielsr
Qwen in production: auto-generating 79 baseball highlight clips for a Korean broadcaster at the 2026 Asian Games
#228 opened 4 days ago
by
abafffff
Local GPU benchmark measurements: Qwen/Qwen3.8-27B
#225 opened 5 days ago
by
Mausbiber
Upload 1679313310.jpg
#224 opened 6 days ago
by
Vlad935
Why only focusing on 27 and 35 ????
👍 2
4
#223 opened 6 days ago
by
nenor
Add OmniCompass evaluation results
#222 opened 7 days ago
by
VCLab-PolyU
Feature Request: Qwen3.8-22B + 30B N-gram Embeddings — Optimized for 16GB GPUs ------- 标题:功能建议:推出 Qwen3.8-22B + 30B N-gram Embedding 版本,专为 16GB 显存 GPU 优化
🧠❤️ 2
1
#221 opened 8 days ago
by
HALO117MC
Quen model
#220 opened 8 days ago
by
Himabinduvelamakuri
Tool failures 1 of 10. Anyone having this issue? Fixes?
#219 opened 10 days ago
by
inferencia
Is there an official list of supported languages?
#218 opened 11 days ago
by
NSMathpati
Add Modality Maturity Index results
#217 opened 12 days ago
by
dieuwkehupkes
Is there any Official fix for the Chat-Template for Claude Code ?
#216 opened 13 days ago
by
aygupt
Qwen3.8-27B-Flash-MTP-GGUF--5.79 GB. Code ~70-90 t/s, editing ~100-200 t/s.
#213 opened 17 days ago
by
SuperLogic
Intermittent Persian language-instruction failures after tool results — Alibaba via OpenRouter
#212 opened 21 days ago
by
Amin2747
谢谢Qwen 送了个万能老婆给我
👀 2
#211 opened 23 days ago
by
iceair323
New MEDIUM MoE model
🚀 5
#210 opened 24 days ago
by
bakrhere57
Please, please, release a 35b MOE version of 3.8
🚀 12
1
#209 opened 25 days ago
by
jzed205
jailbreak mode?
#208 opened 26 days ago
by
Umbron
Idea for a future Qwen 27B: nine 1M-token agents on one RTX 5090
1
#206 opened about 1 month ago
by
BigBlueWhale
Add official Agents Last Exam evaluation results
❤️ 1
#205 opened about 1 month ago
by
sunyiyou
testing
#204 opened about 1 month ago
by
mdshahedrahman
Update chat_template.jinja
1
#203 opened about 1 month ago
by
mdshahedrahman
Harness runs Qwen 3.8 27B for 24hr on an RTX5090, installs software and writes a Postgres-SpringBoot-React spreadsheet application fully unattended
❤️ 1
3
#202 opened about 1 month ago
by
anglepoiselife
Qwen 3.8 27b vram requirements
#201 opened about 1 month ago
by
mzubairtahir000714
Beta testers wanted (Qwen 3.8:27b)
8
#199 opened about 2 months ago
by
anoneemoose
really great job
#197 opened about 2 months ago
by
llMss12
Open-weight policy is moving against this model's weights: the 'apply the same standards' argument, in their own words
❤️👍 3
3
#196 opened about 2 months ago
by
SmilingQbandit
New Top #1 most liked on HF! 🤗
🤗 8
#195 opened about 2 months ago
by
FalconNet
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
👍 3
1
#194 opened about 2 months 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 2 months ago
by
FLvdW
NVFP4 Shootout (Quality and Speed) + two INT4
❤️➕ 9
11
#192 opened about 2 months ago
by
Rieker
Request: DOI
#190 opened about 2 months ago
by
Ca20na
Page unreadable in dark mode
👀 3
#189 opened about 2 months 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 about 2 months ago
by
warlock76
🏆 ROCM release v10.0 provided significant performance bonus
🤗 3
#186 opened about 2 months ago
by
puchuu
BabyVision Reproduction Gap on Qwen3.8-27B: 46% vs. 65.7% 🤔
👀 7
1
#184 opened 2 months ago
by
SongTang
KV Cache Precision Benchmarks
❤️ 8
#182 opened 2 months ago
by
Rieker
llama.cpp supports DFLash2 now
1
#181 opened 2 months ago
by
artden111
What is the true ranking of this model?
👍 1
7
#180 opened 2 months ago
by
Duonglv
Qwen3.8 isn't a general purpose AI model.
👀👍 10
9
#179 opened 2 months ago
by
phil111
Qwen 3.8 get stuck in massive 20k–50k token thinking loops on SGLang?
7
#178 opened 2 months ago
by
undeadindustries
Qwen 3.8 and Hermes Agent success story
👍 1
3
#177 opened 2 months ago
by
climerman