# SGLang

> Fast inference for LLMs and multimodal models

Source: https://talira.ai/catalog/sglang-wv3z63s3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Infrastructure, Command-line tool, API
- Categories: [ai / inference / engines](https://talira.ai/categories/ai/inference/engines), [ai / inference / servers](https://talira.ai/categories/ai/inference/servers)
- Platforms: linux, docker[^3]
- Licence: Apache-2.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^3]
- API: yes[^4]
- Backed by: [LMSYS](https://talira.ai/orgs/lmsys.md)

SGLang is an open source serving framework for large language, vision-language and diffusion models, built for low-latency, high-throughput inference, large-scale serving, agentic workloads and reinforcement learning rollouts. Its RadixAttention reuses the KV cache of shared prompt prefixes across requests, and it adds a zero-overhead scheduler, prefill-decode disaggregation, speculative decoding, tensor and expert parallelism, FP8 and FP4 quantization and LoRA serving behind an OpenAI-compatible API. It runs on NVIDIA and AMD GPUs, Google TPUs, Intel GPUs and Xeon CPUs, Huawei Ascend NPUs, Moore Threads GPUs and Apple silicon, and ships as the `sglang` Python package and the lmsysorg/sglang [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) image. The project is hosted by LMSYS, a non-profit, under Apache-2.0, and RL training frameworks such as verl, slime and AReaL use it to generate rollouts.

## Links

- Website: https://www.sglang.io/
- GitHub: https://github.com/sgl-project/sglang
- Docs: https://docs.sglang.io/

## Problems it solves

- serve an open-weight LLM on our own GPUs with low latency and high throughput
- reuse the KV cache across chat turns and agent steps that share a long prompt prefix
- an OpenAI-compatible endpoint for self-hosted DeepSeek, Qwen or Llama models
- split prefill and decode onto different GPU pools to serve a big model at scale
- serve a large mixture-of-experts model across many GPUs with expert parallelism
- generate rollouts fast for reinforcement learning training of an LLM
- speed up decoding with speculative decoding and a draft model on our inference server
- serve FP8 or FP4 quantized models to fit a bigger model on fewer GPUs
- serve many LoRA adapters from one self-hosted model deployment
- run LLM inference on AMD Instinct GPUs or Google TPUs instead of NVIDIA
- serve image and video generation models from the same engine as our LLMs
- a faster alternative to vLLM for multi-turn agent workloads
- move our LLM serving off Hugging Face's Text Generation Inference (TGI), now in maintenance mode, to an engine still being developed

## Features

- RadixAttention and prefix caching across requests
- zero-overhead scheduler and optimized GPU kernels
- prefill-decode (PD) disaggregation
- speculative decoding (EAGLE, MTP)
- tensor, data and expert parallelism across GPUs
- quantization including FP8, MXFP4 and NVFP4
- LoRA serving, including on quantized MoE models
- OpenAI-compatible API, compatible with Hugging Face models
- HiCache hierarchical KV cache offloading
- SGLang Diffusion: image, video, audio and action generation in the same package
- NVIDIA, AMD, Google TPU, Intel GPU and Xeon CPU, Huawei Ascend, Moore Threads and Apple silicon support
- official Docker image lmsysorg/sglang

## Capabilities

- Has an API: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by LMSYS
- used by NVIDIA, Cloudflare, Palo Alto Networks, Cerebras

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md): A high-throughput and memory-efficient inference and serving engine for LLMs
- [TensorRT-LLM](https://talira.ai/catalog/tensorrt-llm-343p07g7.md): Optimized LLM and visual generation inference on NVIDIA GPUs
- [llama.cpp](https://talira.ai/catalog/llama-cpp-g0rydd64.md): LLM inference in C/C++
- [NVIDIA Dynamo-Triton](https://talira.ai/catalog/nvidia-dynamo-triton-fng441hm.md): Open source inference serving software that deploys AI models from any major framework

## Sources

[^1]: https://github.com/sgl-project/sglang/blob/main/LICENSE (checked 20 Nov 2026)
[^2]: https://pypi.org/project/sglang/ (checked 20 Nov 2026)
[^3]: https://github.com/sgl-project/sglang (checked 20 Nov 2026)
[^4]: https://docs.sglang.io/ (checked 20 Nov 2026)
