SGLang: Release v0.4.0
Component: sglang · Channel: stable. Automated analysis, not a compatibility certification. How this works.
Analysis updated: 2026-11-26.
SGLang v0.4 introduces major architectural performance improvements, including a zero-overhead batch scheduler, cache-aware load balancer, and data parallelism attention for DeepSeek models. These enhancements collectively deliver significant throughput gains and up to 10x faster structured outputs using xgrammar.
💻 Software Engineers & Devs
Leverage new support for xgrammar for fast structured outputs, LoRA in the Completion API, GGUF format support, and input embeds.
📊 Product & Engineering Leads
Deploy DeepSeek models more efficiently and offer customers faster structured outputs with up to 1.9x decoding throughput improvements.
⚙️ DevOps & Security
Benefit from a cache-aware load balancing router, initial Intel Gaudi accelerator support, and optimized AMD GPU configurations.
✨ New Features & Capabilities (9)
- Zero-overhead batch scheduler
- Cache-aware load-balancing router v1
- Data parallelism attention for DeepSeek models
- Fast structured outputs with xgrammar (up to 10x faster)
- Initial support for Intel Gaudi accelerators
- Simple CPU offloading support
- Support for GGUF format
- Support LoRA in Completion API
- Online weight updates from torch.distributed
⚡ Performance & Enhancements (5)
- Up to 1.1x increase in throughput via zero-overhead batch scheduler
- Up to 1.9x increase in throughput with 3.8x higher cache hit rate via cache-aware load balancer
- Up to 1.9x decoding throughput improvement for DeepSeek models
- Merged three native APIs into one: get_server_info
- Support session control for vision language models
🔧 Bug Fixes & Patches (4)
- Fix mixed chunked prefill in overlap mode
- Fix memory leak during abort
- Fix hash collision for multi modal models
- Fix gptq for moe layers
❓ Frequently Asked Questions
Does SGLang v0.4.0 contain breaking changes?
No explicit breaking changes or migration requirements are documented in the release notes.
What is the primary highlight of v0.4.0?
The primary highlights include substantial throughput increases driven by a zero-overhead batch scheduler, a cache-aware load balancer, data parallelism for DeepSeek models, and up to 10x faster structured outputs using xgrammar.
How should teams prepare to upgrade to v0.4.0?
Teams should review dependency updates like xgrammar and sglang-router, test new routing behaviors, and evaluate performance improvements on their specific accelerator hardware (such as NVIDIA, AMD, or Intel Gaudi).