sglang 0.5.23


pip install sglang

  Latest version

Released: Oct 30, 2026


Meta
Requires Python: >=3.11

Classifiers

Programming Language
  • Python :: 3

License
  • OSI Approved :: Apache Software License

SGLang: Fast inference for LLMs and multimodal models

SGLang

PyPI version License: Apache 2.0 PyPI downloads per month

Docs | Cookbook | Website | Blog | Slack

SGLang is an open-source inference framework for large language, vision-language, and diffusion models, optimized for agentic workloads, large-scale serving, and RL rollouts. SGLang Diffusion is its built-in image and video generation engine, included in this repository and the sglang Python package.

👋 Get started below, or meet the community at SGLang Events, including meetups, developer meetings, workshops, and office hours.

SGLang Summit 2026: Meet the builders of open AI
Our flagship annual gathering · November 12–13 · San Francisco

Go deep on inference, training, and AI hardware through technical talks, live demos, and hands-on workshops. Bring your deployment challenges and meet the engineers and researchers building the stack.

Get Started

Pull the Docker image, which includes SGLang and its dependencies:

docker pull lmsysorg/sglang:latest

Alternatively, install SGLang in an activated Python environment with uv:

uv pip install --prerelease=allow sglang

Next, launch your model:

  • Quickstart: Run your first model and send a request.
  • Cookbook: Choose your model and hardware to get a ready-to-run launch command.

Supported Hardware

SGLang supports a wide range of GPUs, TPUs, NPUs, CPUs, and Apple Silicon platforms.

Platform Representative hardware
NVIDIA B200/B300/GB200/GB300; H100/H200/H800/H20; A100; RTX 30/40/50 series, RTX 6000 Ada / PRO 6000; DGX Spark, Jetson Orin
AMD Instinct MI300X, MI325X, MI350X, MI355X
Google TPU v6e, v7; SGLang-TorchTPU / SGL-JAX
Intel (GPU / CPU) Arc / Arc Pro B-Series GPUs, Xeon CPUs
Apple Silicon Macs via Metal / MLX
Huawei Ascend A2, A3, 950PR/DT NPUs
Moore Threads MTT S5000 GPUs

Integrations in progress: AWS Trainium, Alibaba T-Head PPU, Cambricon MLU, Qualcomm QAIC, MetaX, Hygon HCU/DCU, Iluvatar CoreX, and more.

SGLang-TorchTPU brings the SGLang serving engine to Google TPUs through PyTorch, torch_tpu, and Pallas kernels. It supports LLM and vision-language serving on TPU7x (Ironwood), including tensor and expert parallelism across hosts. SGL-JAX provides the JAX-based TPU serving path.

See the Cookbook and platform guides for model compatibility and setup.

SGL Ecosystem

Area Projects Purpose
Diffusion SGLang Diffusion Built into SGLang for image and video generation with diffusion models.
Audio SGLang Omni Audio model serving for text-to-speech (TTS) and automatic speech recognition (ASR).
Speculative Decoding SpecForge Train draft models for speculative decoding and deploy them with SGLang.
RL and Post-Training Miles, slime, AReaL, Tunix, verl Training frameworks that integrate SGLang for rollout generation.
Deployment and Orchestration SMG, RBG, llm-d, Ray Serve, NVIDIA Dynamo Deploy and scale SGLang inference services with routing, load balancing, and cluster orchestration.
Education Mini-SGLang, zero-to-sglang, DeepLearning.AI course Learn inference engine design and efficient text and image generation through code and hands-on courses.

Development and Contributing

Contributions are welcome, from bug fixes and documentation to model support and performance improvements.

Development setup

Start from the lmsysorg/sglang:dev Docker image, which provides development tools and most dependencies. Clone or mount your SGLang checkout inside the container, then install it in editable mode from the repository root so tests use your local Python changes:

pip install -e "python"

In an activated virtual environment, you can use uv pip install --prerelease=allow -e "python" instead. See the development guide for container setup and testing.

Contribute

  1. Fork the repository and create a branch for your changes. For larger changes, discuss your proposal in a GitHub issue or on Slack.
  2. Make your changes, run the relevant tests, and add regression coverage for fixes or new behavior. Run pre-commit run --all-files before submitting.
  3. Open a pull request describing the change and how you tested it. Include benchmarks or accuracy evaluations when relevant.

See the contributor guide for formatting, testing, and pull request instructions. Documentation contributors can start with the docs guide.

Community and Sponsorship

SGLang is hosted by LMSYS, a non-profit open-source organization.

  • Community discussions: Join Slack for technical questions and development discussions.
  • Events: Find meetups, workshops, and office hours on SGLang Events.
  • Updates: Follow X and LinkedIn for project updates, and the LMSYS Blog for release announcements and technical articles.
  • Project resources: Explore the documentation, Cookbook, roadmap, release notes, issue tracker, and contributor guide.
  • Contact Us: For enterprise adoption and deployment, technical consulting, sponsorship, or partnership inquiries, please contact sglang@lmsys.org.
  • Contributor sponsorship: Long-term active SGLang contributors are eligible for coding agent sponsorship, including Cursor, Claude Code, or OpenAI Codex. To apply, email sglang@lmsys.org with links to your key commits or pull requests.

