SGLang review
SGLang is an open-source inference and serving framework for large language, vision-language, and diffusion models, with OpenAI-compatible endpoints.
TL;DR
SGLang is an open-source framework for serving large language, vision-language, and diffusion models. It targets agentic workloads, large-scale serving, and RL rollouts. It runs on NVIDIA, AMD, TPU, Intel, Apple Silicon, and Ascend hardware, and includes optimizations such as disaggregated prefill/decode and speculative decoding.
- 38.3kGitHub stars
- +372new stars, week of Oct 25
- 336.7kdownloads a week, −18% vs 4-week avg
- #23in Inference and training this week
SGLang at a glance
- Category
- Inference and training
- Maintained by
- sgl-project (organization, @sgl-project on GitHub)
- License
- Apache 2.0
- Language
- Python, Rust, Cuda
- Repository
- github.com/sgl-project/sglang
- Website
- sglang.io
- PyPI package
- sglang 0.5.22
- Latest release
- v0.5.22 on GitHub, Oct 19, 2026
- First published
- Jan 8, 2024
What SGLang does
- SGLang serves large language, vision-language, and diffusion models for text, multimodal understanding, and image and video generation.
- SGLang exposes standard OpenAI-compatible API endpoints for querying a launched model.
- SGLang includes SGLang Diffusion, a built-in image and video generation engine shipped in the sglang Python package.
- SGLang includes disaggregated prefill/decode, speculative decoding, parallelisms, a zero-overhead scheduler, and optimized GPU kernels.
- SGLang scales from a single accelerator to distributed clusters for large-scale deployments.
- SGLang integrates with RL and post-training frameworks such as verl, slime, AReaL, Miles, and Tunix for rollout generation.
- SGLang supports reasoning and tool-call serving, and LoRA on quantized weights for some models.
How it works
SGLang is installed with pip or uv, or pulled as a Docker image. You launch a server with one command that points to your model, then query it through OpenAI-compatible endpoints. The Cookbook gives ready-to-run launch commands per model and hardware. SGLang can be deployed and scaled with tools like Ray Serve, NVIDIA Dynamo, llm-d, SMG, and RBG.
How to install and start using SGLang
With Docker
docker pull lmsysorg/sglang:latestWith uv
uv pip install --prerelease=allow sglangRequirements
- Python 3.11 or newer for the PyPI package.
- A supported accelerator or CPU, such as NVIDIA, AMD, Google TPU, Intel, Apple Silicon, Huawei Ascend, or Moore Threads hardware.
First steps
- Install SGLang with uv in an activated Python environment, or pull the Docker image.
- Use the Cookbook to choose your model and hardware and get a ready-to-run launch command.
- Launch the server with a single command pointing to your model.
- Send requests to the model using standard OpenAI-compatible endpoints.
Who SGLang is for
- Teams running large-scale production LLM or multimodal serving across GPUs or clusters.
- RL and post-training pipelines that need fast rollout generation.
- Developers building agentic workloads that need OpenAI-compatible model endpoints.
- Teams serving image and video diffusion models alongside language models.
Limitations to know
- SGLang support for AWS Trainium, Cambricon MLU, Qualcomm QAIC, and several other accelerators is still in progress.
- SGLang on Google TPU uses separate projects, SGLang-TorchTPU or SGL-JAX, rather than the main package alone.
- SGLang audio serving for TTS and ASR lives in a separate project, SGLang Omni.
- SGLang model compatibility varies by hardware, so you should check the Cookbook and platform guides first.
Is SGLang growing? Usage data
In the week of Oct 25–31, 2026, SGLang ranked #223 on the Devtoolwatch Board and #23 in Inference and training, with a momentum score of 41 out of 100. Its main package had 336.7k downloads that week, −18% against its own 4-week average.
Show the weekly numbers
| Week of | New stars |
|---|---|
| Aug 9, 2026 | 371 |
| Aug 16, 2026 | 410 |
| Aug 23, 2026 | 531 |
| Aug 30, 2026 | 2.7k |
| Sep 6, 2026 | 397 |
| Sep 13, 2026 | 350 |
| Sep 20, 2026 | 298 |
| Sep 27, 2026 | 322 |
| Oct 4, 2026 | 237 |
| Oct 11, 2026 | 308 |
| Oct 18, 2026 | 856 |
| Oct 25, 2026 | 372 |
The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.
SGLang alternatives
Other LLM inference and training tools on the Board in the week of Oct 25–31, 2026, by momentum:
| Rank | Tool | Stars | Downloads/wk |
|---|---|---|---|
| #1 | dsh-our-free-modeldsh-our-free-model is a dsh plugin that provides DeepSeek V4.1 Flash, Kimi K3 and other models without login, sign-up or API key. | 54.3k | – |
| #2 | magpiemagpie is a local gateway and app that lets coding agents like Claude Code, Codex and Gemini CLI use any provider's model. | 26.9k | – |
| #3 | StrataStrata is a local inference engine and app that runs large open models like Qwen3.8-Flash-Next on consumer hardware with… | 37.1k | – |
| #4 | edge0edge0 is an open-source streaming inference framework that runs large sparse mixture-of-experts models on consumer hardware by streaming… | 8.9k | – |
| #5 | OmniRouteOmniRoute is an open-source AI gateway that routes requests across many model providers through one OpenAI-compatible endpoint, with… | 83.2k | 106k |
| #6 | CLIProxyAPICLIProxyAPI is a Go proxy server that exposes CLI coding accounts like Codex, Claude Code and Gemini CLI through OpenAI, Gemini and… | 57.1k | – |
Recent SGLang releases
SGLang FAQ
Is SGLang free and open source?
Yes. SGLang's source code is on GitHub (sgl-project/sglang) under the Apache 2.0 license, so you can use it for free.
How do I install SGLang?
Run docker pull lmsysorg/sglang:latest. The sglang package needs Python 3.11 or newer. The install section above has the other options from the project's README.
Is SGLang still maintained?
Yes. The sgl-project/sglang repository was last updated on Oct 25, 2026, and the latest release, v0.5.22 on GitHub, came out on Oct 19, 2026.
How popular is SGLang?
SGLang has 38.3k GitHub stars as of Nov 1, 2026. It gained 372 new stars in the week of Oct 25–31, 2026, against a 12-week average of 592 a week. Its main package had 336.7k downloads that week, −18% against its own 4-week average. That made it #23 among LLM inference and training tools on the Devtoolwatch Board.
SGLang vs vLLM: how do they compare?
SGLang and vLLM are both tracked by Devtoolwatch as LLM inference and training tools. SGLang has 38.3k GitHub stars and vLLM has 96k. In the week of Oct 25–31, 2026, SGLang's main package had 336.7k downloads and vLLM's had 677.2k. vLLM is an open-source Python library and engine for high-throughput, memory-efficient inference and serving of large language models. vLLM review.
SGLang vs Ollama: how do they compare?
SGLang and Ollama are both tracked by Devtoolwatch as LLM inference and training tools. SGLang has 38.3k GitHub stars and Ollama has 185.5k. In the week of Oct 25–31, 2026, SGLang's main package had 336.7k downloads and Ollama's had 4M. Ollama is a tool for running and building with open AI models locally or in the cloud on macOS, Windows, and Linux. Ollama review.
What are the best alternatives to SGLang?
Other LLM inference and training tools on the Devtoolwatch Board in the week of Oct 25–31, 2026, by momentum: dsh-our-free-model (#1), magpie (#2), Strata (#3), edge0 (#4), OmniRoute (#5). The alternatives table above has their numbers.
Is SGLang open source?
Yes. SGLang is an open-source inference framework released under the Apache-2.0 license. It is hosted by LMSYS, a non-profit open-source organization.
What hardware does SGLang run on?
SGLang runs on NVIDIA GPUs, AMD Instinct GPUs, Google TPUs, Intel GPUs and Xeon CPUs, Apple Silicon Macs via Metal/MLX, Huawei Ascend NPUs, and Moore Threads GPUs. NVIDIA support includes DGX Spark and Jetson Orin.
Does SGLang provide an OpenAI-compatible API?
Yes. SGLang lets you launch a server pointing to your model and query it through standard OpenAI-compatible endpoints.
Can SGLang generate images and video?
Yes. SGLang includes SGLang Diffusion, a built-in image and video generation engine in the same repository and sglang Python package.
Can SGLang run on a Mac?
Yes. SGLang supports Apple Silicon Macs through Metal and MLX.
Sources
SGLang README badge
Maintainers can show the tool's weekly Board rank in their README:
[](https://index.devtoolwatch.com/tools/sglang/)How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].