Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update multi-device docker in docs #2594

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions docs/other_devices_support/paddlepaddle_install_DCU.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Currently, PaddleX supports Haiguang Z100 series chips. Considering environmenta
Pull the image. Note that this image is only for development environments and does not include pre-compiled PaddlePaddle installation packages.

```bash
docker pull registry.baidubce.com/device/paddle-dcu:dtk23.10.1-kylinv10-gcc73-py310
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle-dcu:dtk24.04.1-kylinv10-gcc82
```

Start the container with the following command as a reference:
Expand All @@ -19,7 +19,7 @@ Start the container with the following command as a reference:
docker run -it --name paddle-dcu-dev -v `pwd`:/work \
-w=/work --shm-size=128G --network=host --privileged \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
registry.baidubce.com/device/paddle-dcu:dtk23.10.1-kylinv10-gcc73-py310 /bin/bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle-dcu:dtk24.04.1-kylinv10-gcc82 /bin/bash
```

## 2. Install PaddlePaddle Package
Expand Down
4 changes: 2 additions & 2 deletions docs/other_devices_support/paddlepaddle_install_DCU.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ comments: true
拉取镜像,此镜像仅为开发环境,镜像中不包含预编译的飞桨安装包

```
docker pull registry.baidubce.com/device/paddle-dcu:dtk23.10.1-kylinv10-gcc73-py310
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle-dcu:dtk24.04.1-kylinv10-gcc82
```
参考如下命令启动容器

```
docker run -it --name paddle-dcu-dev -v `pwd`:/work \
-w=/work --shm-size=128G --network=host --privileged \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
registry.baidubce.com/device/paddle-dcu:dtk23.10.1-kylinv10-gcc73-py310 /bin/bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle-dcu:dtk24.04.1-kylinv10-gcc82 /bin/bash
```

## 2、安装paddle包
Expand Down
4 changes: 2 additions & 2 deletions docs/other_devices_support/paddlepaddle_install_MLU.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Pull the image. This image is for development only and does not include a pre-co

```bash
# Applicable to X86 architecture, Arch64 architecture image is not provided for now
docker pull registry.baidubce.com/device/paddle-mlu:ctr2.15.0-ubuntu20-gcc84-py310
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-mlu:ubuntu20-x86_64-gcc84-py310
```

Start the container with the following command as a reference:
Expand All @@ -21,7 +21,7 @@ docker run -it --name paddle-mlu-dev -v $(pwd):/work \
-w=/work --shm-size=128G --network=host --privileged \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
-v /usr/bin/cnmon:/usr/bin/cnmon \
registry.baidubce.com/device/paddle-mlu:ctr2.15.0-ubuntu20-gcc84-py310 /bin/bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-mlu:ubuntu20-x86_64-gcc84-py310 /bin/bash
```

## 2. Install Paddle Package
Expand Down
4 changes: 2 additions & 2 deletions docs/other_devices_support/paddlepaddle_install_MLU.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ comments: true

```
# 适用于 X86 架构,暂时不提供 Arch64 架构镜像
docker pull registry.baidubce.com/device/paddle-mlu:ctr2.15.0-ubuntu20-gcc84-py310
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-mlu:ubuntu20-x86_64-gcc84-py310
```
参考如下命令启动容器

