SGLang
A self-hosted AI inference framework serves language, vision-language and diffusion models, with OpenAI API compatibility and broad hardware support.

SGLang is a self-hosted inference framework for teams serving AI models to applications. It supports production workloads on a single GPU or across distributed clusters, including AI agents and reinforcement learning rollouts.
- Language and vision models: Serve models from families including Llama, Qwen and DeepSeek, with Hugging Face compatibility and an OpenAI-compatible API.
- Image and video generation: The included SGLang Diffusion engine runs diffusion models through the same project and Python package.
- Shared request processing: Prefix caching reuses work across requests with common text, while multi-GPU parallelism supports larger deployments.
- Application responses: Stream replies, request tool calls and process multiple prompts through the serving framework.
SGLang is open source under the Apache 2.0 license and is available for Python or Docker deployments on your own hardware. Supported platforms include NVIDIA and AMD GPUs, Intel GPUs and Xeon CPUs, Google TPUs, Huawei Ascend NPUs and Moore Threads accelerators. Apple Silicon Macs are supported through Metal and MLX. Model compatibility depends on the hardware platform.