[Build] Update doc (#509)

1. install torch-npu before vllm-ascend to ensure custom ops build
success.
2. set `COMPILE_CUSTOM_KERNELS=0` if users want to disable custom ops
build.

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan
2025-04-14 14:38:50 +08:00
committed by GitHub
parent 11ecbfdb31
commit 5fa70b6393
2 changed files with 30 additions and 20 deletions

View File

@@ -28,6 +28,9 @@ cd ..
# Clone vllm-ascend and install
git clone https://github.com/vllm-project/vllm-ascend.git
cd vllm-ascend
# install system requirement
apt install -y gcc g++ cmake libnuma-dev
# install project requirement
pip install -r requirements-dev.txt
# Then you can run lint and mypy test
@@ -38,6 +41,8 @@ bash format.sh
# pip install -e .
# - build without deps for debugging in other OS
# pip install -e . --no-deps
# - build without custom ops
# COMPILE_CUSTOM_KERNELS=0 pip install -e .
# Commit changed files using `-s`
git commit -sm "your commit info"