Skip to main content

SGLang is a fast serving framework for large language models and vision language models.

Project description

logo

PyPI PyPI - Downloads license issue resolution open issues Ask DeepWiki


Blog | Documentation | Roadmap | Join Slack | Weekly Dev Meeting | Slides

News

More
  • [2025/09] Deploying DeepSeek on GB200 NVL72 with PD and Large Scale EP (Part II): 3.8x Prefill, 4.8x Decode Throughput (blog).

  • [2025/09] SGLang Day 0 Support for DeepSeek-V3.2 with Sparse Attention (blog).

  • [2025/08] SGLang x AMD SF Meetup on 8/22: Hands-on GPU workshop, tech talks by AMD/xAI/SGLang, and networking (Roadmap, Large-scale EP, Highlights, AITER/MoRI, Wave).

  • [2025/11] SGLang Diffusion accelerates video and image generation (blog).

  • [2025/10] PyTorch Conference 2025 SGLang Talk (slide).

  • [2025/10] SGLang x Nvidia SF Meetup on 10/2 (recap).

  • [2025/08] SGLang provides day-0 support for OpenAI gpt-oss model (instructions)

  • [2025/06] SGLang, the high-performance serving infrastructure powering trillions of tokens daily, has been awarded the third batch of the Open Source AI Grant by a16z (a16z blog).

  • [2025/05] Deploying DeepSeek with PD Disaggregation and Large-scale Expert Parallelism on 96 H100 GPUs (blog).

  • [2025/06] Deploying DeepSeek on GB200 NVL72 with PD and Large Scale EP (Part I): 2.7x Higher Decoding Throughput (blog).

  • [2025/03] Supercharge DeepSeek-R1 Inference on AMD Instinct MI300X (AMD blog)

  • [2025/03] SGLang Joins PyTorch Ecosystem: Efficient LLM Serving Engine (PyTorch blog)

  • [2025/02] Unlock DeepSeek-R1 Inference Performance on AMD Instinct™ MI300X GPU (AMD blog)

  • [2025/01] SGLang provides day one support for DeepSeek V3/R1 models on NVIDIA and AMD GPUs with DeepSeek-specific optimizations. (instructions, AMD blog, 10+ other companies)

  • [2024/12] v0.4 Release: Zero-Overhead Batch Scheduler, Cache-Aware Load Balancer, Faster Structured Outputs (blog).

  • [2024/10] The First SGLang Online Meetup (slides).

  • [2024/09] v0.3 Release: 7x Faster DeepSeek MLA, 1.5x Faster torch.compile, Multi-Image/Video LLaVA-OneVision (blog).

  • [2024/07] v0.2 Release: Faster Llama3 Serving with SGLang Runtime (vs. TensorRT-LLM, vLLM) (blog).

  • [2024/02] SGLang enables 3x faster JSON decoding with compressed finite state machine (blog).

  • [2024/01] SGLang provides up to 5x faster inference with RadixAttention (blog).

  • [2024/01] SGLang powers the serving of the official LLaVA v1.6 release demo (usage).

About

SGLang is a high-performance serving framework for large language models and multimodal models. It is designed to deliver low-latency and high-throughput inference across a wide range of setups, from a single GPU to large distributed clusters. Its core features include:

  • Fast Runtime: Provides efficient serving with RadixAttention for prefix caching, a zero-overhead CPU scheduler, prefill-decode disaggregation, speculative decoding, continuous batching, paged attention, tensor/pipeline/expert/data parallelism, structured outputs, chunked prefill, quantization (FP4/FP8/INT4/AWQ/GPTQ), and multi-LoRA batching.
  • Broad Model Support: Supports a wide range of language models (Llama, Qwen, DeepSeek, Kimi, GLM, GPT, Gemma, Mistral, etc.), embedding models (e5-mistral, gte, mcdse), reward models (Skywork), and diffusion models (WAN, Qwen-Image), with easy extensibility for adding new models. Compatible with most Hugging Face models and OpenAI APIs.
  • Extensive Hardware Support: Runs on NVIDIA GPUs (GB200/B300/H100/A100/Spark/5090), AMD GPUs (MI355/MI300), Intel Xeon CPUs, Google TPUs, Ascend NPUs, and more.
  • Active Community: SGLang is open-source and supported by a vibrant community with widespread industry adoption, powering over 400,000 GPUs worldwide.
  • RL & Post-Training Backbone: SGLang is a proven rollout backend used for training many frontier models, with native RL integrations and adoption by well-known post-training frameworks such as AReaL, Miles, slime, Tunix, verl and more.

Getting Started

Benchmark and Performance

