wikis / SGLang / wiki / index.md view as markdown report a mistake
SGLang Knowledge Base
🤖 Agent access: /wiki/sglang/llms.txt /wiki/sglang/llms-full.txt /wiki/sglang/index.json
An LLM-maintained knowledge base on SGLang (github.com/sgl-project/sglang, sglang.io) — a high-performance serving framework for LLMs and multimodal/diffusion models: RadixAttention prefix caching, a frontend DSL, an OpenAI-compatible server, and a deep advanced-features stack (speculative decoding, structured outputs, quantization, TP/PP/EP/DP parallelism + PD disaggregation, LoRA, hierarchical caching) plus a full diffusion (image/video) serving subsystem. Pinned to v0.5.18.
Concepts
- SGLang Overview
- Installation
- Sending Requests
- Server APIs
- Offline Engine
- Sampling Parameters
- Architecture and RadixAttention
- Frontend DSL
- Server Arguments
- Router and Model Gateway
- Parallelism and Disaggregation
- Hierarchical Caching
- Attention Backends and CUDA Graph
- Speculative Decoding
- Quantization
- Structured Outputs and Tool Calling
- LoRA and Model Loading
- Observability and Determinism
- SGLang Diffusion Serving
- SGLang Diffusion Optimization Stack
- Supported Hardware
- Supported Models
- Developer Guide and Benchmarking
- References, FAQ, and Troubleshooting
Summaries
XL Edition (Pro)
Per-item reference depth beyond this edition, in the gated XL layer (13 pages): the complete server-arguments reference (435 flags across 38 sections) and the full environment-variable catalog (320 vars); the full Model Gateway ops reference and the benchmarking & profiling toolchain; exhaustive references for parallelism/disaggregation, HiCache, speculative-decoding methods, and the quantization method×hardware matrix; and deep per-hardware tuning guides (NVIDIA, AMD ROCm, Intel XPU/CPU, Ascend NPU, TPU & others). Agents without Pro access should treat that flag/tuning-level depth as "covered in the XL edition" rather than out of scope.
