SGLang v0.1.20stable Released Jul 14, 2024
Impact Score: 8/10

SGLang: Release v0.1.20

Source available - automated, not human-reviewed

Component: sglang · Channel: stable. Automated analysis, not a compatibility certification. How this works.

Analysis updated: 2026-11-27.

Automated impact estimate - compatibility not verified
$ python -m pip install 'sglang==0.1.20'
📄 .MD
⚡ Executive Summary (TL;DR)

SGLang v0.1.20 enables CUDA graphs by default, delivering a 1.5x to 2x decoding speedup for small batch sizes alongside new model support for Gemma2, MiniCPM, and Qwen2 MoE. The release also adds official Docker support and exposes logprob options directly in the sgl.gen API.

Who Does This Impact? (Role-Based Analysis)

💻 Software Engineers & Devs

Take advantage of newly exposed logprob options in sgl.gen and expanded model compatibility for Gemma2, MiniCPM, and Qwen2 MoE.

📊 Product & Engineering Leads

Users gain out-of-the-box inference speedups and support for a wider array of modern open-weights architectures.

⚙️ DevOps & Security

Easier containerized deployments are now possible with the addition of official Docker support and improved P2P checking options.

✨ New Features & Capabilities (5)

  • Model support for Gemma2, MiniCPM, and Qwen2 MoE
  • Docker support
  • Expose logprob options to `sgl.gen` API
  • Add `--enable-p2p-check` option
  • Add `LogitsMetadata`

⚡ Performance & Enhancements (5)

  • Enable CUDA graph by default, bringing 1.5x - 2x speedup for small batch size decoding
  • Various latency optimizations
  • Memorypool chunked prefetch
  • Reduce number of workspaces for flashinfer
  • Compatibility with vLLM 0.5.1

🔧 Bug Fixes & Patches (4)

  • Fix Llava model
  • Fix truncated decoded output in detokenizer_manager.py
  • Fix streaming
  • Fix memory pool index error

❓ Frequently Asked Questions

Does SGLang v0.1.20 contain breaking changes?

No breaking changes are explicitly documented in this release, though internal cleanups removed deprecated prefill methods.

What is the primary highlight of v0.1.20?

Enabling CUDA graphs by default, which provides a 1.5x to 2x speedup for small batch size decoding.

How should teams prepare to upgrade to v0.1.20?

Teams should review their small batch inference workloads to benefit from the default CUDA graph acceleration and verify compatibility with vLLM 0.5.1.

📄 View Raw Release Notes (Original Developer Log)
## Highlights * Enable CUDA graph by default. It brings 1.5x - 2x speedup for small batch size decoding (#612) * Model support: Gemma2, minicpm, Qwen2 MoE * Docker support (#217 ) * Various latency optimizations ## What's Changed * Add docker file by @Ying1123 in https://github.com/sgl-project/sglang/pull/588 * Add Gemma2 by @Ying1123 in https://github.com/sgl-project/sglang/pull/592 * Format by @Ying1123 in https://github.com/sgl-project/sglang/pull/593 * Fix Llava model by @wisclmy0611 in https://github.com/sgl-project/sglang/pull/594 * * fix(detokenizer_manager.py): fix truncated decoded output by @Titan-p in https://github.com/sgl-project/sglang/pull/586 * Add `--enable-p2p-check` option by @hnyls2002 in https://github.com/sgl-project/sglang/pull/599 * Fix streaming by @hnyls2002 in https://github.com/sgl-project/sglang/pull/600 * Reduce number of workspaces for flashinfer by @wisclmy0611 in https://github.com/sgl-project/sglang/pull/601 * add `LogitsMetadata` by @hnyls2002 in https://github.com/sgl-project/sglang/pull/604 * add minicpm support by @Titan-p in https://github.com/sgl-project/sglang/pull/602 * Make sglang compat with vllm 0.5.1 by @M0gician in https://github.com/sgl-project/sglang/pull/598 * Add Qwen2 MoE support by @M0gician in https://github.com/sgl-project/sglang/pull/603 * Update chat template for qwen and yi-1.5. by @for-just-we in https://github.com/sgl-project/sglang/pull/530 * [Feat] Expose logprob options to `sgl.gen` API by @huyiwen in https://github.com/sgl-project/sglang/pull/503 * Fix bench latency by @merrymercy in https://github.com/sgl-project/sglang/pull/607 * Code clean up: Remove deprecated prefill move InputMetadata to infer_batch.py by @merrymercy in https://github.com/sgl-project/sglang/pull/609 * Clean up the usage of flashinfer by @merrymercy in https://github.com/sgl-project/sglang/pull/610 * Cleanup attention backend: flashinfer and triton by @merrymercy in https://github.com/sgl-project/sglang/pull/611 * Enable cuda graph by default by @merrymercy in https://github.com/sgl-project/sglang/pull/612 * Improve benchmark scripts & fix llava by @merrymercy in https://github.com/sgl-project/sglang/pull/613 * Memorypool chunked prefetch by @hnyls2002 in https://github.com/sgl-project/sglang/pull/614 * Improve benchmark scripts by @merrymercy in https://github.com/sgl-project/sglang/pull/615 * Fix memory pool index error by @Ying1123 in https://github.com/sgl-project/sglang/pull/616 * Bump version to 0.1.20 by @merrymercy in https://github.com/sgl-project/sglang/pull/618 ## New Contributors * @wisclmy0611 made their first contribution in https://github.com/sgl-project/sglang/pull/594 * @Titan-p made their first contribution in https://github.com/sgl-project/sglang/pull/586 * @M0gician made their first contribution in https://github.com/sgl-project/sglang/pull/598 * @for-just-we made their first contribution in https://github.com/sgl-project/sglang/pull/530 **Full Changelog**: https://github.com/sgl-project/sglang/compare/v0.1.18...v0.1.20