Learn more in the release blogs: v0.2 blog, v0.3 blog, v0.4 blog, Large-scale expert parallelism, GB200 rack-scale parallelism, GB300 long context.

Adoption and Sponsorship

SGLang has been deployed at large scale, generating trillions of tokens in production each day. It is trusted and adopted by a wide range of leading enterprises and institutions, including xAI, AMD, NVIDIA, Intel, LinkedIn, Cursor, Oracle Cloud, Google Cloud, Microsoft Azure, AWS, Atlas Cloud, Voltage Park, Nebius, DataCrunch, Novita, InnoMatrix, Modal, MIT, UCLA, the University of Washington, Stanford, UC Berkeley, Tsinghua University, Jam & Tea Studios, Baseten, and other major technology organizations. As an open-source LLM inference engine, SGLang has become the de facto industry standard, with deployments running on over 400,000 GPUs worldwide. SGLang is currently hosted under the non-profit open-source organization LMSYS.

logo

Contact Us

For enterprises interested in adopting or deploying SGLang at scale, including technical consulting, sponsorship opportunities, or partnership inquiries, please contact us at sglang@lmsys.org.

Long-term active SGLang contributors are eligible for coding agent sponsorship, such as Cursor, Claude Code, or OpenAI Codex. Email sglang@lmsys.org with your most important commits or pull requests.

Acknowledgment

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

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sglang-0.5.15-cp313-cp313-manylinux_2_34_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

sglang-0.5.15-cp313-cp313-manylinux_2_34_aarch64.whl (12.7 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

sglang-0.5.15-cp312-cp312-manylinux_2_34_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

sglang-0.5.15-cp312-cp312-manylinux_2_34_aarch64.whl (12.7 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

sglang-0.5.15-cp311-cp311-manylinux_2_34_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

sglang-0.5.15-cp311-cp311-manylinux_2_34_aarch64.whl (12.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

sglang-0.5.15-cp310-cp310-manylinux_2_34_x86_64.whl (12.8 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

sglang-0.5.15-cp310-cp310-manylinux_2_34_aarch64.whl (12.7 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

File details

Details for the file sglang-0.5.15-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cdc046eb8b9eb5f622dc0926379c52530c4de55725886620628e8785c15d8a8c
MD5 73e1026b6619f27ee72f193c2e487e15
BLAKE2b-256 337fba28955d67b57e80173f9e0d7564087c0c4df39735b0e20a86ec9fa3abe2

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 1485e80ec326ed25b67d206051ac9ab48785326d4c939c98aa5bb19cfcc2442d
MD5 09600435c9eba707db9aac92a2d7f177
BLAKE2b-256 b26e5c984befb5fbdc98fa2bf6f754b88469369a2b821812e92199942d4646ff

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b737df527bbba96fe098a02d182e98f72a1b3564d7fc754629041129a5d8edc1
MD5 21480d2e62174dce0f5828708c1e0f2b
BLAKE2b-256 b1a0b2b90dae99be9076ceaefeb99b246f241f01178d11d90c2e76d392651178

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 1c2d2602b4ba04c6a71d2f3bf2e3654da53987536f0d65dbe4f57cdc65c9812e
MD5 438e1442ae099778707ed39b277dc5bc
BLAKE2b-256 e1a1a5182c9acae2880b569e5e5116e666ef7350c49e37497a4790ff3d18beb2

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 21492759b4b99e117bd81610f633422f3fdae2896c2cde6931eab886deccc44f
MD5 7648b614fa78d31a7fb2b50c80a43725
BLAKE2b-256 edbf390e1db483dd0a7452a4d5bc45b97cb069d9d85e170ccf2a7c7ca4bae824

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 4e2968e31a0448c9c40336c651cba83cbb1e77eb058c4d4b2859ca2f7a538de6
MD5 4ce7b37061591a1f64e14ee18b6bde7d
BLAKE2b-256 a5e0085026c9841e3a3cf4e2a7d13085385d570b5dada0aae0115bc99fc793ad

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 723689937de54e7d0f1a51f6861c950bd55f4d9614ae06b7d7ffbd17375a06a7
MD5 b1ce1e7c08659425194a77267236f608
BLAKE2b-256 c8542e4988df2feee9323ded1373f43b6587609d0a305e6f04ba91d0ac785aa2

See more details on using hashes here.

File details

Details for the file sglang-0.5.15-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for sglang-0.5.15-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d58c22cfd65505f7bf62f768c8c0e6a51de33553e2e4fa65444477fff5b312f2
MD5 bfe9d575bc05e42b78dbb42de78ca31e
BLAKE2b-256 5f17b6836457df1752bdd0f5263094f201cc4bbea1220eda8015ead21bdedb1e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page