Instructions to use Qwen/Qwen3.8-Flash-Next with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Qwen/Qwen3.8-Flash-Next with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Qwen/Qwen3.8-Flash-Next") 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-Flash-Next") model = AutoModelForMultimodalLM.from_pretrained("Qwen/Qwen3.8-Flash-Next", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Qwen/Qwen3.8-Flash-Next with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Qwen/Qwen3.8-Flash-Next" # 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-Flash-Next", "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-Flash-Next
- SGLang
How to use Qwen/Qwen3.8-Flash-Next 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-Flash-Next" \ --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-Flash-Next", "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-Flash-Next" \ --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-Flash-Next", "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-Flash-Next with Docker Model Runner:
docker model run hf.co/Qwen/Qwen3.8-Flash-Next
Good agentic model, not good at Russian as previous Qwens.
#33 opened about 2 hours ago
by
DrRos
N-Gram system compatibility for 27b.
#32 opened about 6 hours ago
by
ForgeAgent
New models
β 3
#31 opened 1 day ago
by
jezzza1401
Wow this is an outright killer model... anyone can now run this with mere 48 gb ram/vram & a fast nvme drive
3
#30 opened 1 day ago
by
mayankiit04
Run Qwen 3.8 Flash Next (Qwen 4) 180B on CPU Only, No GPU Needed
π₯β€οΈ 5
1
#29 opened 1 day ago
by
laxmimerit
Any plans for a newer multimodal embedding model ?
#27 opened 1 day ago
by
tarantulae
Qwen4 with Various Sizes?
β€οΈ 2
#25 opened 2 days ago
by
Duonglv
"La Grande Illusion de 360 Go: A 4B Dummy in a 512-Expert Costume, Walking on a Stolen N-Gram Cane"
π€―π 6
7
#24 opened 2 days ago
by
AdrienneNoctis
can you please make a 39b dense model?
4
#23 opened 2 days ago
by
Manni1000
Qwen3.8-Flash-Next (Qwen 4 - Preview) vs 3.8 27B - Architecture Teardown
π₯β€οΈ 8
6
#22 opened 2 days ago
by
laxmimerit
new idea
π§ 2
2
#21 opened 2 days ago
by
dpe1
π Try training Qwen3.8-Flash-Next with ms-swift (Day-0 Support)
πβ€οΈ 2
#19 opened 2 days ago
by
hu5enpai
Why isn't it Apache 2.0 licensed?
ππ 8
1
#18 opened 2 days ago
by
PotatoSniffer
here qwen3.8-flash-next is 125B but unsloth has 180B ... how come?
2
#17 opened 2 days ago
by
mayankiit04
Great innovation!
ππ 4
1
#16 opened 2 days ago
by
websb
GatedDeltaNet-2 (GDN-2) ??
β€οΈ 4
1
#13 opened 2 days ago
by
khtsly
Add community evaluation results
π 2
#12 opened 2 days ago
by
SaylorTwift
50b moe?
π₯ 14
2
#11 opened 2 days ago
by
vonamakitsune
Deep Thanks
β 2
#8 opened 2 days ago
by
AxiomEI
Let see what Santa brought
#7 opened 2 days ago
by
Trilogix1
Anyone tries 1 or 2 bits quantization?
#6 opened 2 days ago
by
SeanKd
Thank you!
ββ€οΈ 5
#5 opened 2 days ago
by
RandomUserNA12312
Can see, can touch but canβt use
πβ 20
10
#4 opened 2 days ago
by
Duonglv
35B-A3B or 35B-A5B
πβ€οΈ 90
9
#3 opened 2 days ago
by
MaxDaddyLongs
second comment
#2 opened 2 days ago
by
ChaosAIVision
Qwen3.8 35B-A5B PLS
πβ€οΈ 55
6
#1 opened 2 days ago
by
highpolygonal