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 A: Docker (recommended)#
1. Pull the image
docker pull hongccc/sglang-omni:dev
Only the dev tag is published today. It moves with main — pin by digest for reproducible runs:
docker pull lmsysorg/sglang-omni@sha256:<digest>
2. Run the container
docker run -it \
--shm-size 32g \
--gpus all \
--ipc host \
--network host \
--privileged \
hongccc/sglang-omni:dev \
/bin/zsh
3. Install sglang-omni inside the container
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"
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, matchingtorch==2.14.1and SGLang 0.5.22’snvidia-cutlass-dsl4.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.