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

## Executive Summary (TL;DR)
SGLang v0.5.18 upgrades the CUDA PyTorch stack to 2.13.0, consolidates all compiled-kernel caches under SGLANG_CACHE_DIR, removes the torchao integration, and adds seven new autoregressive and diffusion models. It also delivers major startup, decode, and AMD MI355X performance gains alongside new quantization, speculative decoding, and security improvements.

## Breaking Changes & Deprecations
- 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)).
- Full release notes by category below; breaking changes and known issues are at the end.*
- 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)

## New Features
- Added support for Muse Glimmer, Intern-S2-Mobius, SANA-Video, LingBot-Video-MoE, LTX-2.5, Cosmos3 Edge & Distilled, and LongCat-Image, plus cookbook recipes for Qwen3.8, Ling-3.0, Nemotron 3.5 Lightning, Dots3-Note, and DeepSeek-V4-Pro-0813.
- Added AMD support for NVFP4 checkpoints via --quantization quark_mxfp4, requantizing ModelOpt and Quark NVFP4 weights to MXFP4 at load without holding a full-precision copy.
- Added ModelOpt MXFP8 checkpoint support, ModelOpt FP4 online MoE weight quantization, and NVFP4 token embedding support for ModelOpt mixed-precision checkpoints.
- Added Inkling DSpark speculative decoding support and logprobs support for both DSpark and DFlash.
- Added architecture-owned SM12x FA4 kernels, CuTe DSL BF16 GEMM on SM107, and FlashInfer CuTe DSL backends for MXFP8 GEMM and NVFP4 MoE quantization.
- Added native multimodal processing for Qwen VL in rust-server, extensible CLI serve backend plugins, and safeguards for remote media URLs.

## Improvements
- Added --startup-weight-load-mode overlap to overlap checkpoint staging with CUDA graph capture, accelerating Qwen3-32B startup on H100 by 2.38x over the default.
- Replaced TP LMHead allgather + scatter with a single all-to-all for pure-DP dp-attention, reducing DeepSeek-V4-Pro B200 decode LMHead time from 320us to 169us.
- Added FlashInfer MNNVL backend for pure allreduce (--enable-flashinfer-pure-allreduce, auto-enabled for DeepSeek-V3/V3.2/V4) for up to +6.9% Blackwell TP4 decode throughput.
- Tuned Kimi K3 on AMD MI355X with a grouped-head MLA verify kernel, 12-head AITER MLA prefill support, and opt-in gfx950 decode stage-1 geometry (SGLANG_MLA_DECODE_TUNE=1).
- Consolidated Triton, FlashInfer, Inductor, DeepGEMM, and CUDA driver caches under SGLANG_CACHE_DIR and upgraded core dependencies to torch 2.13.0, triton 3.7.1, flashinfer 0.6.17, CuTeDSL 4.6.2, and sgl-kernel 0.4.6.post1.
- Enabled MoE deferred finalize and unified-cache out-of-window SWA slot freeing by default, and added fused SwiGLU MoE up GEMM epilogue and Triton MoE TMA up support.

## Bug Fixes
- Rejected NUL bytes in grammar specs to prevent an xgrammar segfault.
- Fixed silent KV corruption in DeepSeek-V4 when speculative draft tokens exceed 4, speculative decoding crashes under DP-Attention, and two unified-memory NaN root causes for DSpark.
- Fixed DSA top-k v2 dropping non-primary ranks' output on CUDA 13.1+ and a race condition in the c128 prefill plan kernel on ragged extend.
- Fixed deterministic inference for Inkling and deterministic all-reduce for tp>1.
- Fixed Qwen3-MoE corrupted output with the mori a2a backend, GPTQ scheme attachment broken by LinearBase.scheme default, and dense FP8 Marlin bias ordering.
- Fixed a Blackwell FA4 startup regression via CuTeDSL 4.6.2 and an off-by-one bug in _pa_swa_prefill_lens in FlashAttentionBackend.

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