Skip to content

Commit c7a42f8

Browse files
committed
Add Triton Ascend and Ascend Bisheng envs
Signed-off-by: Meihan-chen <[email protected]>
1 parent 7132ae8 commit c7a42f8

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
6161
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
6262
source /usr/local/Ascend/nnal/atb/set_env.sh && \
6363
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/`uname -i`-linux/devlib && \
64+
echo "source /usr/local/Ascend/ascend-toolkit/8.3.RC2/bisheng_toolkit/set_env.sh" >> ~/.bashrc \
6465
python3 -m pip install -v -e /vllm-workspace/vllm-ascend/ --extra-index https://download.pytorch.org/whl/cpu/ && \
6566
python3 -m pip cache purge
6667

Dockerfile.a3

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ RUN export PIP_EXTRA_INDEX_URL=https://mirrors.huaweicloud.com/ascend/repos/pypi
6060
source /usr/local/Ascend/ascend-toolkit/set_env.sh && \
6161
source /usr/local/Ascend/nnal/atb/set_env.sh && \
6262
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/Ascend/ascend-toolkit/latest/`uname -i`-linux/devlib && \
63+
echo "source /usr/local/Ascend/ascend-toolkit/8.3.RC2/bisheng_toolkit/set_env.sh" >> ~/.bashrc \
6364
python3 -m pip install -v -e /vllm-workspace/vllm-ascend/ --extra-index https://download.pytorch.org/whl/cpu/ && \
6465
python3 -m pip cache purge
6566

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ requires = [
2626
"quart",
2727
"numba",
2828
"opencv-python-headless<=4.11.0.86", # Required to avoid numpy version conflict with vllm
29-
"compressed_tensors>=0.11.0"
29+
"compressed_tensors>=0.11.0",
30+
"triton-ascend @ https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/triton_ascend-3.2.0.dev2025110717-cp311-cp311-manylinux_2_27_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'"
3031
]
3132
build-backend = "setuptools.build_meta"
3233

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,6 @@ numba
3131
torch-npu==2.8.0
3232

3333
transformers<=4.57.1
34+
35+
# Install triton-ascend
36+
triton-ascend @ https://vllm-ascend.obs.cn-north-4.myhuaweicloud.com/vllm-ascend/triton_ascend-3.2.0.dev2025110717-cp311-cp311-manylinux_2_27_aarch64.whl ; sys_platform == 'linux' and platform_machine == 'aarch64'

0 commit comments

Comments
 (0)