talira

Fast inference for LLMs and multimodal models

open sourceApache-2.0self-hostablefree

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 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.

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
View 2 more
  • 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 APIplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what SGLang does.

  1. vLLM A high-throughput and memory-efficient inference and serving engine for LLMs
  2. TensorRT-LLM Optimized LLM and visual generation inference on NVIDIA GPUs
  3. llama.cpp LLM inference in C/C++
  4. NVIDIA Dynamo-Triton Open source inference serving software that deploys AI models from any major framework

Compare SGLang with the top 3