@@ -10,11 +10,10 @@ ARG PIP_INDEX_URL="https://pypi.org/simple/"
1010ARG APTMIRROR=""
1111ARG PYTORCH_VERSION="2.8.0"
1212ARG TORCHVISION_VERSION="0.23.0"
13- ARG PTA_VERSION="v7.2.0-pytorch${PYTORCH_VERSION}"
14- ARG PTA_NAME="torch_npu-${PYTORCH_VERSION}-cp311-cp311-manylinux_2_28_aarch64.whl"
15- ARG PTA_URL="https://gitcode.com/Ascend/pytorch/releases/download/${PTA_VERSION}/${PTA_NAME}"
16- ARG TRITON_ASCEND_URL="https://sglang-ascend.obs.cn-east-3.myhuaweicloud.com/sglang/triton_ascend-3.2.0%2Bgitb0ea0850-cp311-cp311-linux_aarch64.whl"
17- ARG BISHENG_URL="https://sglang-ascend.obs.cn-east-3.myhuaweicloud.com/sglang/Ascend-BiSheng-toolkit_aarch64.run"
13+ ARG PTA_URL="https://sglang-ascend.obs.cn-east-3.myhuaweicloud.com/sglang/torch_npu/torch_npu-2.8.0.post2.dev20251120-cp311-cp311-manylinux_2_28_aarch64.whl"
14+ ARG TRITON_ASCEND_URL="https://sglang-ascend.obs.cn-east-3.myhuaweicloud.com/sglang/triton_ascend/triton_ascend-3.2.0.dev2025112116-cp311-cp311-manylinux_2_27_aarch64.manylinux_2_28_aarch64.whl"
15+ ARG BISHENG_NAME="Ascend-BiSheng-toolkit_aarch64_20251121.run"
16+ ARG BISHENG_URL="https://sglang-ascend.obs.cn-east-3.myhuaweicloud.com/sglang/triton_ascend/${BISHENG_NAME}"
1817ARG SGLANG_TAG=main
1918ARG ASCEND_CANN_PATH=/usr/local/Ascend/ascend-toolkit
2019ARG SGLANG_KERNEL_NPU_TAG=main
@@ -65,11 +64,11 @@ RUN ${PIP_INSTALL} sglang-router
6564
6665# ## Install PyTorch and PTA
6766RUN (${PIP_INSTALL} torch==${PYTORCH_VERSION} torchvision==${TORCHVISION_VERSION} --index-url https://download.pytorch.org/whl/cpu) && \
68- (wget -O "${PTA_NAME}" " ${PTA_URL}" && ${PIP_INSTALL} "./${PTA_NAME}" && rm "./${PTA_NAME}" )
67+ (${PIP_INSTALL} ${PTA_URL})
6968
7069
7170# TODO: install from pypi released triton-ascend
72- RUN ${PIP_INSTALL} attrs==24.2.0 numpy==1.26.4 scipy==1.13.1 decorator==5.1.1 psutil==6.0.0 pytest==8.3.2 pytest-xdist==3.6.1 pyyaml pybind11 && \
71+ RUN ${PIP_INSTALL} pybind11 && \
7372 ${PIP_INSTALL} ${TRITON_ASCEND_URL}
7473
7574# Install SGLang
@@ -96,6 +95,6 @@ RUN wget https://sglang-ascend.obs.cn-east-3.myhuaweicloud.com/ops/CANN-custom_o
9695 ${PIP_INSTALL} ./custom_ops-1.0.$DEVICE_TYPE-cp311-cp311-linux_aarch64.whl
9796
9897# Install Bisheng
99- RUN wget ${ BISHENG_URL} && chmod a+x Ascend-BiSheng-toolkit_aarch64.run && ./Ascend-BiSheng-toolkit_aarch64.run --install && rm Ascend-BiSheng-toolkit_aarch64.run
98+ RUN wget -O "${BISHENG_NAME}" "${ BISHENG_URL}" && chmod a+x "${BISHENG_NAME}" && "./${BISHENG_NAME}" --install && rm "${BISHENG_NAME}"
10099
101100CMD ["/bin/bash" ]
0 commit comments