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
Qwen 3.8 27b vram requirements
#201 opened 1 day ago
by
mzubairtahir000714
Beta testers wanted (Qwen 3.8:27b)
4
#199 opened 3 days ago
by
anoneemoose
Upload 71 files
#198 opened 4 days ago
by deleted
really great job
#197 opened 5 days ago
by
llMss12
Open-weight policy is moving against this model's weights: the 'apply the same standards' argument, in their own words
π 1
1
#196 opened 6 days ago
by
SmilingQbandit
New Top #1 most liked on HF! π€
π€ 5
#195 opened 6 days 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 9 days 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 9 days ago
by
FLvdW
NVFP4 Shootout (Quality and Speed)
πβ 5
7
#192 opened 11 days ago
by
Rieker
Request: DOI
#190 opened 13 days ago
by
Ca20na
Page unreadable in dark mode
π 3
#189 opened 14 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 14 days ago
by
warlock76
π ROCM release v10.0 provided significant performance bonus
π€ 3
#186 opened 16 days ago
by
puchuu
BabyVision Reproduction Gap on Qwen3.8-27B: 46% vs. 65.7% π€
π 6
#184 opened 17 days ago
by
SongTang
KV Cache Precision Benchmarks
β€οΈ 6
#182 opened 23 days ago
by
Rieker
llama.cpp supports DFLash2 now
1
#181 opened 23 days ago
by
artden111
What is the true ranking of this model?
π 1
6
#180 opened 23 days ago
by
Duonglv
Qwen3.8 isn't a general purpose AI model.
ππ 10
9
#179 opened 23 days ago
by
phil111
Qwen 3.8 get stuck in massive 20kβ50k token thinking loops on SGLang?
6
#178 opened 24 days ago
by
undeadindustries
Qwen 3.8 and Hermes Agent success story
π 1
3
#177 opened 24 days ago
by
climerman
Request: DOI
#176 opened 24 days ago
by
paulgavrikov
Undertrained vocabulary tokens cause silent substitution in structured-output tasks (forensic writeup + token list)
#175 opened 24 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 24 days ago
by
SntROI
Doubt regarding reasoning instruction in chat_template.jinja
1
#173 opened 25 days ago
by
akanksh-bc
Add ExtractBench and ParseBench evaluation results
β€οΈ 1
#172 opened 25 days ago
by
boyang-runllama
Qwen3.8-Flash-Next
π₯ 3
1
#171 opened 25 days ago
by
jezzza1401
Qwen3.8-flash-next size?
π€ 2
2
#170 opened 26 days ago
by
Duonglv
Serving notes: prefix cache on the hybrid attention (1584-token blocks, lazy materialization) + thinking field gotchas
π 3
#169 opened 26 days ago
by
fogf
Delete config.json
#168 opened 26 days ago
by
wbb1021
I need advice
5
#167 opened 26 days ago
by
HorizontalWorld
We want Moe Qwen 3.8 30b a3b
π₯β 30
2
#166 opened 26 days ago
by
KhronosAion
Any plan for Qwen4?
4
#165 opened 27 days ago
by
Duonglv
So, I am a big dih?
#164 opened 27 days ago
by
QwennAI
(request, not costly) mech interp for Qwen3.8-27B
#163 opened 27 days ago
by
john1248
we miss smaller models like 3b - 4b - 5b models that run on tight vram like 4gb to 6 gb vram
π 2
1
#162 opened 27 days ago
by
Why-T
Qwen 3.8 35B A3B Would be really good!
βπ 25
7
#161 opened 28 days ago
by
ShyliaSafetensors
Deployment & Performance Report: Qwen3.8-27B (BF16) on RTX PRO 6000 with SGLang + EAGLE
π 5
2
#160 opened 29 days ago
by
sssssong0814
Where the fuck is 4B
ππ 4
8
#159 opened 29 days ago
by
Hellomaniamcoollol
Add Terminal-Bench evaluation results
β€οΈ 1
#158 opened 30 days ago
by
SaylorTwift
Quality-first quants here with metrics and graphs
π 5
#157 opened about 1 month ago
by
NikiKrutan
Release: Surgical Quant of Qwen3.8-27B Edition (W4A16 AutoRound + BF16 Preserved) v2
π 1
#156 opened about 1 month ago
by
goldhub
Performance issues in LMStudio
β 2
2
#154 opened about 1 month ago
by
m1k0la
KV-cache KLD scales with model fidelity, not quant family β three null results and one metric trap
1
#153 opened about 1 month ago
by
Knappy
Qwen3.8
#152 opened about 1 month ago
by
willowoods
DFlash2 speeds Qwen 3.8 27B up to 4 times
1
#151 opened about 1 month ago
by
artden111
mybot
#149 opened about 1 month ago
by
Customer345
Mid-conversation system messages raise an exception, breaking agent clients
π 1
2
#148 opened about 1 month ago
by
maven8891
fix(chat_template): accept reasoning_effort="high" (Claude Code default) via alias to "xhigh"
π 2
1
#147 opened about 1 month ago
by
Ekko0612