Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sources/sglang/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ torch-npu 安装
pip install torch==$PYTORCH_VERSION torchvision==$TORCHVISION_VERSION --index-url https://download.pytorch.org/whl/cpu

# Install torch_npu 2.6.0 or you can just pip install torch_npu==2.6.0
PTA_VERSION="v7.1.0.2-pytorch2.6.0"
PTA_NAME="torch_npu-2.6.0.post2-cp311-cp311-manylinux_2_28_aarch64.whl"
PTA_URL="https://gitcode.com/ascend/pytorch/releases/download/${PTA_VERSION}/${PTA_WHL_NAME}"
PTA_VERSION="v7.2.0-pytorch2.6.0"
PTA_NAME="torch_npu-2.6.0.post3-cp311-cp311-manylinux_2_28_aarch64.whl"
PTA_URL="https://gitcode.com/ascend/pytorch/releases/download/${PTA_VERSION}/${PTA_NAME}"
wget -O "${PTA_NAME}" "${PTA_URL}" && pip install "./${PTA_NAME}"

安装完成后,可以通过以下代码验证 torch_npu 是否安装成功:
Expand Down