Trusted by Industry and Research

SGLang serves production workloads across AI labs, cloud platforms, enterprises, and universities.

Organizations adopting SGLang

Acknowledgment

We learned the design and reused code from the following projects: Guidance, vLLM, LightLLM, FlashInfer, Outlines, and LMQL.

0.5.23 Oct 30, 2026
0.5.22 Oct 16, 2026
0.5.21 Oct 01, 2026
0.5.20 Sep 18, 2026
0.5.19 Sep 04, 2026
0.5.18 Aug 21, 2026
0.5.17 Aug 08, 2026
0.5.16 Jul 25, 2026
0.5.15.post1 Jul 14, 2026
0.5.15 Jul 10, 2026
0.5.14 Jun 26, 2026
0.5.13.post1 Jun 15, 2026
0.5.13 Jun 11, 2026
0.5.12.post1 May 23, 2026
0.5.12 May 16, 2026
0.5.11 May 05, 2026
0.5.10.post1 Apr 08, 2026
0.5.10 Apr 05, 2026
0.5.10rc0 Mar 27, 2026
0.5.9 Feb 23, 2026
0.5.8.post1 Feb 05, 2026
0.5.8 Jan 23, 2026
0.5.7 Jan 01, 2026
0.5.6.post2 Dec 11, 2025
0.5.6.post1 Dec 08, 2025
0.5.6 Dec 03, 2025
0.5.5.post3 Nov 17, 2025
0.5.5.post2 Nov 12, 2025
0.5.5.post1 Nov 10, 2025
0.5.5 Nov 06, 2025
0.5.4.post3 Nov 05, 2025
0.5.4.post2 Nov 01, 2025
0.5.4.post1 Oct 27, 2025
0.5.4 Oct 24, 2025
0.5.3.post3 Oct 16, 2025
0.5.3.post2 Oct 15, 2025
0.5.3.post1 Oct 09, 2025
0.5.3 Oct 06, 2025
0.5.3rc2 Oct 06, 2025
0.5.3rc0 Sep 15, 2025
0.5.2 Sep 11, 2025
0.5.2rc2 Sep 05, 2025
0.5.2rc1 Sep 02, 2025
0.5.2rc0 Sep 01, 2025
0.5.1.post3 Aug 27, 2025
0.5.1.post2 Aug 25, 2025
0.5.1.post1 Aug 24, 2025
0.5.1 Aug 23, 2025
0.5.0rc2 Aug 14, 2025
0.5.0rc1 Aug 13, 2025
0.5.0rc0 Aug 08, 2025
0.4.10.post2 Aug 03, 2025
0.4.10.post1 Aug 01, 2025
0.4.10 Jul 31, 2025
0.4.9.post6 Jul 29, 2025
0.4.9.post5 Jul 28, 2025
0.4.9.post4 Jul 26, 2025
0.4.9.post3 Jul 22, 2025
0.4.9.post2 Jul 12, 2025
0.4.9.post1 Jul 09, 2025
0.4.9 Jul 06, 2025
0.4.8.post1 Jun 26, 2025
0.4.8 Jun 24, 2025
0.4.7.post1 Jun 16, 2025
0.4.7 Jun 10, 2025
0.4.6.post5 May 24, 2025
0.4.6.post4 May 13, 2025
0.4.6.post3 May 09, 2025
0.4.6.post2 May 01, 2025
0.4.6.post1 Apr 28, 2025
0.4.6 Apr 27, 2025
0.4.5.post3 Apr 22, 2025
0.4.5.post2 Apr 20, 2025
0.4.5.post1 Apr 16, 2025
0.4.5 Apr 07, 2025
0.4.4.post4 Apr 05, 2025
0.4.4.post3 Mar 29, 2025
0.4.4.post2 Mar 27, 2025
0.4.4.post1 Mar 14, 2025
0.4.4 Mar 13, 2025
0.4.3.post4 Mar 06, 2025
0.4.3.post3 Mar 06, 2025
0.4.3.post2 Feb 17, 2025
0.4.3.post1 Feb 17, 2025
0.4.3 Feb 14, 2025
0.4.2.post4 Feb 10, 2025
0.4.2.post3 Feb 07, 2025
0.4.2.post2 Feb 05, 2025
0.4.2.post1 Jan 31, 2025
0.4.2 Jan 27, 2025
0.4.1.post7 Jan 20, 2025
0.4.1.post6 Jan 15, 2025
0.4.1.post5 Jan 11, 2025
0.4.1.post4 Jan 05, 2025
0.4.1.post3 Dec 29, 2024
0.4.1.post2 Dec 29, 2024
0.4.1.post1 Dec 27, 2024
0.4.1 Dec 25, 2024
0.4.0.post2 Dec 21, 2024
0.4.0.post1 Dec 06, 2024
0.4.0 Dec 03, 2024
0.3.6.post3 Nov 29, 2024
0.3.6.post2 Nov 27, 2024
0.3.6.post1 Nov 26, 2024
0.3.6 Nov 22, 2024
0.3.5.post2 Nov 15, 2024
0.3.5.post1 Nov 13, 2024
0.3.5 Nov 03, 2024
0.3.4.post2 Oct 25, 2024
0.3.4.post1 Oct 22, 2024
0.3.4 Oct 19, 2024
0.3.3.post1 Oct 11, 2024
0.3.3 Oct 08, 2024
0.3.2 Sep 25, 2024
0.3.1.post3 Sep 21, 2024
0.3.1.post2 Sep 19, 2024
0.3.1.post1 Sep 17, 2024
0.3.1 Sep 15, 2024
0.3.0 Sep 03, 2024
0.2.15 Sep 02, 2024
0.2.14.post2 Aug 28, 2024
0.2.14.post1 Aug 28, 2024
0.2.14 Aug 26, 2024
0.2.13 Aug 15, 2024
0.2.12 Aug 12, 2024
0.2.11 Aug 07, 2024
0.2.10 Aug 04, 2024
0.2.9.post1 Aug 02, 2024
0.2.9 Aug 02, 2024
0.2.8 Aug 01, 2024
0.2.7 Jul 30, 2024
0.2.6 Jul 28, 2024
0.2.5 Jul 26, 2024
0.2.4 Jul 26, 2024
0.2.3 Jul 26, 2024
0.2.2 Jul 26, 2024
0.2.1 Jul 26, 2024
0.2.0 Jul 25, 2024
0.1.26 Jul 25, 2024
0.1.25 Jul 25, 2024
0.1.24 Jul 24, 2024
0.1.22 Jul 20, 2024
0.1.21 Jul 15, 2024
0.1.20 Jul 14, 2024
0.1.19 Jul 09, 2024
0.1.18 Jul 04, 2024
0.1.17 Jun 08, 2024
0.1.16 May 14, 2024
0.1.15 May 12, 2024
0.1.14 Mar 22, 2024
0.1.13 Mar 11, 2024
0.1.12 Feb 11, 2024
0.1.11 Feb 03, 2024
0.1.10 Jan 30, 2024
0.1.9 Jan 24, 2024
0.1.7 Jan 21, 2024
0.1.6 Jan 21, 2024
0.1.5 Jan 18, 2024
0.1.4 Jan 16, 2024
0.1.3 Jan 16, 2024
Extras:
Dependencies:
aiohttp
anthropic (>=0.20.0)
apache-tvm-ffi (==0.1.11)
av and ( or ) (==16.1.0)
blobfile (==3.0.0)
build
compressed-tensors (==0.18.0)
cuda-python (>=13.0)
datasets
decord2 and ( or )
deepseek-recipe ( and ( or )) or (==0.2.0)
distro
easydict
einops
fastapi
flash-attn-4 (>=4.0.0b18)
flashinfer_python[cu13] (==0.7.2)
gguf
humming-kernels[cu13] (==0.1.12)
interegular
IPython
kernels (<0.15,>=0.14.1)
llguidance (<2.0.0,>=1.7.6)
mistral_common (>=1.11.5)
modelscope
msgspec
ninja
numba (==0.65.1)
numpy
nvidia-cutlass-dsl[cu13] (==4.8.0)
nvidia-mathdx (==25.6.0)
nvidia-ml-py
nvshmem4py-cu13
openai (==2.8.0)
openai-harmony (==0.0.4)
orjson
outlines (==0.1.11)
packaging
partial_json_parser
pillow
prometheus-client (>=0.20.0)
psutil
py-spy
pybase64
pydantic
python-dateutil (<3)
python-multipart
pyzmq (>=25.1.2)
quack-kernels (==0.6.5)
regex
requests
scipy
sentencepiece (==0.2.1)
setproctitle
sgl-deep-ep (==0.1.2.post1)
sgl-deep-gemm (==0.2.3.post2)
sgl-flash-mla (==1.0.0)
sglang-kernel (==0.4.10)
smg-grpc-servicer (>=0.9.0)
soundfile (==0.13.1)
tiktoken
tilelang (==0.1.12)
timm (==1.0.25)
tml-renderers ( and ( or )) or ( and ) (==0.1.0)
tokenizers (==0.23.2)
torch (==2.14.1)
torch_memory_saver (>=0.0.9.post1)
torchaudio (==2.11.0)
torchcodec or ( and ) (==0.17.0)
torchvision
tqdm
transformers (==5.19.0)
uvicorn (>=0.51)
uvloop
watchfiles
xgrammar (==0.2.7)
xxhash
zstandard