AI/TLDR

SGLang

Fast serving for LLMs and multimodal models with prefix-cache reuse

Serving & DeploymentOpen source
Latest
v0.5.19
Updated
5 Sep 2026
Language
Python
License
Apache-2.0
Coverage
8 stories
$pip install --upgrade pip

What's new

v0.5.195 Sep 2026

SGLang v0.5.19 adds beam search: pass beam_width and the server returns the n best sequences instead of one sample. The release lands 786 pull requests from 214 contributors, makes the unified radix tree the prefix cache for every model, and adds a Lean attention kernel that raises MI355X throughput by up to 1.52x.

Latest news

all 8 ↓

Overview

SGLang is a serving framework for large language models and multimodal models. It runs your model behind an HTTP server and answers requests through an OpenAI-compatible API, so existing clients can talk to it with little change. It is built to give low-latency, high-throughput inference from a single GPU up to large distributed clusters.

Its main idea is to reuse work across requests. RadixAttention caches shared prompt prefixes, so when many requests start with the same system prompt or few-shot examples, the engine does not recompute that part each time. Combined with continuous batching and a low-overhead scheduler, this raises the number of tokens a server can produce per second.

It fits the high-throughput serving category alongside engines you put in front of a model in production. It supports a wide range of language models (Llama, Qwen, DeepSeek, GLM, Gemma, Mistral and more), embedding models, reward models, and diffusion models, and offers quantization, tensor and pipeline parallelism, structured outputs, and multi-LoRA batching.

What it does

  • RadixAttention prefix caching reuses shared prompt prefixes across requests to cut repeated computation
  • OpenAI-compatible HTTP server, so existing OpenAI client code can point at your local endpoint
  • Continuous batching, paged attention, chunked prefill, and a zero-overhead CPU scheduler for higher throughput
  • Tensor, pipeline, expert, and data parallelism to scale from one GPU to multi-GPU clusters
  • Quantization support (FP8, FP4, INT4, AWQ, GPTQ) plus multi-LoRA batching
  • Broad model coverage: language, embedding, reward, and diffusion models including Llama, Qwen, DeepSeek, GLM, Gemma, and Mistral

Getting started

Install SGLang, launch a server for a model, then send requests to its OpenAI-compatible endpoint on port 30000.

Install SGLang

The docs recommend installing with uv for a faster setup.

bashbash
pip install --upgrade pip
pip install uv
uv pip install sglang

Launch the server

Start the server with a model path. By default it listens on port 30000.

bashbash
python3 -m sglang.launch_server --model-path qwen/qwen2.5-0.5b-instruct \
  --host 0.0.0.0 --log-level warning

Send a request

Query the OpenAI-compatible chat endpoint with curl. The base URL is http://localhost:30000/v1.

bashbash
curl -s http://localhost:30000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model": "qwen/qwen2.5-0.5b-instruct", "messages": [{"role": "user", "content": "What is the capital of France?"}]}'

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Serve an open model behind an OpenAI-compatible API so existing app code works without rewriting client calls
  • Run chat or agent workloads where many requests share a long system prompt, letting prefix caching skip repeated work
  • Scale inference across multiple GPUs with tensor or pipeline parallelism for large models like DeepSeek or Qwen
  • Serve multiple LoRA adapters in one batch, or run quantized models to fit larger workloads on limited GPU memory

Version history

Every verified update to SGLang that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.

  1. 2026-09-05v0.5.19

    SGLang v0.5.19 adds beam search: pass beam_width and the server returns the n best sequences instead of one sample. The release lands 786 pull requests from 214 contributors, makes the unified radix tree the prefix cache for every model, and adds a Lean attention kernel that raises MI355X throughput by up to 1.52x.

  2. 2026-08-22v0.5.18

    SGLang v0.5.18 stages model weights from storage while CUDA graphs capture, cutting a Qwen3-32B cold start on an H100 from 84.8 to 35.6 seconds, and adds serving support for seven new model families.

SGLang in the news

  1. 2026-09-08MAJORMiles v0.1 — RadixArk publishes the technical report for its open RL stack
  2. 2026-09-05MAJORSGLang v0.5.19 — beam search arrives, plus 786 merged pull requests
  3. 2026-08-31MAJORDeepSeek-V4-Flash-Vision-Exp weights go public — 305B multimodal MoE under MIT
  4. 2026-08-28MAJORGLM-5.3 weights go public — Z.ai's 753B coding model lands on Hugging Face
  5. 2026-08-25MAJORPrime Intellect finds an offline sandbox escape — the inference API is the hole
  6. 2026-08-24NOTABLEBoyd Kane — a model could escape by attacking the engine that runs it
  7. 2026-08-22MAJORSGLang v0.5.18 — cold starts get 2.38x faster, seven model families land
  8. 2026-08-20NOTABLELFM2.5-DSpark — Liquid AI's draft models decode up to 3.18x faster

From the AI/TLDR release feed — every item is source-verified when it ships.

How SGLang compares

SGLang alongside other open-source serving & deployment tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
Transformers★ 166kHugging Face Transformers is a Python framework that defines and runs state-of-the-art pretrained models for text, vision, audio, and multimodal tasks, for both inference and training.
vLLM★ 92.1kA high-throughput LLM serving engine that uses PagedAttention and continuous batching to serve many requests at once.
SGLang★ 36.1kFast serving for LLMs and multimodal models with prefix-cache reuse
Modular Platform★ 29.8kModular's AI platform: the MAX inference framework with an OpenAI-compatible serving endpoint and GPU kernel library, plus the Mojo language and compiler.
TensorRT-LLM★ 14.7kNVIDIA's library that compiles LLMs into optimized engines for the fastest inference on its data-center GPUs.
OpenLLM★ 12.5kA tool to run any open-source LLM as an OpenAI-compatible API endpoint locally or in the cloud.
LMCache★ 11.9kA KV-cache layer that stores and shares cached attention state across engines and requests to cut repeated computation.
NVIDIA Triton Inference Server★ 11kA multi-framework model server that runs TensorRT, PyTorch, ONNX, and other models with dynamic batching and concurrent execution.