SGLang
sglang.io
- Free plan
- macOS
- Linux
- API
- Self-hosted
What SGLang is
SGLang is a free, open-source inference framework for serving large language, vision-language, and diffusion models. It targets agentic workloads, reinforcement-learning rollouts, and large-scale serving, from one GPU to distributed clusters. Runtime features include RadixAttention, prefix caching, and multi-GPU parallelism. Listed optimizations include disaggregated prefill and decode, speculative decoding, a zero-overhead scheduler, and optimized GPU kernels. Supported models include DeepSeek, Qwen, GPT-OSS, Llama, Mistral, and GLM. SGLang works with Hugging Face and OpenAI APIs and provides OpenAI-compatible endpoints for a launched model server. Installation is available through pip or Docker, with self-hosted deployment. Hardware support spans NVIDIA and AMD GPUs, Google TPUs, Intel GPUs and CPUs, Apple Silicon, Huawei Ascend NPUs, and Moore Threads GPUs. SGLang Diffusion provides image and video generation in the repository and Python package. Integrations include Ray Serve, NVIDIA Dynamo, llm-d, and reinforcement-learning frameworks. The project uses the Apache-2.0 license.
Who it suits
SGLang suits developers and teams deploying inference themselves across supported accelerators. It is relevant to model serving, agentic applications, reinforcement-learning rollouts, and diffusion workloads.
Good to know, and what to watch
- Free Apache-2.0 open-source framework
- OpenAI-compatible model-server endpoints
- Supports many model families and accelerators
- Pip and Docker installation
- Includes image and video diffusion engine
- Prefill context parallelism unavailable on several platforms
- No fallback routing
- No virtual API keys
- Self-hosted deployment requires infrastructure
Plans
Every plan and priceSGLang
Free plan
The verdict
SGLang offers a broad, self-hosted serving stack with caching, parallelism, API compatibility, and hardware support. The project is free, but platform-specific limitations and infrastructure responsibilities matter when planning deployment.
What the maker publishes
- API
- SGLang provides standard OpenAI-compatible endpoints for querying a launched model server. source
- API compatibility
- SGLang is compatible with Hugging Face and OpenAI APIs, and its site describes OpenAI-compatible endpoints. source
- Caching
- The project describes hierarchical KV caching across GPU memory, host memory, and external storage through ecosystem projects including HiCache, Mooncake, and LMCache. source
- Community support
- The documentation directs technical questions and development discussions to the SGLang Slack community. source
- Diffusion
- SGLang Diffusion is a built-in image and video generation engine included in the repository and Python package. source
- Ecosystem integrations
- The project lists integrations with the RL frameworks Miles, slime, AReaL, Tunix, and verl for rollout generation. source
- Hardware
- The project lists support for NVIDIA and AMD GPUs, Google TPUs, Intel GPUs and CPUs, Apple Silicon, Huawei Ascend NPUs, and Moore Threads GPUs. source
- Hardware support
- The project README lists NVIDIA and AMD GPUs, Google TPUs, Intel GPUs and CPUs, Apple Silicon, Huawei Ascend NPUs, and Moore Threads GPUs. source
- Install
- Users can install SGLang with pip or run it from a Docker image. source
- Installation
- The project can be installed with Python tooling or run from a Docker image. source
- Integrations
- The README lists deployment and orchestration integrations including Ray Serve, NVIDIA Dynamo, and llm-d. source
- License
- The GitHub repository identifies the project license as Apache-2.0. source
- Model support
- The product site lists support for DeepSeek, Qwen, GPT-OSS, Llama, Mistral, and GLM models. source
- Notable limitation
- The October 2, 2026 release notes state that prefill context parallelism is unavailable on HIP, NPU, and MUSA until those platforms are ported. source
- Optimizations
- The product site lists disaggregated prefill and decode, speculative decoding, parallelism, a zero-overhead scheduler, and optimized GPU kernels. source
- Performance
- SGLang is designed for low-latency, high-throughput inference from a single GPU to distributed clusters. source
- Performance
- The maker describes production inference from a single GPU to distributed clusters, targeting low latency and high throughput. source
- Purpose
- SGLang is an open-source inference framework for serving large language, vision-language, and diffusion models. source
- Runtime features
- Its runtime includes RadixAttention, prefix caching, and multi-GPU parallelism. source
- Security
- The repository identifies its license as Apache-2.0. source
- Support
- The project points users to GitHub issues, Slack, Discord, and community discussions for questions and help. source
- Use cases
- The framework is optimized for agentic workloads, reinforcement-learning rollouts, and large-scale serving. source
Checked against the maker's pages on 8 Oct 2026.