已合并
docs: Update CANN version in legacy docs from 8.5.2 to 9.1.0 #3013
docs: Update CANN version in legacy docs from 8.5.2 to 9.1.0 #3013
已合并
xubin创建于 9 天前
21 个文件变更+33-103
@@ -173,7 +173,7 @@ chmod +x Ascend-hdk-<chip_type>-npu-firmware_<version>.run
173 |-y, --yes|确认所有软件重新安装|否|-|173 |-y, --yes|确认所有软件重新安装|否|-|
174 |-n, --no|自动跳过第三方依赖库安装|否|-|174 |-n, --no|自动跳过第三方依赖库安装|否|-|
175 |-mt, --megatron|安装Megatron-LM|否|默认安装版本Megatron-LM 0.12.0|175 |-mt, --megatron|安装Megatron-LM|否|默认安装版本Megatron-LM 0.12.0|
176- |-ic, --install-cann |安装CANN|否|默认安装版本CANN 8.5.0|176+ |-ic, --install-cann |安装CANN|否|默认安装版本CANN 9.1.0|
177 |-h, --help|显示安装帮助|否|-|177 |-h, --help|显示安装帮助|否|-|
178 178 
179 3. 如已安装了PyTorch或TorchNPU,请按以下步骤操作;未安装可跳过本步骤:179 3. 如已安装了PyTorch或TorchNPU,请按以下步骤操作;未安装可跳过本步骤:
@@ -39,7 +39,6 @@ commit_id = 57c390
39【模型开发时推荐使用配套的环境版本】39【模型开发时推荐使用配套的环境版本】
40 40 
41请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。41请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
42-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
43 42 
44<a id="jump1.1"></a>43<a id="jump1.1"></a>
45 44 
@@ -41,8 +41,6 @@ commit_id=2149f36f22db601f9dbf70472fea11576f62a0f6
41 41 
42请参考[安装指南](../../docs/zh/pytorch/install_guide.md)42请参考[安装指南](../../docs/zh/pytorch/install_guide.md)
43 43 
44-> DanceGRPO场景下,Python版本推荐3.10
45- 
46<a id="jump1.1"></a>44<a id="jump1.1"></a>
47 45 
48### 1. 仓库拉取46### 1. 仓库拉取
@@ -41,8 +41,6 @@ commit_id=c548f2e60d409fc1d92208472c0f2389998af632
41 41 
42请参考[安装指南](../../docs/zh/pytorch/install_guide.md)42请参考[安装指南](../../docs/zh/pytorch/install_guide.md)
43 43 
44-> 注意:Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
45- 
46<a id="jump1.1"></a>44<a id="jump1.1"></a>
47 45 
48### 1. 仓库拉取46### 1. 仓库拉取
@@ -47,12 +47,6 @@ commit_id=8cb5963
47【模型开发时推荐使用配套的环境版本】47【模型开发时推荐使用配套的环境版本】
48 48 
49请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。49请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
50-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
51- 
52-‼️MoE部分的加速特性依赖较新版本的TorchNPU和CANN,推荐使用以下版本
53- 
54-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/83RC1/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler&Software=cannToolKit)
55-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/insg_0004.html)
56 50 
57<a id="jump1.2"></a>51<a id="jump1.2"></a>
58 52 
@@ -55,7 +55,6 @@ commit_id=2410d1db
55【模型开发时推荐使用配套的环境版本】55【模型开发时推荐使用配套的环境版本】
56 56 
57请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。57请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
58-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
59 58 
60<a id="jump1.2"></a>59<a id="jump1.2"></a>
61 60 
@@ -51,12 +51,6 @@ url=https://huggingface.co/moonshotai/Kimi-K3/tree/main
51【模型开发时推荐使用配套的环境版本】51【模型开发时推荐使用配套的环境版本】
52 52 
53请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/tree/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。53请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/tree/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
54-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本,CANN推荐使用8.5.2版本;
55- 
56-‼️ MoE部分的加速特性依赖较新版本的CANN,请使用 8.5.0 以上版本:
57- 
58-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/850/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler)
59-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/docs/zh/installation_guide/installation_description.md)
60 54 
61<a id="jump1.2"></a>55<a id="jump1.2"></a>
62 56 
@@ -65,10 +65,6 @@ commit_id=74797c9
65 65 
66请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/tree/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。66请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/tree/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
67 67 
68-‼️ 部分特性依赖较新版本的CANN,请使用 8.5.0 以上版本:
69- 
70-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/850/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler)
71- 
72<a id="jump1.2"></a>68<a id="jump1.2"></a>
73 69 
74### 2. 环境搭建70### 2. 环境搭建
@@ -69,12 +69,6 @@ commit_id=28c3c73fe557666c3de176e1e50a5220152ccfca
69【模型开发时推荐使用配套的环境版本】69【模型开发时推荐使用配套的环境版本】
70 70 
71请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。71请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
72-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
73- 
74-‼️部分特性依赖较新版本的TorchNPU和CANN,推荐使用以下版本
75- 
76-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/850/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler)
77-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/docs/zh/installation_guide/installation_description.md)
78 72 
79<a id="jump1.2"></a>73<a id="jump1.2"></a>
80 74 
@@ -48,7 +48,6 @@ commit_id=68119e5
48【模型开发时推荐使用配套的环境版本】48【模型开发时推荐使用配套的环境版本】
49 49 
50请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。50请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
51-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
52 51 
53<a id="jump1.2"></a>52<a id="jump1.2"></a>
54 53 
@@ -47,7 +47,6 @@ commit_id=fc91372
47【模型开发时推荐使用配套的环境版本】47【模型开发时推荐使用配套的环境版本】
48 48 
49请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。49请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
50-> Python版本推荐3.10,torch和torch_npu版本推荐2.7.1版本,CANN推荐使用8.5.2版本;
51 50 
52<a id="jump1.2"></a>51<a id="jump1.2"></a>
53 52 
@@ -46,10 +46,6 @@ commit_id=13b5e3f
46 46 
47请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/tree/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。47请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/tree/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
48 48 
49-‼️ 部分特性依赖较新版本的CANN,请使用 8.5.0 以上版本:
50- 
51-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/850/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler)
52- 
53<a id="jump1.2"></a>49<a id="jump1.2"></a>
54 50 
55### 2. 环境搭建51### 2. 环境搭建
@@ -50,12 +50,6 @@ commit_id=fc91372
50【模型开发时推荐使用配套的环境版本】50【模型开发时推荐使用配套的环境版本】
51 51 
52请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。52请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
53-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本,CANN推荐使用8.5.2版本;
54- 
55-‼️MoE部分的加速特性依赖较新版本的TorchNPU和CANN,推荐使用以下版本
56- 
57-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/850/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler)
58-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/docs/zh/installation_guide/installation_description.md)
59 53 
60<a id="jump1.2"></a>54<a id="jump1.2"></a>
61 55 
@@ -45,7 +45,6 @@ commit_id=7d9754a
45【模型开发时推荐使用配套的环境版本】45【模型开发时推荐使用配套的环境版本】
46 46 
47请参考[安装指南](../../docs/zh/pytorch/install_guide.md),完成昇腾软件安装。47请参考[安装指南](../../docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
48-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本,CANN推荐使用8.5.2版本;
49 48 
50### 2. 环境搭建49### 2. 环境搭建
51 50 
@@ -50,12 +50,6 @@ commit_id=7a833d1
50【模型开发时推荐使用配套的环境版本】50【模型开发时推荐使用配套的环境版本】
51 51 
52请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。52请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
53-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
54- 
55-推荐使用以下版本
56- 
57-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/83RC1/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler&Software=cannToolKit)
58-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/insg_0004.html)
59 53 
60<a id="jump1.2"></a>54<a id="jump1.2"></a>
61 55 
@@ -49,7 +49,6 @@ commit_id=7a833d1
49【模型开发时推荐使用配套的环境版本】49【模型开发时推荐使用配套的环境版本】
50 50 
51请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。51请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
52-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
53 52 
54<a id="jump1.2"></a>53<a id="jump1.2"></a>
55 54 
@@ -47,12 +47,6 @@ commit_id=c0dbe09
47【模型开发时推荐使用配套的环境版本】47【模型开发时推荐使用配套的环境版本】
48 48 
49请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。49请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
50-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
51- 
52-‼️MoE部分的加速特性依赖较新版本的TorchNPU和CANN,推荐使用以下版本
53- 
54-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/83RC1/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler&Software=cannToolKit)
55-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/insg_0004.html)
56 50 
57<a id="jump1.2"></a>51<a id="jump1.2"></a>
58 52 
@@ -45,12 +45,6 @@ commit_id=c0dbe09
45【模型开发时推荐使用配套的环境版本】45【模型开发时推荐使用配套的环境版本】
46 46 
47请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。47请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
48-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
49- 
50-‼️MoE部分的加速特性依赖较新版本的TorchNPU和CANN,推荐使用以下版本
51- 
52-- [CANN](https://www.hiascend.com/document/detail/zh/canncommercial/850/softwareinst/instg/instg_0008.html?Mode=PmIns&InstallType=local&OS=openEuler)
H
Hhtwang9 天前
已过期

scripts/install_cann.sh中的cann路径 和docs/zh/pytorch/install_guide.md中cann版本都刷新下

likedislike
xubin
9 天前 评论:
53-- [TorchNPU](https://www.hiascend.com/document/detail/zh/Pytorch/730/configandinstg/instg/docs/zh/installation_guide/installation_description.md)
54 48 
55<a id="jump1.2"></a>49<a id="jump1.2"></a>
56 50 
@@ -38,8 +38,6 @@
38 38 
39昇腾基础软件安装请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md)39昇腾基础软件安装请参考[安装指南](https://gitcode.com/Ascend/MindSpeed-MM/blob/master/docs/zh/pytorch/install_guide.md)
40 40 
41-> Python版本推荐3.10,torch和TorchNPU版本推荐2.7.1版本
42- 
431. 在工作目录执行下列命令411. 在工作目录执行下列命令
44 42 
45 ```shell43 ```shell
@@ -43,7 +43,6 @@ url=https://huggingface.co/stepfun-ai/Step3-VL-10B
43【模型开发时推荐使用配套的环境版本】43【模型开发时推荐使用配套的环境版本】
44 44 
45请参考[安装指南](../../docs/zh/pytorch/install_guide.md),完成昇腾软件安装。45请参考[安装指南](../../docs/zh/pytorch/install_guide.md),完成昇腾软件安装。
46-> Python 版本推荐 3.10,torch 和 TorchNPU 版本推荐 2.7.1。
47 46 
48### 2. 环境搭建47### 2. 环境搭建
49 48 
@@ -41,12 +41,11 @@ install_cann_a2_x86_apt() {
41 sudo apt-get update41 sudo apt-get update
42 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)42 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)
43 43 
44- #Ascend-cann为驱动、Toolkit合一包44+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-x86_64.run
45- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-x86_64.run45+ bash ./Ascend-cann-toolkit_9.1.0_linux-x86_64.run --install
46- bash ./Ascend-cann_8.5.0_linux-x86_64.run --install
47 46 
48- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-910b-ops_8.5.0_linux-x86_64.run47+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-910b-ops_9.1.0_linux-x86_64.run
49- bash ./Ascend-cann-910b-ops_8.5.0_linux-x86_64.run --install48+ bash ./Ascend-cann-910b-ops_9.1.0_linux-x86_64.run --install
50}49}
51 50 
52install_cann_a2_x86_yum() {51install_cann_a2_x86_yum() {
@@ -56,11 +55,11 @@ install_cann_a2_x86_yum() {
56 sudo yum makecache55 sudo yum makecache
57 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)56 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)
58 57 
59- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-x86_64.run58+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-x86_64.run
60- bash ./Ascend-cann_8.5.0_linux-x86_64.run --install59+ bash ./Ascend-cann-toolkit_9.1.0_linux-x86_64.run --install
61 60 
62- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-910b-ops_8.5.0_linux-x86_64.run61+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-910b-ops_9.1.0_linux-x86_64.run
63- bash ./Ascend-cann-910b-ops_8.5.0_linux-x86_64.run --install62+ bash ./Ascend-cann-910b-ops_9.1.0_linux-x86_64.run --install
64}63}
65 64 
66install_cann_a2_arm_apt() {65install_cann_a2_arm_apt() {
@@ -68,12 +67,11 @@ install_cann_a2_arm_apt() {
68 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash67 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
69 sudo apt-get update68 sudo apt-get update
70 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)69 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)
71- #Ascend-cann为驱动、Toolkit合一包70+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-aarch64.run
72- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-aarch64.run71+ bash ./Ascend-cann-toolkit_9.1.0_linux-aarch64.run --install
73- bash ./Ascend-cann_8.5.0_linux-aarch64.run --install
74 72 
75- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-910b-ops_8.5.0_linux-aarch64.run73+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-910b-ops_9.1.0_linux-aarch64.run
76- bash ./Ascend-cann-910b-ops_8.5.0_linux-aarch64.run --install74+ bash ./Ascend-cann-910b-ops_9.1.0_linux-aarch64.run --install
77}75}
78 76 
79install_cann_a2_arm_yum() {77install_cann_a2_arm_yum() {
@@ -81,12 +79,11 @@ install_cann_a2_arm_yum() {
81 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash79 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
82 sudo yum makecache80 sudo yum makecache
83 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)81 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)
84- #Ascend-cann为驱动、Toolkit合一包82+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-aarch64.run
85- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-aarch64.run83+ bash ./Ascend-cann-toolkit_9.1.0_linux-aarch64.run --install
86- bash ./Ascend-cann_8.5.0_linux-aarch64.run --install
87 84 
88- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-910b-ops_8.5.0_linux-aarch64.run85+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-910b-ops_9.1.0_linux-aarch64.run
89- bash ./Ascend-cann-910b-ops_8.5.0_linux-aarch64.run --install86+ bash ./Ascend-cann-910b-ops_9.1.0_linux-aarch64.run --install
90}87}
91 88 
92# a3 NPU安装函数89# a3 NPU安装函数
@@ -95,12 +92,11 @@ install_cann_a3_x86_apt() {
95 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash92 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
96 sudo apt-get update93 sudo apt-get update
97 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)94 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)
98- #Ascend-cann为驱动、Toolkit合一包95+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-x86_64.run
99- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-x86_64.run96+ bash ./Ascend-cann-toolkit_9.1.0_linux-x86_64.run --install
100- bash ./Ascend-cann_8.5.0_linux-x86_64.run --install
101 97 
102- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-A3-ops_8.5.0_linux-x86_64.run98+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-A3-ops_9.1.0_linux-x86_64.run
103- bash ./Ascend-cann-A3-ops_8.5.0_linux-x86_64.run --install99+ bash ./Ascend-cann-A3-ops_9.1.0_linux-x86_64.run --install
104}100}
105 101 
106install_cann_a3_x86_yum() {102install_cann_a3_x86_yum() {
@@ -108,12 +104,11 @@ install_cann_a3_x86_yum() {
108 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash104 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
109 sudo yum makecache105 sudo yum makecache
110 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)106 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)
111- #Ascend-cann为驱动、Toolkit合一包107+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-x86_64.run
112- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-x86_64.run108+ bash ./Ascend-cann-toolkit_9.1.0_linux-x86_64.run --install
113- bash ./Ascend-cann_8.5.0_linux-x86_64.run --install
114 109 
115- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-A3-ops_8.5.0_linux-x86_64.run110+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-A3-ops_9.1.0_linux-x86_64.run
116- bash ./Ascend-cann-A3-ops_8.5.0_linux-x86_64.run --install111+ bash ./Ascend-cann-A3-ops_9.1.0_linux-x86_64.run --install
117}112}
118 113 
119install_cann_a3_arm_apt() {114install_cann_a3_arm_apt() {
@@ -121,12 +116,11 @@ install_cann_a3_arm_apt() {
121 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash116 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
122 sudo apt-get update117 sudo apt-get update
123 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)118 sudo apt-get install -y gcc python3 python3-pip linux-headers-$(uname -r)
124- #Ascend-cann为驱动、Toolkit合一包119+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-aarch64.run
125- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-aarch64.run120+ bash ./Ascend-cann-toolkit_9.1.0_linux-aarch64.run --install
126- bash ./Ascend-cann_8.5.0_linux-aarch64.run --install
127 121 
128- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-A3-ops_8.5.0_linux-aarch64.run122+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-A3-ops_9.1.0_linux-aarch64.run
129- bash ./Ascend-cann-A3-ops_8.5.0_linux-aarch64.run --install123+ bash ./Ascend-cann-A3-ops_9.1.0_linux-aarch64.run --install
130}124}
131 125 
132install_cann_a3_arm_yum() {126install_cann_a3_arm_yum() {
@@ -134,12 +128,11 @@ install_cann_a3_arm_yum() {
134 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash128 useradd -g HwHiAiUser -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
135 sudo yum makecache129 sudo yum makecache
136 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)130 sudo yum install -y gcc python3 python3-pip kernel-headers-$(uname -r) kernel-devel-$(uname -r)
137- #Ascend-cann为驱动、Toolkit合一包131+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-toolkit_9.1.0_linux-aarch64.run
138- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann_8.5.0_linux-aarch64.run132+ bash ./Ascend-cann-toolkit_9.1.0_linux-aarch64.run --install
139- bash ./Ascend-cann_8.5.0_linux-aarch64.run --install
140 133 
141- wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%208.5.T63/Ascend-cann-A3-ops_8.5.0_linux-aarch64.run134+ wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.1.0/Ascend-cann-A3-ops_9.1.0_linux-aarch64.run
142- bash ./Ascend-cann-A3-ops_8.5.0_linux-aarch64.run --install135+ bash ./Ascend-cann-A3-ops_9.1.0_linux-aarch64.run --install
143}136}
144 137 
145# 操作系统到包管理器的映射138# 操作系统到包管理器的映射