SGLang v0.5.20 released: 713 pull requests, 8 new models, RL sampling masking, and a unified base tree cache.

SGLang v0.5.20 released: 713 pull requests, 8 new models, RL sampling masking, and a unified base tree cache.

1 month ago
duguying
29 views
Source: GitHub Releases

SGLang releases v0.5.20, featuring 713 pull requests from 237 contributors: adding 8 new models including GLM-5.3-Flash and Qwen3.8-Flash-Next, introducing RL rollout sampling masking (decoding throughput increased by +52%), SWA branch point caching (token hit rate increased from 43.8% to 60.8%), and CPU inference simulator and ROCm loading speed increased 12 times; CUDA 12 channels are officially retired.

Related tags

#SGLang#LLM#推理#开源软件#AI#GPU

Overview of Release

Release Overview

The high-performance LLM inference service framework, SGLang, was released on September 18, 2026, with version v0.5.20. This is a substantial release: 713 PRs from 237 contributors, covering virtually every aspect including new model support, RL sampling masking, unified radix tree caching, speculative decoding, parallel and PD-separated deployment, and kernel optimizations, as well as several breaking changes that require careful review before upgrading: Official retirement of CUDA 12 channel, removal of Prefill Context Parallel v1.

Key Highlights

1. New Model Support

Includes the autoregressive models GLM-5.3-Flash, Qwen3.8-Flash-Next, K2 Horizon, Hy4-Preview, Nanbeige4.2, as well as the diffusion models SenseNova-U1.5-8B-MoT, FastH3 (MiniMax-H3 4-step distillation), and VDN-H3 (mixed attention distillation).

2. RL Sampling Masking

Introduces the return_sampling_mask: This allows each decoding step to return the actual token set used by the sampler and the log probability of the sampled tokens, enabling trainers to directly replay rollouts without needing to reconstruct top-k/top-p—a major improvement for RL training infrastructure. The masking now supports overlapping scheduling: on Qwen3-8B, batch 1 decoding throughput is increased by 17%, and batch 64 increases by 52%. Capacity is controlled by --sampling-mask-max-tokens (default 4096).

3. Unified Radix Tree Cache

The SWA (sliding window attention) component introduces a branch point cache: when requesting a fork from a shared prefix, the sliding window state is stored at the branch point, and subsequent branches directly reuse it instead of recalculating. In DeepSeek-V4-Flash shared system prompt scenarios, token hit rate increases from 43.8% to 60.8%, and average TTFT drops from 1.57 s to 1.07 s. This implementation has been successfully migrated to Rust-written TreeCore; it also supports sharing the global memory pool through external links like Mooncake or UMBP.

4. SGLang Simulator: No GPU Inference Simulator

Introduces a pure CPU inference simulator (tools/sglang-simulator), reusing the real scheduler, radix cache, and layered cache, only replacing the model forward pass with a delay predictor. Compared to actual service traces, most scenarios have TTFT prediction errors of approximately 6%, and prefix reuse errors are within 0.05 percentage points—cache and scheduling research no longer requires GPUs.

5. Expanded Hardware Support

  • DeepSeek-V4 on Blackwell: TRT-LLM attention kernel covers CSA/HCA layers (SM100/SM103), approximately 1.2x acceleration for prefill and 1.45x for decoding (B200 vs FlashMLA); FlashInfer MegaMoE achieves a prefill throughput of up to +11.9% under NVFP4 TP4/DP4
  • AMD ROCm: Large memory copies are now transferred in stages, GLM-5.2 TP4 loading time on 4x MI355X drops from 505.7 s to 40.4 s; ROCm 10 becomes the default channel
  • Intel XPU: Each official version publishes lmsysorg/sglang:vX.Y.Z-xpu versioned image
  • DSpark supports PD separation + decoding context parallel (DCP) combined deployment, which has been verified on 8x B300 with an input of 256K

6. Scheduling and Runtime Improvements

  • Introduces the HRRN scheduling policy (--schedule-policy hrrn): Average TTFT decreases by 69% and p99 decreases by 8% on GLM-5.2 production trajectory
  • Adopts Gumbel-max technique to reduce CPU scheduling overhead: Qwen3.5-2B single batch decoding increases by +75%
  • LoRA supports full and partial prefill CUDA graph: prefill throughput on GB300 increases by +39.5~40.9%
  • Rust router introduces bucket-aware strategy domain and native cache indexing: TTFT p50 decreases by 18.5% compared to two-power routing
  • /v1/responses storage is set to default disabled (requires explicit enabling with --enable-response-store), PD deployment cannot be enabled

Breaking Changes (Read Before Upgrade)

  • CUDA 12 Channel Retirement: No longer publishes -cu129/-cu12 wheels and images; v0.5.19 is the last version that supports CUDA 12
  • Prefill Context Parallel v1 Removal: Strategic implementation becomes the only path; CP API changes to be versionless named; prefill CP for HIP/NPU/MUSA platforms are temporarily rejected
  • Removal of outdated components: cutlass_mla attention backend, non-Marlin GPTQ quantization, AWQ AOT quantization kernel, Dual Chunk Flash Attention have all been removed; GPTQ checkpoints continue to use gptq_marlin
  • 17 deprecated CLI flags have been removed: get_global_server_args is now an exception; configuration layer migrated to msgspec.Struct
  • ROCm 10 becomes the default AMD channel; ROCm 7.0 CI and images are retired; CPU image upgraded to Ubuntu 26.04 (GCC 15.2)
  • Python formatting migrates from black to ruff-format (contributors need to pay attention)

About SGLang

SGLang is an open-source high-performance LLM and multimodal model service framework, hosted by LMSYS, that can be deployed from single GPU to large-scale distributed clusters. Key features include RadixAttention prefix cache, zero-overhead CPU scheduler, PD separation deployment, speculative decoding, structured output, and FP4/FP8/INT4 quantization, compatible with OpenAI API and most Hugging Face models. It is also the RL training rollout backend for many cutting-edge models, which are adopted

More News

Want to see more quality content?

Browse all news