# Migration Context: SGLang v0.4 -> v0.5 # Generated by Changelogs.us: 2026-11-30T03:04:47.821653+00:00 # Target Version: v0.5.23 # Upgrade Command: N/A # Breaking Changes: 20 # Security Fixes: 0 ## Executive Summary Upgrading SGLang from 0.4 to 0.5 involves 32 releases with risk rating High. ## Breaking Changes List: - [vgateway-v0.3.0] We're thrilled to announce SGLang Model Gateway v0.3.0 - a major release with powerful new features, architectural improvements, and important breaking changes!: - [vgateway-v0.3.0] ⚠️ Breaking Changes ### 📊 Metrics Architecture Redesigned Complete overhaul with new 6-layer metrics architecture covering protocol (HTTP/gRPC), router, worker, streaming (TTFT/TPOT), circuit breaker, and policy metrics with unified error codes.: - [vgateway-v0.3.0] - [bug] fix grpc secheduler launcher breaking change (#15080) by @slin1237 in https://github.com/sgl-project/sglang/pull/15080: - [vv0.5.7] [bug] fix grpc secheduler launcher breaking change by @slin1237 in https://github.com/sgl-project/sglang/pull/15080: - [vv0.5.8] [bug] fix grpc secheduler launcher breaking change by @slin1237 in https://github.com/sgl-project/sglang/pull/15080: - [vv0.5.16] Breaking Changes & Upgrade Notes * **The experimental QServe (QoQ) W4A8 and FBGEMM FP8 quantization paths are removed** (per [#28543](https://github.com/sgl-project/sglang/issues/28543)): [#31109](https://github.com/sgl-project/sglang/pull/31109): - [vv0.5.17] Full release notes by category below; breaking changes and known issues are at the end.*: - [vv0.5.17] Breaking Changes & Upgrade Notes * **`helion` jumps 0.2.6 to 1.4**, a major-version move for anyone depending on helion-backed kernels: [#32562](https://github.com/sgl-project/sglang/pull/32562): - [vv0.5.18] One compiled-kernel cache directory**: Triton, FlashInfer, Inductor, DeepGEMM, and CUDA driver caches all move under `SGLANG_CACHE_DIR`. The first launch after upgrading recompiles once; see Breaking Changes ([#32434](https://github.com/sgl-project/sglang/pull/32434)).: - [vv0.5.18] Full release notes by category below; breaking changes and known issues are at the end.*: - [vv0.5.18] Breaking Changes & Upgrade Notes * **The CUDA PyTorch stack moves to torch 2.13.0**, with triton 3.7.1, torchvision 0.28.0, and torchcodec 0.15.0 (torchaudio stays at 2.11.0); AOT kernels are rebuilt for Torch 2.13 and the XPU backend follows: [#28836](https://github.com/sgl-project/sglang/pull/28836), [#33841](https://github.com/sgl-project/sglang/pull/33841), [#31751](https://github.com/sgl-project/sglang/pull/31751): - [vv0.5.19] Unified radix tree by default.** The unified tree is now the cache for every model, not just hybrid ones ([#35081](https://github.com/sgl-project/sglang/pull/35081), see Breaking Changes). It also picked up three things this cycle: PD decode workers can reuse cached prefixes for SWA hybrid models like gpt-oss ([#27770](https://github.com/sgl-project/sglang/pull/27770)), you can attach or detach L3 storage on a running server ([#35269](https://github.com/sgl-project/sglang/pull/35269)), and pipeline parallelism with HiCache L3 stays consistent across ranks ([#27010](https://github.com/sgl-proje: - [vv0.5.19] Full release notes by category below; breaking changes and known issues are at the end.*: - [vv0.5.19] Breaking Changes & Upgrade Notes * **The unified radix tree is now the default cache for every configuration**, including Full-attention-only models; `SGLANG_ENABLE_UNIFIED_RADIX_TREE` is deprecated and can be unset: [#35081](https://github.com/sgl-project/sglang/pull/35081): - [vv0.5.20] Full release notes by category below; breaking changes are at the end.*: - [vv0.5.20] [AMD] Fix ROCm VAE Conv2D fast path breaking spatial-parallel decode: [#34424](https://github.com/sgl-project/sglang/pull/34424): - [vv0.5.20] 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): - [vv0.5.21] Breaking Changes & Upgrade Notes * **The unified radix tree uses the Rust core by default.** Configurations the Rust core does not support fall back to Python automatically; set `SGLANG_UNIFIED_RADIX_TREE_CORE_BACKEND=python` to force the Python core everywhere: [#39627](https://github.com/sgl-project/sglang/pull/39627): - [vv0.5.22] Breaking Changes & Upgrade Notes * **SGLang requires Python 3.11 or newer.** On Python 3.10, `pip install sglang` does not fail; it resolves to the last release that supported 3.10. Move to Python 3.11+ (for example off the Ubuntu 22.04 system Python) to get this and later releases: [#43021](https://github.com/sgl-project/sglang/pull/43021): - [vv0.5.23] Breaking Changes & Upgrade Notes * **DeepSeek-V4 and V4.1 chat now follows deepseek-recipe.** Prompts, outputs and the native `/separate_reasoning` and `/parse_function_call` endpoints go through DeepSeek's official encoder, and SGLang's own `encoding_dsv4.py` / `encoding_dsv41.py` are gone. Clients may notice: streamed tool-call arguments arrive in pieces (the first chunk carries `arguments: ""`), so concatenate them as the OpenAI SDK does; tool-call ids use the official `call_00_...` format; V4 reasoning effort follows DeepSeek's official profile and the `dsv4_reasoning_effort_profile` overr: ## Instructions for AI Assistant: When migrating user code from SGLang 0.4 to 0.5, scan for the deprecated APIs and breaking changes above and refactor code to use modern vv0.5.23 idioms.