Installation — CUDA#

Current stable release: v0.1.9 on PyPI.

This page covers NVIDIA CUDA. Docker is recommended — UCX, flash-attn, SGLang, and CUDA are prebuilt.

Option B: Manual install#

Build prerequisites first:

  • UCX 1.20.x with CUDA + verbs — upstream, or reuse flags in docker/Dockerfile.

  • flash-attn-4 >=4.0.0b18, matching torch==2.14.1 and SGLang 0.5.22’s nvidia-cutlass-dsl 4.8.0 pin.

Then:

pip install --upgrade pip
pip install uv

uv venv .venv -p 3.12
source .venv/bin/activate

uv pip install --prerelease=allow "sglang-omni==0.1.9"

Latest on the index without a pin: uv pip install --prerelease=allow sglang-omni.

Install from source#

For development or unreleased changes:

git clone git@github.com:sgl-project/sglang-omni.git
cd sglang-omni

pip install --upgrade pip
pip install uv

uv venv .venv -p 3.12
source .venv/bin/activate

uv pip install --prerelease=allow -v -e .   # drop -e for a non-editable install

For installation problems, see Troubleshooting.

Other platforms#

For other platforms, use the dedicated pages: Apple Silicon, Ascend NPU, Intel XPU, Intel CPU, and MUSA.