Skip to main content
You can install SGLang-Diffusion using one of the methods below. The standard installation already includes SGLang’s optimized kernel stack, including both sgl-kernel and JIT kernels used by diffusion workloads.

Standard Installation (NVIDIA GPUs)

Method 1: With pip or uv

It is recommended to use uv for a faster installation:
Command

Method 2: From source

Command

Method 3: Using Docker

The Docker images are available on Docker Hub at lmsysorg/sglang, built from the Dockerfile. Replace <secret> below with your HuggingFace Hub token.
Command

Platform-Specific: ROCm (AMD GPUs)

For AMD Instinct GPUs (e.g., MI300X), use a ROCm-enabled Docker image from lmsysorg/sglang. The tag below is an example for ROCm 7.0 on MI300X and may lag the latest release tag:
Command
For detailed ROCm system configuration and installation from source, see AMD GPUs.

Platform-Specific: MUSA (Moore Threads GPUs)

For Moore Threads GPUs (MTGPU) with the MUSA software stack, follow the platform guide first. If the source tree still requires the alternate platform pyproject fallback, keep a backup of the default file before switching:
Command

Platform-Specific: Intel XPU

For Intel Data Center GPU Max or Arc GPUs, follow the XPU installation guide to set up the base environment, then install diffusion dependencies:
Command

Platform-Specific: Ascend NPU

For Ascend NPU, please follow the NPU installation guide. Quick test:
Command

Platform-Specific: Apple MPS

For Apple MPS, follow the instructions below to install from source. If the source tree still requires the alternate platform pyproject fallback, keep a backup of the default file before switching:
Command