GPU¶
vLLM-Omni is a Python library that supports the following GPU variants. The library itself mainly contains python implementations for framework and models.
Requirements¶
- OS: Linux
- Python: 3.12
Note
vLLM-Omni is currently not natively supported on Windows.
- GPU: compute capability 7.5 or higher (e.g., T4, RTX20xx, A100, L4, H100, etc.)
- GPU: Validated on gfx942 (It should be supported on the AMD GPUs that are supported by vLLM.)
- GPU: Validated on Intel® Arc™ B-Series.
- GPU: Moore Threads GPU with MUSA SDK installed (validated on MTT S5000)
Set up using Python¶
Create a new Python environment¶
It's recommended to use uv, a very fast Python environment manager, to create and manage Python environments. Please follow the documentation to install uv. After installing uv, you can create a new Python environment using the following commands:
Pre-built wheels¶
Note: Pre-built wheels are currently available for vLLM-Omni 0.11.0rc1, 0.12.0rc1, 0.14.0rc1, 0.14.0, 0.16.0, 0.18.0, 0.20.0, 0.21.0, 0.22.0, 0.23.0, 0.24.0, 0.25.0, 0.26.0, 0.28.0, 0.30.0, and 0.32.0. If you need a newer unreleased revision, please build from source.
Installation of vLLM¶
These pre-built wheel instructions install the published vLLM-Omni 0.32.0 release.
vLLM-Omni is built based on vLLM. Please install it with command below.
Installation of vLLM-Omni¶
To run Gradio demos, also install the optional extras:
Installation of vLLM¶
These pre-built wheel instructions install the published vLLM-Omni 0.30.0 release.
vLLM-Omni is built based on vLLM. Please install it with command below.
Installation of vLLM-Omni¶
# we need to add --no-build-isolation as the torch
# is not obtained from pypi, we have to install using the
# torch installed in our environment
uv pip install vllm-omni==0.30.0
# Optional if want to run Qwen3 TTS
uv pip uninstall onnxruntime # should be removed before we can install onnxruntime-rocm
uv pip install onnxruntime-rocm
Build wheel from source¶
Installation of vLLM¶
If you do not need to modify source code of vLLM, install the final 0.33.0 wheel directly from the frozen commit:
uv pip install --torch-backend=cu130 \
"vllm @ https://wheels.vllm.ai/4ba787ec9959e566d3b587a796dff07673324da5/vllm-0.33.0-cp38-abi3-manylinux_2_28_x86_64.whl"
This command selects the Linux x86_64 CUDA 13.0 wheel and matching PyTorch backend. It requires a CUDA 13 compatible driver. For another architecture, CUDA variant or an existing incompatible PyTorch installation, build vLLM from source instead. The final commit-index wheel is available; native model and full CI validation remain pending. Install Omni from this source checkout.
Installation of vLLM-Omni¶
Since vllm-omni is rapidly evolving, it's recommended to install it from source
The Torch 2.14 CUDA environment declares cuDNN 9.24 as an exact Python package dependency. This checkout's CUDA images load a separate, pinned cuDNN 9.25.1 runtime for correct CUDNN_ATTN image outputs. The normal wheel installer verifies the pinned NVIDIA wheel hash and retains its license outside Python site-packages. The original Qwen-Image 2.1 IT2I test passes on L20X with this runtime; native H100 and full CI qualification remain pending.
For a source installation, configure the same runtime before starting Python:
OMNI_CUDNN_RUNTIME_DIR="$(python -c 'import sys; print(sys.prefix)')/omni-cudnn-runtime"
uv pip install --target "$OMNI_CUDNN_RUNTIME_DIR" --no-deps --only-binary=:all: \
--require-hashes -r requirements/cudnn-runtime.txt
export LD_PRELOAD="$OMNI_CUDNN_RUNTIME_DIR/nvidia/cudnn/lib/libcudnn.so.9${LD_PRELOAD:+:$LD_PRELOAD}"
export LD_LIBRARY_PATH="$OMNI_CUDNN_RUNTIME_DIR/nvidia/cudnn/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
python -c 'import torch; assert torch.backends.cudnn.version() == 92501'
uv pip check
The output directory must be fresh. Reuse its exported library paths for subsequent launches. See NVIDIA's cuDNN compatibility policy and support matrix for binary, driver and hardware requirements. Python packages and the selected vLLM/Torch binaries remain installed with their original metadata.
To run Gradio demos from this source checkout, build the temporary Gradio backport and pass its wheel in the same normal dependency install:
python tools/build_gradio_pillow13.py --output-dir /tmp/gradio-pillow13
uv pip install -e '.[demo]' \
/tmp/gradio-pillow13/gradio-6.31.0+omni.pillow13-py3-none-any.whl
Development installs use the same built wheel:
uv pip install -e '.[dev]' \
/tmp/gradio-pillow13/gradio-6.31.0+omni.pillow13-py3-none-any.whl
uv pip check
See the source dependency instructions for exact source provenance and qualification limits. This local Gradio 6.31 backport supplies the upstream Pillow 13 compatibility changes; browser, native model and full CI acceptance remain pending.
(Optional) Installation of vLLM from source
If you want to check, modify or debug with source code of vLLM, install the library from source with the following instructions:git clone https://github.com/vllm-project/vllm.git
cd vllm
git checkout 4ba787ec9959e566d3b587a796dff07673324da5
Set up environment variables to get pre-built wheels. If there are internet problems, just download the whl file manually. And set VLLM_PRECOMPILED_WHEEL_LOCATION as your local absolute path of whl file.
# CUDA 13.0 final wheel for the exact source commit on x86_64
export VLLM_PRECOMPILED_WHEEL_LOCATION=https://wheels.vllm.ai/4ba787ec9959e566d3b587a796dff07673324da5/vllm-0.33.0-cp38-abi3-manylinux_2_28_x86_64.whl
Install vllm with command below (If you have no existing PyTorch).
Install vllm with command below (If you already have PyTorch).
Installation of vLLM¶
Build vLLM from the frozen 0.33.0 source commit using upstream's matching ROCm/PyTorch requirements, or use the Docker source build below. The older 0.32.0 ROCm wheel does not provide the 0.33 APIs used by this checkout. ROCm runtime validation remains pending.
Installation of vLLM-Omni¶
Since vllm-omni is rapidly evolving, it's recommended to install it from source
git clone https://github.com/vllm-project/vllm-omni.git
cd vllm-omni
VLLM_OMNI_TARGET_DEVICE=rocm uv pip install -e .
# OR
uv pip install -e . --no-build-isolation
For source development or Gradio demos, include the temporary Gradio backport in the normal install while retaining the ROCm target:
python tools/build_gradio_pillow13.py --output-dir /tmp/gradio-pillow13
VLLM_OMNI_TARGET_DEVICE=rocm uv pip install --no-build-isolation -e '.[dev,demo]' \
/tmp/gradio-pillow13/gradio-6.31.0+omni.pillow13-py3-none-any.whl
uv pip check
See the source dependency instructions for provenance and qualification limits. ROCm runtime acceptance remains pending.
(Optional) Installation of vLLM from source
If you want to check, modify or debug with source code of vLLM, install the library from source with the following instructions:For development or Gradio demos in a source environment with the matching upstream XPU runtime already installed, run from the Omni repository root:
python tools/build_gradio_pillow13.py --output-dir /tmp/gradio-pillow13
VLLM_OMNI_TARGET_DEVICE=xpu uv pip install --no-build-isolation \
--excludes <(printf 'torch\ntriton-xpu\n') -e '.[dev,demo]' \
/tmp/gradio-pillow13/gradio-6.31.0+omni.pillow13-py3-none-any.whl
uv pip check
Keep the upstream PyTorch and Triton packages paired. See the source dependency instructions for the temporary Gradio backport's provenance and qualification limits. XPU runtime acceptance remains pending.
Prerequisites¶
- MUSA SDK: Download from MUSA SDK Download
- torchada: CUDA→MUSA compatibility layer for PyTorch (
pip install torchada) - mthreads-ml-py: MTML Python bindings (
pip install mthreads-ml-py) - MATE: MUSA AI Tensor Engine (GitHub)
Installation of vLLM-MUSA¶
The MUSA source steps below remain pinned to v0.18.0-dev. MUSA runtime validation for this checkout's vLLM 0.33.0 alignment has not been performed.
git clone https://github.com/MooreThreads/vllm-musa.git
cd vllm-musa
git checkout v0.18.0-dev
pip install . --no-build-isolation -v
Installation of vLLM-Omni¶
git clone https://github.com/vllm-project/vllm-omni.git
cd vllm-omni
VLLM_OMNI_TARGET_DEVICE=musa pip install -e . --no-build-isolation
For Gradio demos from this source checkout, retain the MUSA target and include the temporary Gradio backport in the normal dependency install:
python tools/build_gradio_pillow13.py --output-dir /tmp/gradio-pillow13
VLLM_OMNI_TARGET_DEVICE=musa pip install -e '.[demo]' --no-build-isolation \
/tmp/gradio-pillow13/gradio-6.31.0+omni.pillow13-py3-none-any.whl
python -m pip check
See the source dependency instructions for provenance and qualification limits. The CPU serialization checks do not establish MUSA runtime or browser acceptance.
Environment Variables¶
Set up using Docker¶
Pre-built images¶
vLLM-Omni offers an official docker image for deployment. These images are built on top of vLLM docker images and available on Docker Hub as vllm/vllm-omni. The version of vLLM-Omni indicates which release of vLLM it is based on.
Nightly CUDA images built from the latest main are also available:
vllm/vllm-omni:nightlyis the rolling multi-architecture tag.vllm/vllm-omni:nightly-<commit>provides commit-pinned multi-architecture tags. The newest 14 are retained.
Use a commit-pinned tag when you need a reproducible nightly environment.
The v0.32.0 release provides CUDA images for linux/amd64 and linux/arm64. Use the versioned tag for a reproducible release environment rather than the rolling latest tag.
Example deployment on two GPUs (adjust hardware and memory capacity for your model):
docker run --runtime nvidia --gpus 2 \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=$HF_TOKEN" \
-p 8091:8091 \
--ipc=host \
vllm/vllm-omni:v0.32.0 \
vllm serve Qwen/Qwen3-Omni-30B-A3B-Instruct --omni --port 8091
Tip
The CUDA image does not define a default entrypoint, so include vllm serve ... --omni after the image name.
vLLM-Omni offers an official docker image for deployment. These images are built on top of vLLM docker images and available on Docker Hub as vllm/vllm-omni-rocm. The version of vLLM-Omni indicates which release of vLLM it is based on.
The prebuilt ROCm image is published separately from the release pipeline: v0.28.0 is the latest tag currently available on Docker Hub, and newer-tag availability is tracked in #7405.
Launch vLLM-Omni Server¶
Here's an example deployment command that has been verified on 2 x MI300's:
docker run --rm \
--group-add=video \
--ipc=host \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--device /dev/kfd \
--device /dev/dri \
-v <path/to/model>:/app/model \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=$HF_TOKEN" \
-p 8091:8091 \
vllm/vllm-omni-rocm:v0.28.0 \
--model Qwen/Qwen3-Omni-30B-A3B-Instruct --omni --port 8091
Launch an interactive terminal with prebuilt docker image¶
If you want to run in dev environment you can launch the docker image as follows:
docker run --rm -it \
--network=host \
--group-add=video \
--ipc=host \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--device /dev/kfd \
--device /dev/dri \
-v <path/to/model>:/app/model \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=$HF_TOKEN" \
--entrypoint bash \
vllm/vllm-omni-rocm:v0.28.0
Build your own docker image¶
Build docker image¶
The production Dockerfile bootstraps from the published vllm/vllm-openai:v0.33.0 CUDA 13 image and verifies the frozen vLLM 0.33.0 wheel with its matching dependencies:
Both CUDA Dockerfiles pin the same bootstrap image by digest and install the final wheel. The telemetry repair validates that exact base before removing its unused incompatible exporter; retained exporters and LMCache remain pinned in the normal dependency solve. Full CI validation remains pending:
Launch the docker image¶
Launch with OpenAI API Server¶
Note
The model Qwen/Qwen3-Omni-30B-A3B-Instruct requires significant GPU memory. The example below has been verified on 2 x H100's.
docker run --runtime nvidia --gpus 2 \
-v ${HF_HOME:-$HOME/.cache/huggingface}:/root/.cache/huggingface \
--env "HF_TOKEN=$HF_TOKEN" \
-p 8091:8091 \
--ipc=host \
vllm-omni-cuda \
vllm serve --omni --model Qwen/Qwen3-Omni-30B-A3B-Instruct --port 8091
By default, this mounts $HOME/.cache/huggingface as the model cache directory. To use a custom location, set the HF_HOME environment variable before running the command (e.g., export HF_HOME=/data/models).
Launch with interactive session for development¶
Build docker image¶
The Dockerfile starts from vllm/vllm-openai-rocm:v0.33.0 and defaults to USE_NIGHTLY_BUILD=1 with source commit 4ba787ec9959e566d3b587a796dff07673324da5. Its development dependency install builds the hash-pinned temporary Gradio source backport and installs the resulting local wheel with the normal resolver. ROCm runtime validation remains pending.
To select the upstream ROCm base explicitly, pass BASE_IMAGE:
DOCKER_BUILDKIT=1 docker build \
-f docker/Dockerfile.rocm \
--build-arg BASE_IMAGE=vllm/vllm-openai-rocm:v0.33.0 \
-t vllm-omni-rocm .
Launch the docker image¶
Launch with OpenAI API Server¶
docker run --rm \
--group-add=video \
--ipc=host \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--device /dev/kfd \
--device /dev/dri \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=$HF_TOKEN" \
-p 8091:8091 \
--ipc=host \
vllm-omni-rocm \
--model Qwen/Qwen3-Omni-30B-A3B-Instruct --port 8091
Launch with interactive session for development¶
Build docker image¶
export VLLM_VERSION=v0.33.0
DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile.xpu -t vllm-omni-xpu --shm-size=4g \
--build-arg VLLM_VERSION="$VLLM_VERSION" .
This layers vLLM-Omni on top of the selected vllm/vllm-openai-xpu:<VLLM_VERSION> base image. The Dockerfile targets the published v0.33.0 tag; if the image cannot be fetched, build the upstream source image at that tag as shown below. Keep its PyTorch and Triton packages paired. The Dockerfile retains the upstream runtime instead of replacing Triton with the older triton-xpu package, and checks installed dependency requirements after adding Omni. XPU runtime validation with this checkout remains pending. To target a different vLLM release, pass --build-arg VLLM_VERSION=<tag>. If that tag has not been published yet, build the base from upstream's own Dockerfile first and point the build at it:
git clone --depth 1 --branch "$VLLM_VERSION" https://github.com/vllm-project/vllm /tmp/vllm
DOCKER_BUILDKIT=1 docker build -t vllm-openai-xpu:local --target vllm-openai \
-f /tmp/vllm/docker/Dockerfile.xpu /tmp/vllm
DOCKER_BUILDKIT=1 docker build -f docker/Dockerfile.xpu -t vllm-omni-xpu --shm-size=4g \
--build-arg VLLM_BASE=vllm-openai-xpu:local .
Launch the docker image¶
Launch with OpenAI API Server¶
docker run -it -d --shm-size 10g \
--name {container_name} \
--net=host \
--ipc=host \
--privileged \
-v /dev/dri/by-path:/dev/dri/by-path \
--device /dev/dri:/dev/dri \
-v ~/.cache/huggingface:/root/.cache/huggingface \
--env "HF_TOKEN=$HF_TOKEN" \
vllm-omni-xpu \
--model Qwen/Qwen2.5-Omni-3B --port 8091