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
Best small size dense model
#38 opened about 1 month ago
by
weisunding
A desktop runnable MoE?
👍🚀 6
1
#37 opened about 1 month ago
by
TheBigBlockPC
How can I run this well on an RTX 5070 ti?
8
#36 opened about 1 month ago
by
theonerm2
Thank you Qwen Team
🤗❤️ 14
#35 opened about 1 month ago
by
aaron-newsome
Qwen3.8-27B Serving Configs: DGX Spark vLLM NVFP4 and RTX 4090 llama.cpp GGUF
🚀 2
1
#34 opened about 1 month ago
by
erdal
What level of quantization can preserve accuracy while effectively reducing the model size?
👀 2
4
#33 opened about 1 month ago
by
SeanKd
wen qwen3.8-omni?
👀 8
#32 opened about 1 month ago
by
felfri
开源必胜!
1
#31 opened about 1 month ago
by
quitmy0001
Absolute legend!
🔥❤️ 20
#30 opened about 1 month ago
by
BuiDoan
my boi ♥♥♥
❤️ 3
#28 opened about 1 month ago
by
skham667
Super-compressed brain monster has been unleashed.
🤗❤️ 4
#25 opened about 1 month ago
by
tooltd
Congratulations qwen team!
🤗❤️ 4
#24 opened about 1 month ago
by
jlweights
Excellent work - Seems like reasoning effort is the new big thing here
❤️🤗 2
1
#23 opened about 1 month ago
by
VISHNUDHAT
Add evaluation results
❤️🤗 2
4
#22 opened about 1 month ago
by
SaylorTwift
THANKS!
❤️ 3
#21 opened about 1 month ago
by
JohnJ990
CONGRATS TO QWEN TEAM !
❤️ 13
#18 opened about 1 month ago
by
OtsoaD
Fucking Closed AI's Are Dead , Long Live Open Source AI
❤️ 33
3
#17 opened about 1 month ago
by
Siddh07ETH
Hopefully useful german language skills
5
#16 opened about 1 month ago
by
TheWegemann
The Return of the King
❤️ 12
5
#15 opened about 1 month ago
by
raunoryys
Thank you to the wonderful Qwen team!
🔥❤️ 6
#12 opened about 1 month ago
by
ConorWang
火钳刘明
2
#11 opened about 1 month ago
by
Williamxie1989
Let's gooo
1
#10 opened about 1 month ago
by
AndersonDynamics
Brasil compilando o GGUF
2
#9 opened about 1 month ago
by
videcode
text is hard to read on dark mode
➕ 10
3
#8 opened about 1 month ago
by
nonetrix
Please release the 35b or 70b version
➕ 35
14
#7 opened about 1 month ago
by
NjProVk
HNNGGGG
🔥❤️ 4
1
#6 opened about 1 month ago
by
Sherlock-Comms
Thank you Qwen!
❤️ 10
2
#5 opened about 1 month ago
by
l33tkr3w
BABY WAKE UP ! QWEN JUST DROPPED ANOTHER BANGER !
🔥😎 8
#4 opened about 1 month ago
by
EliasBrightFolks
YASSSSSSSSSSSSSSSSSSSSSS
🔥 2
#3 opened about 1 month ago
by
je0923
hello world
🚀🔥 5
1
#2 opened about 1 month ago
by
pengzhi27
First!
❤️🔥 19
4
#1 opened about 1 month ago
by
mtecnic