2025-11-30 20:39:06 +08:00
# --8<-- [start:requirements]
For detailed hardware and software requirements, please refer to the [vllm-ascend installation documentation ](https://docs.vllm.ai/projects/ascend/en/latest/installation.html ).
# --8<-- [end:requirements]
2025-11-28 11:03:52 +08:00
# --8<-- [start:installation]
2025-11-30 20:39:06 +08:00
The recommended way to use vLLM-Omni on NPU is through the vllm-ascend pre-built Docker images:
```bash
# Update DEVICE according to your NPUs (/dev/davinci[0-7])
export DEVICE0 = /dev/davinci0
export DEVICE1 = /dev/davinci1
# Update the vllm-ascend image
# Atlas A2:
2025-12-23 20:20:12 +08:00
# export IMAGE=quay.io/ascend/vllm-ascend:v0.11.0rc2
2025-11-30 20:39:06 +08:00
# Atlas A3:
2025-12-23 20:20:12 +08:00
# export IMAGE=quay.io/ascend/vllm-ascend:v0.11.0rc2-a3
export IMAGE = quay.io/ascend/vllm-ascend:v0.11.0rc2
2025-11-30 20:39:06 +08:00
docker run --rm \
--name vllm-omni-npu \
2025-12-02 00:40:01 +08:00
--shm-size= 1g \
2025-11-30 20:39:06 +08:00
--device $DEVICE0 \
--device $DEVICE1 \
--device /dev/davinci_manager \
--device /dev/devmm_svm \
--device /dev/hisi_hdc \
-v /usr/local/dcmi:/usr/local/dcmi \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/Ascend/driver/lib64/:/usr/local/Ascend/driver/lib64/ \
-v /usr/local/Ascend/driver/version.info:/usr/local/Ascend/driver/version.info \
-v /etc/ascend_install.info:/etc/ascend_install.info \
-v /root/.cache:/root/.cache \
-p 8000:8000 \
-it $IMAGE bash
# Inside the container, install vLLM-Omni from source
cd /vllm-workspace
2025-12-23 20:20:12 +08:00
git clone -b v0.11.0rc1 https://github.com/vllm-project/vllm-omni.git
2025-11-30 20:39:06 +08:00
cd vllm-omni
pip install -v -e .
export VLLM_WORKER_MULTIPROC_METHOD = spawn
```
The default workdir is `/workspace` , with vLLM, vLLM-Ascend and vLLM-Omni code placed in `/vllm-workspace` installed in development mode.
For other installation methods (pip installation, building from source, custom Docker builds), please refer to the [vllm-ascend installation guide ](https://docs.vllm.ai/projects/ascend/en/latest/installation.html ).
2025-11-28 11:03:52 +08:00
# --8<-- [end:installation]