Expand All @@ -21,7 +21,7 @@ docker run -it --name paddle-mlu-dev -v $(pwd):/work \
-w=/work --shm-size=128G --network=host --privileged \
--cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
-v /usr/bin/cnmon:/usr/bin/cnmon \
registry.baidubce.com/device/paddle-mlu:ctr2.15.0-ubuntu20-gcc84-py310 /bin/bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-mlu:ubuntu20-x86_64-gcc84-py310 /bin/bash
```

## 2、安装paddle包
Expand Down
6 changes: 3 additions & 3 deletions docs/other_devices_support/paddlepaddle_install_NPU.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Currently, PaddleX supports the Ascend 910B chip (more models are under support.
* Pull the image. This image is only for the development environment and does not contain a pre-compiled PaddlePaddle installation package. The image has CANN-8.0.T13, the Ascend operator library, installed by default.
```bash
# For X86 architecture
docker pull registry.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-x86_64-gcc84-py39
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-x86_64-gcc84-py39
# For Aarch64 architecture
docker pull registry.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-aarch64-gcc84-py39
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-aarch64-gcc84-py39
```
* Start the container with the following command. ASCEND_RT_VISIBLE_DEVICES specifies the visible NPU card numbers.
```bash
Expand All @@ -22,7 +22,7 @@ docker run -it --name paddle-npu-dev -v $(pwd):/work \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/dcmi:/usr/local/dcmi \
-e ASCEND_RT_VISIBLE_DEVICES="0,1,2,3,4,5,6,7" \
registry.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-$(uname -m)-gcc84-py39 /bin/bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-$(uname -m)-gcc84-py39 /bin/bash
```
## 2. Install Paddle Package
Currently, Python 3.9 wheel installation packages are provided. If you have a need for other Python versions, you can refer to the [PaddlePaddle official documentation](https://www.paddlepaddle.org.cn/en/install/quick) to compile and install them yourself.
Expand Down
6 changes: 3 additions & 3 deletions docs/other_devices_support/paddlepaddle_install_NPU.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ comments: true
* 拉取镜像,此镜像仅为开发环境,镜像中不包含预编译的飞桨安装包,镜像中已经默认安装了昇腾算子库 CANN-8.0.T13。
```
# 适用于 X86 架构
docker pull registry.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-x86_64-gcc84-py39
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-x86_64-gcc84-py39
# 适用于 Aarch64 架构
docker pull registry.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-aarch64-gcc84-py39
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-aarch64-gcc84-py39
```
* 参考如下命令启动容器,ASCEND_RT_VISIBLE_DEVICES 指定可见的 NPU 卡号
```
Expand All @@ -22,7 +22,7 @@ docker run -it --name paddle-npu-dev -v $(pwd):/work \
-v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \
-v /usr/local/dcmi:/usr/local/dcmi \
-e ASCEND_RT_VISIBLE_DEVICES="0,1,2,3,4,5,6,7" \
registry.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-$(uname -m)-gcc84-py39 /bin/bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-npu:cann80T13-ubuntu20-$(uname -m)-gcc84-py39 /bin/bash
```
## 2、安装paddle包
当前提供 Python3.9 的 wheel 安装包。如有其他 Python 版本需求,可以参考[飞桨官方文档](https://www.paddlepaddle.org.cn/install/quick)自行编译安装。
Expand Down
6 changes: 3 additions & 3 deletions docs/other_devices_support/paddlepaddle_install_XPU.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ Currently, PaddleX supports Kunlun R200/R300 and other chips. Considering enviro
Pull the image. This image is only for the development environment and does not include a pre-compiled PaddlePaddle installation package.

```bash
docker pull registry.baidubce.com/device/paddle-xpu:ubuntu20-x86_64-gcc84-py310 # For X86 architecture
docker pull registry.baidubce.com/device/paddle-xpu:kylinv10-aarch64-gcc82-py310 # For ARM architecture
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-xpu:ubuntu20-x86_64-gcc84-py310 # For X86 architecture
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-xpu:kylinv10-aarch64-gcc82-py310 # For ARM architecture
```
Refer to the following command to start the container:

```bash
docker run -it --name=xxx -m 81920M --memory-swap=81920M \
--shm-size=128G --privileged --net=host \
-v $(pwd):/workspace -w /workspace \
registry.baidubce.com/device/paddle-xpu:$(uname -m)-py310 bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-xpu:$(uname -m)-py310 bash
```

## 2. Install Paddle Package
Expand Down
6 changes: 3 additions & 3 deletions docs/other_devices_support/paddlepaddle_install_XPU.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ comments: true
拉取镜像,此镜像仅为开发环境,镜像中不包含预编译的飞桨安装包

```
docker pull registry.baidubce.com/device/paddle-xpu:ubuntu20-x86_64-gcc84-py310 # X86 架构
docker pull registry.baidubce.com/device/paddle-xpu:kylinv10-aarch64-gcc82-py310 # ARM 架构
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-xpu:ubuntu20-x86_64-gcc84-py310 # X86 架构
docker pull ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-xpu:kylinv10-aarch64-gcc82-py310 # ARM 架构
```
参考如下命令启动容器

```
docker run -it --name=xxx -m 81920M --memory-swap=81920M \
--shm-size=128G --privileged --net=host \
-v $(pwd):/workspace -w /workspace \
registry.baidubce.com/device/paddle-xpu:$(uname -m)-py310 bash
ccr-2vdh3abv-pub.cnc.bj.baidubce.com/device/paddle-xpu:$(uname -m)-py310 bash
```
## 2、安装paddle包
当前提供 Python3.10 的 wheel 安装包。如有其他 Python 版本需求,可以参考[飞桨官方文档](https://www.paddlepaddle.org.cn/install/quick)自行编译安装。
Expand Down