Installation — CUDA#

Install SGLang-Omni on Linux with an NVIDIA GPU. Docker is recommended. The current stable release is v0.2.0 on PyPI.

Other platforms#

Using a different device? Choose the installation guide for your hardware: Apple Silicon, Ascend NPU, Intel XPU, Intel CPU, and Moore Threads MUSA.

Install SGLang-Omni#

Choose Docker for a prebuilt CUDA environment, pip / uv to install into your own environment, or From source to work on the code.

pip / uv#

Prerequisites. Use a CUDA environment with glibc 2.34 or newer and install these build dependencies 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.23’s nvidia-cutlass-dsl 4.8.0 pin.

Prepare the environment.

pip install --upgrade pip
pip install uv

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

Install SGLang-Omni.

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

To install the latest version on the index, run uv pip install --prerelease=allow sglang-omni.

From source#

Use this path for development or unreleased changes. Start with the pip / uv prerequisites.

Get the source.

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

Install in editable mode.

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

Optional: Precompiled FlashInfer Kernels#

After installing SGLang-Omni with pip / uv or from source, you can optionally install FlashInfer’s precompiled JIT-cache kernels into that same Python environment. This step is for supported NVIDIA CUDA environments only; it does not apply to CPU, Apple Silicon, Intel XPU, AMD ROCm, Ascend NPU, or MUSA.

flashinfer install-jit-cache-wheel --mode minimal

The FlashInfer CLI detects the CUDA version used by PyTorch and matches the JIT-cache package to the installed flashinfer-python and CUDA environment. It also detects visible NVIDIA GPU architectures and installs only their best compatible providers, avoiding packages for unrelated architectures. Precompiled coverage is not available for every NVIDIA GPU or kernel variant, so variants without coverage may still require JIT compilation. Run the command again after upgrading FlashInfer so the cache stays compatible.

Installing the cache can reduce first-launch compilation and cold-start overhead. It generally does not improve steady-state GPU execution when the same kernels are already compiled and cached.

For heterogeneous NVIDIA deployments, make sure compatible providers are installed for every GPU architecture used by the deployment. If GPUs are unavailable during installation, such as during an image build, automatic detection may not find the target architectures; use FlashInfer’s CLI architecture-selection option (--sm, repeatable) to select them explicitly.

To also install the separate precompiled cubin package, run flashinfer install-cubin-wheel after the JIT-cache installation above.

Next steps#

Start the Qwen3-ASR server, send a request, and check the transcript. For model-specific configuration and other request formats, see the Qwen3-ASR Cookbook.

Troubleshooting#

See Troubleshooting for installation errors. Compare uv pip check output against the expected CUDA dependency messages.