413c2d40创建于 2024年8月31日历史提交
文件最后提交记录最后更新时间
!14167 Fix public URL issue Merge pull request !14167 from dilililiwhy/fix_url_issue_111 1 年前
!6541 Add Dockerfile for building Merge pull request !6541 from chuboning/v1.11.0 2 年前
!6541 Add Dockerfile for building Merge pull request !6541 from chuboning/v1.11.0 2 年前
README.md

Ascend Pytorch Dockerfile Repository

This folder hosts the Dockerfile to build docker images with various platforms.

Build torch_npu from Docker container

Clone torch-npu

git clone https://github.com/ascend/pytorch.git -b v1.11.0 --depth 1

Build docker image

cd pytorch/ci/docker/{arch} # {arch} for X86 or ARM
docker build -t manylinux-builder:v1 .

Enter docker Container

docker run -it -v /{code_path}/pytorch:/home/pytorch manylinux-builder:v1 bash
# {code_path} is the torch_npu source code path

Compile torch_npu

Take Python 3.8 as an example

cd /home/pytorch
bash ci/build.sh --python=3.8