From 853aaaa658d8638e47ca122bb8538c4d152bc1ad Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 02:58:27 +0000 Subject: [PATCH 01/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 28 +++++++++++++--------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 29b60d6789..8c4e31583c 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -22,9 +22,10 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw 目前容器化构建选项支持情况如下: -| 硬件平台 | Docker镜像仓库 | 标签 | 说明 | -| :----- | :------------------------ | :----------------------- | :--------------------------------------- | -| Ascend | `mindspore/mindspore-ascend` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | +| 硬件平台 | Docker命名空间 | Docker镜像名称 | 标签 | 说明 | +| :--------- | :------------------------ | :------------------------ | :----------------------- | :--------------------------------------- | +| Ascend 910 | `mindspore` | `mindspore-ascend-a1` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | +| Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | > `x.y.z`对应MindSpore版本号,例如安装2.7.0rc1版本MindSpore时,`x.y.z`应写为2.7.0rc1。 @@ -46,15 +47,16 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw ## 获取MindSpore镜像 -对于`Ascend`后端,可以直接使用以下命令获取最新的稳定镜像: +对于不同架构的Ascend硬件平台后端,可以直接使用以下命令获取最新的稳定镜像: ```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} +docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} ``` 其中: -- `{tag}`对应上述表格中的标签。 +- `{tag}`对应上述表格中的标签,如2.7.0rc1。 +- `{repository_name}` 对应上述表格中的docker镜像名称,如`indspore-ascend-a2`。 ## 运行MindSpore镜像 @@ -73,15 +75,18 @@ docker run -it -u root --ipc=host \ --device=/dev/davinci_manager \ --device=/dev/devmm_svm \ --device=/dev/hisi_hdc \ + -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ + -v /etc/ascend_install.info:/etc/ascend_install.info \ -v /var/log/npu/:/usr/slog \ - swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} \ + swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} \ /bin/bash ``` 其中: -- `{tag}`对应上述表格中的标签。 +- `{tag}`对应上述表格中的标签,如2.7.0rc1。 +- `{repository_name}` 对应上述表格中的docker镜像名称,如`indspore-ascend-a2`。 ## 验证是否安装成功 @@ -92,7 +97,7 @@ docker run -it -u root --ipc=host \ 执行以下命令: ```bash -python -c "import mindspore;mindspore.run_check()" +python -c "import mindspore;mindspore.set_device('Ascend');mindspore.run_check()" ``` 如果输出: @@ -141,13 +146,14 @@ print(ops.add(x, y)) 当需要升级MindSpore版本时: -- 根据需要升级的MindSpore版本,升级对应的Ascend AI处理器配套软件包。 +- 根据需要升级的MindSpore版本以及Ascend硬件平台,升级对应的Ascend AI处理器配套软件包。 - 直接使用以下命令获取最新的稳定镜像: ```bash - docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} + docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} ``` 其中: - `{tag}`对应上述表格中的标签。 + - `{repository_name}` 对应上述表格中的docker镜像名称,如`indspore-ascend-a2`。 \ No newline at end of file -- Gitee From 788ca0fcd2a8c431abca6adf3fbf3c2889211b2d Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 03:01:10 +0000 Subject: [PATCH 02/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 8c4e31583c..07eb278770 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -63,7 +63,7 @@ docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} 执行以下命令,启动Docker容器实例: ```bash -docker run -it -u root --ipc=host \ +docker run -it --ipc=host \ --device=/dev/davinci0 \ --device=/dev/davinci1 \ --device=/dev/davinci2 \ -- Gitee From 4be8f6b7d1ca88e0a5df48695aa0b74b1db66428 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 03:04:56 +0000 Subject: [PATCH 03/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 07eb278770..b2c506f948 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -28,6 +28,7 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw | Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | > `x.y.z`对应MindSpore版本号,例如安装2.7.0rc1版本MindSpore时,`x.y.z`应写为2.7.0rc1。 +> `Docker镜像名称` 对应MindSpore适配的硬件平台,例如mindspore-ascend-a2适配Ascend 910B。 ## 确认系统环境信息 @@ -56,7 +57,7 @@ docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,如`indspore-ascend-a2`。 +- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `indspore-ascend-a2`。 ## 运行MindSpore镜像 @@ -86,7 +87,7 @@ docker run -it --ipc=host \ 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,如`indspore-ascend-a2`。 +- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `indspore-ascend-a2`。 ## 验证是否安装成功 @@ -156,4 +157,4 @@ print(ops.add(x, y)) 其中: - `{tag}`对应上述表格中的标签。 - - `{repository_name}` 对应上述表格中的docker镜像名称,如`indspore-ascend-a2`。 \ No newline at end of file + - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `indspore-ascend-a2`。 \ No newline at end of file -- Gitee From b92db92285f3cbf34c1d0ad4fa0525c479fe7450 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 03:06:42 +0000 Subject: [PATCH 04/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 1 + 1 file changed, 1 insertion(+) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index b2c506f948..d0fed74cdd 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -28,6 +28,7 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw | Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | > `x.y.z`对应MindSpore版本号,例如安装2.7.0rc1版本MindSpore时,`x.y.z`应写为2.7.0rc1。 + > `Docker镜像名称` 对应MindSpore适配的硬件平台,例如mindspore-ascend-a2适配Ascend 910B。 ## 确认系统环境信息 -- Gitee From ea958b2ab5f4beee680d2eca2bb3c8d1bf61858c Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 03:07:49 +0000 Subject: [PATCH 05/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index d0fed74cdd..39e5c73fd7 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -58,7 +58,7 @@ docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `indspore-ascend-a2`。 +- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 ## 运行MindSpore镜像 @@ -88,7 +88,7 @@ docker run -it --ipc=host \ 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `indspore-ascend-a2`。 +- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 ## 验证是否安装成功 @@ -158,4 +158,4 @@ print(ops.add(x, y)) 其中: - `{tag}`对应上述表格中的标签。 - - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `indspore-ascend-a2`。 \ No newline at end of file + - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 \ No newline at end of file -- Gitee From 37134f38bcd4b62c161a278c4a95d5e5db27d9dc Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 08:51:29 +0000 Subject: [PATCH 06/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 39e5c73fd7..4ec8e0f5ec 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -29,11 +29,11 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw > `x.y.z`对应MindSpore版本号,例如安装2.7.0rc1版本MindSpore时,`x.y.z`应写为2.7.0rc1。 -> `Docker镜像名称` 对应MindSpore适配的硬件平台,例如mindspore-ascend-a2适配Ascend 910B。 +> `Docker镜像名称` 对应MindSpore适配的硬件平台,例如Ascend 910B需要选择`mindspore-ascend-a2`。 ## 确认系统环境信息 -- 确认安装基于ARM的Ubuntu 18.04 / CentOS 7.6 64位操作系统。 +- 确认Ubuntu 18.04 / CentOS 7.6 64位以上的操作系统。 - 确认安装[Docker 18.03或更高版本](https://docs.docker.com/get-docker/)。 -- Gitee From d849f00edffa760879c8199c53453803f00ed009 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 17:24:25 +0800 Subject: [PATCH 07/22] 'modify' --- install/mindspore_ascend_install_docker_en.md | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/install/mindspore_ascend_install_docker_en.md b/install/mindspore_ascend_install_docker_en.md index bc8ebd917e..b4871c3b01 100644 --- a/install/mindspore_ascend_install_docker_en.md +++ b/install/mindspore_ascend_install_docker_en.md @@ -22,15 +22,18 @@ The Docker image of MindSpore is hosted on [Huawei SWR](https://support.huaweicl The current support for containerized build options is as follows: -| Hardware | Docker Image Hub | Label | Note | -| :----- | :------------------------ | :----------------------- | :--------------------------------------- | -| Ascend | `mindspore/mindspore-ascend` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | +| Hardware | Docker Image Namespace | Docker Image Name | Label | Note | +| :----- | :------------------------ | :------------------------ | :----------------------- | :--------------------------------------- | +| Ascend 910 | `mindspore` | `mindspore-ascend-a1` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | +| Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | > `x.y.z` corresponds to the MindSpore version number. For example, when MindSpore version 2.7.0rc1 is installed, `x.y.z` should be written as 2.7.0rc1. +> The `Docker Image Name` corresponds to the hardware platform supported by MindSpore. For example, `Ascend 910B` requires selecting `mindspore-ascend-a2`. + ## System Environment Information Confirmation -- Ensure that Ubuntu 18.04 / CentOS 7.6 is installed with the 64-bit ARM architecture operating system. +- Confirm the operating system is Ubuntu 18.04/CentOS 7.6 or later (64-bit). - Ensure that [Docker 18.03 or later](https://docs.docker.com/get-docker/) is installed. @@ -49,19 +52,20 @@ The default installation path of the installation package is `/usr/local/Ascend` For the `Ascend` backend, you can directly use the following command to obtain the latest stable image: ```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} +docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} ``` of which, - `{tag}` corresponds to the label in the above table. +- `{repository_name}` corresponds to the Docker image name specified in the table above. Select the appropriate name based on your hardware platform (e.g., for `Ascend 910B`, choose `mindspore-ascend-a2`). ## Running MindSpore Image Execute the following command to start the Docker container instance: ```bash -docker run -it -u root --ipc=host \ +docker run -it --ipc=host \ --device=/dev/davinci0 \ --device=/dev/davinci1 \ --device=/dev/davinci2 \ @@ -73,15 +77,18 @@ docker run -it -u root --ipc=host \ --device=/dev/davinci_manager \ --device=/dev/devmm_svm \ --device=/dev/hisi_hdc \ + -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ + -v /etc/ascend_install.info:/etc/ascend_install.info \ -v /var/log/npu/:/usr/slog \ - swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} \ + swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} \ /bin/bash ``` of which, - `{tag}` corresponds to the label in the above table. +- `{repository_name}` corresponds to the Docker image name specified in the table above. Select the appropriate name based on your hardware platform (e.g., for `Ascend 910B`, choose `mindspore-ascend-a2`). ## Installation Verification @@ -145,9 +152,10 @@ When you need to update the MindSpore version: - directly use the following command to obtain the latest stable image: ```bash - docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} + docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} ``` of which, - `{tag}` corresponds to the label in the above table. + - `{repository_name}` corresponds to the Docker image name specified in the table above. Select the appropriate name based on your hardware platform (e.g., for `Ascend 910B`, choose `mindspore-ascend-a2`). -- Gitee From 80a77ce1de09cd25f75a645e233e1eb8228895c5 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 17:26:00 +0800 Subject: [PATCH 08/22] 'modify' --- install/mindspore_ascend_install_docker_en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker_en.md b/install/mindspore_ascend_install_docker_en.md index b4871c3b01..6df3814096 100644 --- a/install/mindspore_ascend_install_docker_en.md +++ b/install/mindspore_ascend_install_docker_en.md @@ -23,7 +23,7 @@ The Docker image of MindSpore is hosted on [Huawei SWR](https://support.huaweicl The current support for containerized build options is as follows: | Hardware | Docker Image Namespace | Docker Image Name | Label | Note | -| :----- | :------------------------ | :------------------------ | :----------------------- | :--------------------------------------- | +| :----------- | :------------------ | :------------------------ | :----------------------- | :--------------------------------------- | | Ascend 910 | `mindspore` | `mindspore-ascend-a1` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | | Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | -- Gitee From 5e0d8ba8cc1c515ae895163dd9ea42534177cc26 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Tue, 29 Jul 2025 19:23:46 +0800 Subject: [PATCH 09/22] 'modify' --- install/mindspore_ascend_install_docker.md | 2 +- install/mindspore_ascend_install_docker_en.md | 24 +++++++------------ 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 4ec8e0f5ec..fb0b159b9d 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -33,7 +33,7 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw ## 确认系统环境信息 -- 确认Ubuntu 18.04 / CentOS 7.6 64位以上的操作系统。 +- 确认Ubuntu 18.04 / CentOS 7.6 / EulerOS 2.8 / openEuler 20.03 / KylinV10 SP1 64位以上的操作系统。 - 确认安装[Docker 18.03或更高版本](https://docs.docker.com/get-docker/)。 diff --git a/install/mindspore_ascend_install_docker_en.md b/install/mindspore_ascend_install_docker_en.md index 6df3814096..bc8ebd917e 100644 --- a/install/mindspore_ascend_install_docker_en.md +++ b/install/mindspore_ascend_install_docker_en.md @@ -22,18 +22,15 @@ The Docker image of MindSpore is hosted on [Huawei SWR](https://support.huaweicl The current support for containerized build options is as follows: -| Hardware | Docker Image Namespace | Docker Image Name | Label | Note | -| :----------- | :------------------ | :------------------------ | :----------------------- | :--------------------------------------- | -| Ascend 910 | `mindspore` | `mindspore-ascend-a1` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | -| Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | +| Hardware | Docker Image Hub | Label | Note | +| :----- | :------------------------ | :----------------------- | :--------------------------------------- | +| Ascend | `mindspore/mindspore-ascend` | `x.y.z` | The production environment of MindSpore Ascend x.y.z together with the corresponding version of Ascend Data Center Solution. | > `x.y.z` corresponds to the MindSpore version number. For example, when MindSpore version 2.7.0rc1 is installed, `x.y.z` should be written as 2.7.0rc1. -> The `Docker Image Name` corresponds to the hardware platform supported by MindSpore. For example, `Ascend 910B` requires selecting `mindspore-ascend-a2`. - ## System Environment Information Confirmation -- Confirm the operating system is Ubuntu 18.04/CentOS 7.6 or later (64-bit). +- Ensure that Ubuntu 18.04 / CentOS 7.6 is installed with the 64-bit ARM architecture operating system. - Ensure that [Docker 18.03 or later](https://docs.docker.com/get-docker/) is installed. @@ -52,20 +49,19 @@ The default installation path of the installation package is `/usr/local/Ascend` For the `Ascend` backend, you can directly use the following command to obtain the latest stable image: ```bash -docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} +docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} ``` of which, - `{tag}` corresponds to the label in the above table. -- `{repository_name}` corresponds to the Docker image name specified in the table above. Select the appropriate name based on your hardware platform (e.g., for `Ascend 910B`, choose `mindspore-ascend-a2`). ## Running MindSpore Image Execute the following command to start the Docker container instance: ```bash -docker run -it --ipc=host \ +docker run -it -u root --ipc=host \ --device=/dev/davinci0 \ --device=/dev/davinci1 \ --device=/dev/davinci2 \ @@ -77,18 +73,15 @@ docker run -it --ipc=host \ --device=/dev/davinci_manager \ --device=/dev/devmm_svm \ --device=/dev/hisi_hdc \ - -v /usr/local/bin/npu-smi:/usr/local/bin/npu-smi \ -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ - -v /etc/ascend_install.info:/etc/ascend_install.info \ -v /var/log/npu/:/usr/slog \ - swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} \ + swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} \ /bin/bash ``` of which, - `{tag}` corresponds to the label in the above table. -- `{repository_name}` corresponds to the Docker image name specified in the table above. Select the appropriate name based on your hardware platform (e.g., for `Ascend 910B`, choose `mindspore-ascend-a2`). ## Installation Verification @@ -152,10 +145,9 @@ When you need to update the MindSpore version: - directly use the following command to obtain the latest stable image: ```bash - docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} + docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/mindspore-ascend:{tag} ``` of which, - `{tag}` corresponds to the label in the above table. - - `{repository_name}` corresponds to the Docker image name specified in the table above. Select the appropriate name based on your hardware platform (e.g., for `Ascend 910B`, choose `mindspore-ascend-a2`). -- Gitee From a6cd45ae1cf1304ab1482e57034e8d08d668ca16 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 02:57:50 +0000 Subject: [PATCH 10/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index fb0b159b9d..84f8785a6b 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -81,6 +81,8 @@ docker run -it --ipc=host \ -v /usr/local/Ascend/driver:/usr/local/Ascend/driver \ -v /etc/ascend_install.info:/etc/ascend_install.info \ -v /var/log/npu/:/usr/slog \ + -v /usr/bin/hccn_tool:/usr/bin/hccn_tool \ + -v /etc/hccn.conf:/etc/hccn.conf \ swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} \ /bin/bash ``` -- Gitee From d2e633efdc77222460f6f9a3f265f0fa602bc1fc Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 03:00:22 +0000 Subject: [PATCH 11/22] update install/mindspore_ascend_install_docker.md. Signed-off-by: nepdada <1722860866@qq.com> --- install/mindspore_ascend_install_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 84f8785a6b..cf96939941 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -82,7 +82,7 @@ docker run -it --ipc=host \ -v /etc/ascend_install.info:/etc/ascend_install.info \ -v /var/log/npu/:/usr/slog \ -v /usr/bin/hccn_tool:/usr/bin/hccn_tool \ - -v /etc/hccn.conf:/etc/hccn.conf \ + -v /etc/hccn.conf:/etc/hccn.conf \ swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} \ /bin/bash ``` -- Gitee From f193c5b713832e1650aff96893a6781e4885e633 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 11:24:21 +0800 Subject: [PATCH 12/22] 'modify' --- install/mindspore_ascend_install_docker.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index cf96939941..7221066d68 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -9,6 +9,7 @@ - [运行MindSpore镜像](#运行mindspore镜像) - [验证是否安装成功](#验证是否安装成功) - [升级MindSpore版本](#升级mindspore版本) + - [PS](#PS) @@ -160,4 +161,7 @@ print(ops.add(x, y)) 其中: - `{tag}`对应上述表格中的标签。 - - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 \ No newline at end of file + - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 + +## PS +- 提示:启动容器时确保没有其他正在运行的容器挂载了npu设备 \ No newline at end of file -- Gitee From c3ccb7207dea08080c4f57d00a0bdb91059ec1d9 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 15:03:26 +0800 Subject: [PATCH 13/22] 'modify' --- install/mindspore_ascend_install_docker.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 7221066d68..aaa65ab596 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -9,7 +9,7 @@ - [运行MindSpore镜像](#运行mindspore镜像) - [验证是否安装成功](#验证是否安装成功) - [升级MindSpore版本](#升级mindspore版本) - - [PS](#PS) + - [注意事项](#注意事项) @@ -163,5 +163,5 @@ print(ops.add(x, y)) - `{tag}`对应上述表格中的标签。 - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 -## PS -- 提示:启动容器时确保没有其他正在运行的容器挂载了npu设备 \ No newline at end of file +## 注意事项 +- PS:启动容器时确保没有其他正在运行的容器挂载了npu设备 \ No newline at end of file -- Gitee From b28a5af219ab77cace512987bcf48da36ae1d1ac Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 15:09:14 +0800 Subject: [PATCH 14/22] 'modify' --- install/mindspore_ascend_install_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index aaa65ab596..9de38e8896 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -164,4 +164,4 @@ print(ops.add(x, y)) - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 ## 注意事项 -- PS:启动容器时确保没有其他正在运行的容器挂载了npu设备 \ No newline at end of file +- PS:启动容器时需要确保没有其他正在运行的容器占用了npu设备,进入容器后执行 `npu-smi info` 检查是否能正常显示npu设备信息 \ No newline at end of file -- Gitee From 7bae3218f9dc3db51ebe6529a905042c6c49f0f8 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 15:39:47 +0800 Subject: [PATCH 15/22] 'modify' --- install/mindspore_ascend_install_docker.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 9de38e8896..b72f8d7d64 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -30,7 +30,6 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw > `x.y.z`对应MindSpore版本号,例如安装2.7.0rc1版本MindSpore时,`x.y.z`应写为2.7.0rc1。 -> `Docker镜像名称` 对应MindSpore适配的硬件平台,例如Ascend 910B需要选择`mindspore-ascend-a2`。 ## 确认系统环境信息 @@ -59,7 +58,8 @@ docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 +- `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像; +- Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 ## 运行MindSpore镜像 @@ -91,7 +91,7 @@ docker run -it --ipc=host \ 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 + ## 验证是否安装成功 @@ -161,7 +161,8 @@ print(ops.add(x, y)) 其中: - `{tag}`对应上述表格中的标签。 - - `{repository_name}` 对应上述表格中的docker镜像名称,根据自身的硬件平台选择,如`Ascend 910B` 需要选择 `mindspore-ascend-a2`。 + - `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像; + - Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 ## 注意事项 - PS:启动容器时需要确保没有其他正在运行的容器占用了npu设备,进入容器后执行 `npu-smi info` 检查是否能正常显示npu设备信息 \ No newline at end of file -- Gitee From 74cec21ad852e8b1566fb487b76ce49ea5f9769b Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Wed, 30 Jul 2025 15:41:28 +0800 Subject: [PATCH 16/22] 'modify' --- install/mindspore_ascend_install_docker.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index b72f8d7d64..5dca5a0013 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -58,8 +58,8 @@ docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像; -- Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 +- `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像;Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 + ## 运行MindSpore镜像 @@ -161,8 +161,7 @@ print(ops.add(x, y)) 其中: - `{tag}`对应上述表格中的标签。 - - `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像; - - Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 + - `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像;Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 ## 注意事项 - PS:启动容器时需要确保没有其他正在运行的容器占用了npu设备,进入容器后执行 `npu-smi info` 检查是否能正常显示npu设备信息 \ No newline at end of file -- Gitee From e0c29c33e76e14eeeeca8aaaef1590d94d90e987 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Thu, 31 Jul 2025 10:41:33 +0800 Subject: [PATCH 17/22] 'modify' --- install/mindspore_ascend_install_docker.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 5dca5a0013..082c2fda31 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -164,4 +164,8 @@ print(ops.add(x, y)) - `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像;Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 ## 注意事项 -- PS:启动容器时需要确保没有其他正在运行的容器占用了npu设备,进入容器后执行 `npu-smi info` 检查是否能正常显示npu设备信息 \ No newline at end of file +- PS: 在非root用户模式下创建容器时,必须确保目标NPU设备未被其他非root容器占用。启动后可以执行 `npu-smi info` 命令验证设备状态,若目标NPU设备已被其他非root容器占用,则会出现以下报错,可以在创建容器时加上 `-u root`。 +``` +DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) +dcmi model initialized failed, because the device is used. ret is -802 +``` \ No newline at end of file -- Gitee From 25a720367dd334c5ac2bb3a8e0760fed0a0015b9 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Thu, 31 Jul 2025 10:43:39 +0800 Subject: [PATCH 18/22] 'modify' --- install/mindspore_ascend_install_docker.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 082c2fda31..9355e896cd 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -166,6 +166,6 @@ print(ops.add(x, y)) ## 注意事项 - PS: 在非root用户模式下创建容器时,必须确保目标NPU设备未被其他非root容器占用。启动后可以执行 `npu-smi info` 命令验证设备状态,若目标NPU设备已被其他非root容器占用,则会出现以下报错,可以在创建容器时加上 `-u root`。 ``` -DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) -dcmi model initialized failed, because the device is used. ret is -802 + DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) + dcmi model initialized failed, because the device is used. ret is -802 ``` \ No newline at end of file -- Gitee From 44694a8791fa4b45420706785240a4c41788d5eb Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Thu, 31 Jul 2025 11:26:36 +0800 Subject: [PATCH 19/22] 'modify' --- install/mindspore_ascend_install_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 9355e896cd..44d991eb14 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -164,7 +164,7 @@ print(ops.add(x, y)) - `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像;Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 ## 注意事项 -- PS: 在非root用户模式下创建容器时,必须确保目标NPU设备未被其他非root容器占用。启动后可以执行 `npu-smi info` 命令验证设备状态,若目标NPU设备已被其他非root容器占用,则会出现以下报错,可以在创建容器时加上 `-u root`。 +- 在非root用户模式下创建容器时,必须确保目标NPU设备未被其他非root容器占用。启动后可以执行 `npu-smi info` 命令验证设备状态,若目标NPU设备已被其他非root容器占用,则会出现以下报错,可以在创建容器时加上 `-u root`。 ``` DrvMngGetConsoleLogLevel failed. (g_conLogLevel=3) dcmi model initialized failed, because the device is used. ret is -802 -- Gitee From 8733ed575f147410b20cac0d68b3aab95aeddc11 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Thu, 31 Jul 2025 11:49:26 +0800 Subject: [PATCH 20/22] 'modify' --- install/mindspore_ascend_install_docker.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 44d991eb14..787541d8dd 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -25,17 +25,23 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw | 硬件平台 | Docker命名空间 | Docker镜像名称 | 标签 | 说明 | | :--------- | :------------------------ | :------------------------ | :----------------------- | :--------------------------------------- | -| Ascend 910 | `mindspore` | `mindspore-ascend-a1` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | -| Ascend 910B | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | +| Atlas 训练系列 | `mindspore` | `mindspore-ascend-a1` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | +| Atlas A2 训练系列 | `mindspore` | `mindspore-ascend-a2` | `x.y.z` | 已经预安装Ascend Data Center Solution 与对应的MindSpore Ascend x.y.z版本的生产环境。 | > `x.y.z`对应MindSpore版本号,例如安装2.7.0rc1版本MindSpore时,`x.y.z`应写为2.7.0rc1。 ## 确认系统环境信息 -- 确认Ubuntu 18.04 / CentOS 7.6 / EulerOS 2.8 / openEuler 20.03 / KylinV10 SP1 64位以上的操作系统。 +下表列出了安装MindSpore所需的系统环境和第三方依赖。 + +|软件名称|版本|作用| +|-|-|-| +|Ubuntu 18.04 / CentOS 7.6 / EulerOS 2.8 / openEuler 20.03 / KylinV10 SP1|-|编译和运行MindSpore的操作系统| +|[昇腾AI处理器配套软件包](#安装昇腾ai处理器配套软件包)|-|MindSpore使用的Ascend平台AI计算库| +|Docker | Docker 18.03或更高版本 |提供轻量级容器化环境,实现MindSpore及其依赖的隔离部署与跨平台运行| + -- 确认安装[Docker 18.03或更高版本](https://docs.docker.com/get-docker/)。 ## 安装昇腾AI处理器配套软件包 @@ -58,7 +64,7 @@ docker pull swr.cn-south-1.myhuaweicloud.com/mindspore/{repository_name}:{tag} 其中: - `{tag}`对应上述表格中的标签,如2.7.0rc1。 -- `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像;Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 +- `{repository_name}` 对应上述表格中的docker镜像名称,使用 Atlas 训练系列产品请下载 `mindspore-ascend-a1` 镜像;Atlas A2 训练系列产品请下载 `mindspore-ascend-a2` 镜像。 ## 运行MindSpore镜像 @@ -161,7 +167,7 @@ print(ops.add(x, y)) 其中: - `{tag}`对应上述表格中的标签。 - - `{repository_name}` 对应上述表格中的docker镜像名称,使用Atlas A2训练系列产品(Ascend 910B)请下载 `mindspore-ascend-a2` 镜像;Atlas 训练系列产品(Ascend 910)请下载 `mindspore-ascend-a1` 镜像。 + - `{repository_name}` 对应上述表格中的docker镜像名称,使用 Atlas 训练系列产品请下载 `mindspore-ascend-a1` 镜像;Atlas A2 训练系列产品请下载 `mindspore-ascend-a2` 镜像。 ## 注意事项 - 在非root用户模式下创建容器时,必须确保目标NPU设备未被其他非root容器占用。启动后可以执行 `npu-smi info` 命令验证设备状态,若目标NPU设备已被其他非root容器占用,则会出现以下报错,可以在创建容器时加上 `-u root`。 -- Gitee From fa5cf74db0930ffe2fbf24356880b3af71367b9f Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Thu, 31 Jul 2025 13:42:02 +0800 Subject: [PATCH 21/22] 'modify' --- install/mindspore_ascend_install_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 787541d8dd..52b058ff6e 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -33,7 +33,7 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw ## 确认系统环境信息 -下表列出了安装MindSpore所需的系统环境和第三方依赖。 +下表列出了使用Docker方式快速安装MindSpore所需的系统环境。 |软件名称|版本|作用| |-|-|-| -- Gitee From fc713a664b8de246974c1c9ef84e54bb06dea741 Mon Sep 17 00:00:00 2001 From: nepdada <1722860866@qq.com> Date: Thu, 31 Jul 2025 13:55:48 +0800 Subject: [PATCH 22/22] 'modify' --- install/mindspore_ascend_install_docker.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/mindspore_ascend_install_docker.md b/install/mindspore_ascend_install_docker.md index 52b058ff6e..88dc7bb4c2 100644 --- a/install/mindspore_ascend_install_docker.md +++ b/install/mindspore_ascend_install_docker.md @@ -37,7 +37,7 @@ MindSpore的Docker镜像托管在[Huawei SWR](https://support.huaweicloud.com/sw |软件名称|版本|作用| |-|-|-| -|Ubuntu 18.04 / CentOS 7.6 / EulerOS 2.8 / openEuler 20.03 / KylinV10 SP1|-|编译和运行MindSpore的操作系统| +|Ubuntu 18.04 / CentOS 7.6 / EulerOS 2.8 / openEuler 20.03 / KylinV10 SP1|-|运行MindSpore容器的操作系统| |[昇腾AI处理器配套软件包](#安装昇腾ai处理器配套软件包)|-|MindSpore使用的Ascend平台AI计算库| |Docker | Docker 18.03或更高版本 |提供轻量级容器化环境,实现MindSpore及其依赖的隔离部署与跨平台运行| -- Gitee