Skip to content
AI Skills Central

Type to search Agent Skills, workflows, tutorials, tools and the glossary.

SGLang

High-performance serving engine for LLMs and multimodal models with fast prefix caching.

Checked
Visit docs.sglang.io(opens in a new tab)
Bookmark

Bookmarks are kept in your free account, so you can find this page again on any device.

Sign in to bookmark

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

    Cheat sheetIntermediate

  • vLLM

    High-throughput inference and serving engine for LLMs with an OpenAI-compatible server.

    Open source

  • DeepSeek

    Chat app and API for DeepSeek's open-weight models.

    Usage-basedDeepSeek

  • LLM

    CLI and Python library for prompting many models.

    Open sourceSimon Willison

  • MLX LM

    Runs and fine-tunes LLMs on Apple silicon with MLX.

    Open source

  • Outlines

    Python library for structured LLM outputs via constrained decoding.

    Open source.txt

  • Together AI

    Cloud for running and fine-tuning open models, with serverless endpoints and GPUs.

    Usage-basedTogether AI

All Models and local inference