Serving Qwen4 with vLLM/SGLang: image tags, trust-remote-code, and FP8 tokenizer gotchas
SergioPaniego · x · 2026-12-04
Practical tips for serving Qwen4 with vLLM or SGLang:
- Use the dedicated image tags: vllm/vllm-openai:qwen4 and lmsysorg/sglang:qwen4
- --trust-remote-code is required on both engines, since the tokenizer and chat encoding ship as external files
- tiktoken.model differs between Qwen4-35B-A3B and the FP8 variant, so don't reuse hashes across them
- Reasoning is on by default with effort high; available levels are xhigh / high / low / off
More from Infra
- Sweden freezes new grid connections until June 2027 as data center demand threatens grid — Polymarket · 2026-12-04
- Strix Halo tests: Vulkan beats ROCm by up to 117% on Qwen4 long context — ninetyfive666 · 2026-12-04
- llama.cpp 1.1.1 released with Qwen4 support — pefman · 2026-12-04
- Investor predicts inference is a >$1T market, sees Baseten/Together/Fireworks at $100B valuations — AccBalanced · 2026-12-04
- Running RL training full-time locally: DGX Spark + Mac Studio beat cloud on cost — remilouf · 2026-12-04
- First home lab build: refurbished ThinkCentre, Proxmox and self-hosted NetBird — victorialslocum · 2026-12-04