# SGLang v0.5.20 - Release & Upgrade Intelligence
- **Product:** SGLang (https://sgl-project.ai)
- **Version:** v0.5.20
- **Released:** Sep 18, 2026
- **Impact Score:** 10/10
- **Breaking Changes:** Source flagged
- **Canonical Analysis:** https://changelogs.us/sglang/updates/v0.5.20/

## Executive Summary (TL;DR)
SGLang v0.5.20 introduces major new model architectures (including DeepSeek-V4 and GLM-5.3-Flash), a unified radix tree, sampling masks for RL rollouts, and essential hardware integrations for Blackwell, Intel XPU, and ROCm 10. It also brings sweeping breaking changes, including the retirement of the CUDA 12 lane, removal of prefill CP v1, and a shift to `msgspec.Struct` for configuration handling.

## Breaking Changes & Deprecations
- Full release notes by category below; breaking changes are at the end.*
- [AMD] Fix ROCm VAE Conv2D fast path breaking spatial-parallel decode: [#34424](https://github.com/sgl-project/sglang/pull/34424)
- Breaking Changes & Upgrade Notes * **The CUDA 12 lane is retired.** No `-cu129` / `-cu12` wheels or images are published from this release on; already-published tags are unaffected, and v0.5.19 is the last release with a CUDA 12 lane: [#38404](https://github.com/sgl-project/sglang/pull/38404)

## New Features
- Sampling masks for RL rollouts via `return_sampling_mask` and `--sampling-mask-max-tokens`
- Unified radix tree with branching-point caching for SWA and opt-in external memory pooling via Mooncake or UMBP
- SGLang Simulator for running scheduler, radix cache, and cache studies without GPUs
- Native support for new models including GLM-5.3-Flash, Hy4-Preview, Qwen3.8-Flash-Next, K2 Horizon, Nanbeige4.2, SenseNova-U1.5-8B-MoT, and MiniMax-H3 variants
- Official Intel XPU release images published as `lmsysorg/sglang:vX.Y.Z-xpu`

## Improvements
- DeepSeek-V4 support on Blackwell (SM100/103) via TRT-LLM attention kernels and FlashInfer MegaMoE
- DeepSeek-V4 optimizations on RTX PRO 6000 utilizing DeepGEMM paged-MQA and FP4 MoE backends
- Faster model loading on ROCm by staging pageable host-to-device copies
- DSpark support under Pipeline Parallelism with decode context parallelism

## Bug Fixes
- Fixed MegaMoE buffer allocation and caching for effective SM budgets
- Fixed Paged sparse-decode gather memory safety issues in QSA
- Fixed DSpark CUDA graph replay with MegaMoE TP attention

## Upgrade Command
```bash
python -m pip install 'sglang==0.5.20'
```
