SGLang
High-performance serving engine for LLMs and multimodal models with fast prefix caching.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
SGLang is an inference server for running open models at scale. Its RadixAttention cache reuses the KV cache for shared prompt prefixes, which helps agent and chat workloads that resend the same system prompt and history, and it supports speculative decoding, structured output and multi-GPU parallelism. It runs on NVIDIA and AMD GPUs and several other accelerators, ships as a Docker image or Python package, and exposes an OpenAI-compatible API.
Best for
Serving open models on your own GPUs at high concurrency.
Skills it helps with
Learn SGLang by doing
- Local model servers cheat sheet
Start commands, default ports and OpenAI-compatible base URLs for Ollama, LM Studio, llama.cpp, MLX LM, vLLM and SGLang, checked against each project's docs.
Related tools
vLLM
High-throughput inference and serving engine for LLMs with an OpenAI-compatible server.
DeepSeek
Chat app and API for DeepSeek's open-weight models.
LLM
CLI and Python library for prompting many models.
MLX LM
Runs and fine-tunes LLMs on Apple silicon with MLX.
Outlines
Python library for structured LLM outputs via constrained decoding.
Together AI
Cloud for running and fine-tuning open models, with serverless endpoints and GPUs.