返回全部资讯
蚂蚁 inclusionAI 官方仓库T1·开源与评测

SGLang 开源推理框架新增扩散模型引擎

作者:inclusionAI原标题:⭐ inclusionAI/sglang_ling_v3 (3 stars)
38AI 研判分

SGLang 是面向大语言、视觉语言与扩散模型的开源推理框架,主打智能体负载、大规模服务与强化学习 rollout。此次其内置 SGLang Diffusion 引擎覆盖图像、视频、音频与动作生成,并随主仓库和 sglang Python 包一同分发。项目同时公布 2026 年 11 月在旧金山举办 SGLang Summit。

关联知识实体

报道正文

本文目录6 个章节

SGLang: Fast inference for LLMs and multimodal models

Docs | Cookbook | Website | Blog | Slack

SGLang is an open-source inference framework for large language, vision-language, and diffusion models, optimized for agentic workloads, large-scale serving, and RL rollouts. SGLang Diffusion is its built-in engine for image, video, audio, and action generation, included in this repository and the sglang Python package.

👋 Get started below, or meet the community at SGLang Events, including meetups, developer meetings, workshops, and office hours.

SGLang Summit 2026: Meet the builders of open AI<br> Our flagship annual gathering · November 12–13 · San Francisco

Go deep on inference, training, and AI hardware through technical talks, live demos, and hands-on workshops. Bring your deployment challenges and meet the engineers and researchers building the stack.

Get Started

Pull the Docker image, which includes SGLang and its dependencies:

BASH
docker pull lmsysorg/sglang:latest

Alternatively, install SGLang in an activated Python environment with uv:

BASH
uv pip install --prerelease=allow sglang

Next, launch your model:

  • Quickstart: Run your first model and send a request.
  • Cookbook: Choose your model and hardware to get a ready-to-run launch command.

Supported Hardware

SGLang supports a wide range of GPUs, TPUs, NPUs, CPUs, and Apple Silicon platforms.

PlatformRepresentative hardware
NVIDIAB200/B300/GB200/GB300; H100/H200/H800/H20; A100; RTX 30/40/50 series, RTX 6000 Ada / PRO 6000; DGX Spark, Jetson Orin
AMDInstinct MI300X, MI325X, MI350X, MI355X
Google TPUv6e, v7; SGLang-TorchTPU / SGL-JAX
Intel (GPU / CPU)Arc / Arc Pro B-Series GPUs, Xeon CPUs
Apple SiliconMacs via Metal / MLX
Huawei AscendA2, A3, 950PR/DT NPUs
Moore ThreadsMTT S5000 GPUs

Integrations in progress: AWS Trainium, Alibaba T-Head PPU, Cambricon MLU, Qualcomm QAIC, MetaX, Hygon HCU/DCU, Iluvatar CoreX, and more.

SGLang-TorchTPU brings the SGLang serving engine to Google TPUs through PyTorch, torch_tpu, and Pallas kernels. It supports LLM and vision-language serving on TPU7x (Ironwood), including tensor and expert parallelism across hosts. SGL-JAX provides the JAX-based TPU serving path.

See the Cookbook and platform guides for model compatibility and setup.

SGL Ecosystem

AreaProjectsPurpose
DiffusionSGLang DiffusionBuilt into SGLang for image, video, audio, and action generation.
AudioSGLang OmniAudio model serving for text-to-speech (TTS) and automatic speech recognition (ASR).
Speculative DecodingSpecForgeTrain draft models for speculative decoding and deploy them with SGLang.
RL and Post-TrainingMiles, slime, AReaL, Tunix, verlTraining frameworks that integrate SGLang for rollout generation.
Deployment and OrchestrationRBG, llm-d, Ray Serve, NVIDIA DynamoDeploy and scale SGLang inference services with routing, load balancing, and cluster orchestration.
EducationMini-SGLang, zero-to-sglang, DeepLearning.AI courseLearn inference engine design and efficient text and image generation through code and hands-on courses.

Development and Contributing

Contributions are welcome, from bug fixes and documentation to model support and performance improvements.

Development setup

Start from the lmsysorg/sglang:dev Docker image, which provides development tools and most dependencies. Clone or mount your SGLang checkout inside the container, then install it in editable mode from the repository root so tests use your local Python changes:

BASH
pip install -e "python"

In an activated virtual environment, you can use uv pip install --prerelease=allow -e "python" instead. See the development guide for container setup and testing.

Contribute

  1. Fork the repository and create a branch for your changes. For larger changes, discuss your proposal in a GitHub issue or on Slack.
  2. Make your changes, run the relevant tests, and add regression coverage for fixes or new behavior. Run pre-commit run --all-files before submitting.
  3. Open a pull request describing the change and how you tested it. Include benchmarks or accuracy evaluations when relevant.

See the contributor guide for formatting, testing, and pull request instructions. Documentation contributors can start with the docs guide.

(注:更多技术实现细节与完整 API 文档请查阅原项目 README)