SGLang is an open-source inference framework for large language, vision-language and diffusion models, hosted by LMSYS. It targets agent workloads, large-scale serving and RL rollouts, and integrates with RL training frameworks such as verl.
It runs on NVIDIA GPUs, AMD Instinct, Google TPU, Intel GPU and CPU, Apple Silicon and Huawei Ascend, among others. It supports speculative decoding through the SpecForge project, and the SGLang Diffusion engine generates images, video and audio.
Run it with docker pull lmsysorg/sglang:latest or install the Python package with uv pip install --prerelease=allow sglang. It is Apache-2.0 licensed and often compared with vLLM for self-hosted serving.