More Info
SGLang (Structured Generation Language) is a high-performance open-source inference and serving framework for large language models and multimodal models, hosted by the nonprofit organization LMSYS. It is not a model and not a chatbot; users must supply their own open-weight models (such as Llama, Qwen, DeepSeek). It provides an HTTP service compatible with OpenAI Chat Completions, so existing clients only need to change base_url to connect. Core capabilities include RadixAttention automatic prefix caching, a zero-overhead scheduler with continuous batching, compressed finite state machine constrained decoding (JSON/regex structured output), speculative decoding and ECHO, PD disaggregation with HiCache hierarchical KV caching, multi-GPU parallelism, LoRA multi-tenancy, FP8/INT4/8/AWQ/GPTQ quantization, and SGLang Diffusion image/video/audio/action generation within the same codebase. Hardware coverage includes NVIDIA, AMD, Google TPU, Intel, Apple Silicon, Huawei Ascend, Moore Threads, and others. The official claim is deployments of over 400,000 GPUs in production environments, generating trillions of tokens per day. Licensed under Apache-2.0, free to self-host, with costs limited to owned hardware and electricity.