ascend offline installer
Project description
1 简介
离线安装工具提供系统组件、python第三方依赖自动下载以及一键式安装的功能,并支持驱动、固件、CANN软件包以及MindX DL和MindX Edge MEF Center的安装。
2 快速指南
本工具主要支持开局场景(环境仅安装了OS),如果遇到问题,请参考ascend-deployer用户指南。
2.1 安装内容
工具支持安装的内容参考下图,其中红色部分是昇腾设备上必须安装的,橙色部分和绿色部分是可选安装的,如果需要直接运行AI框架或Toolbox,橙色部分也是必须安装的。
2.2 使用样例
以下以Ubuntu_18.04_x86_64系统,服务器上插Atlas 300I Pro推理卡为例快速展示工具的使用方式。
以root用户登录待安装设备。
执行 pip3 install ascend-deployer==<version> 安装ascend-deployer工具。<version>为ascend-deployer工具的版本号, 建议参考官网下载最新发布版本的工具包。如果提示pip3命令不存在,请用户自行安装。
执行下载命令。
ascend-download --os-list=Ubuntu_18.04_x86_64 --download=CANN==6.3.RC1,MindSpore==2.0.0rc1
执行以上命令后,会自动下载好OS所需依赖,CANN软件包和配套的驱动和固件包,以及docker软件等,并存放到$HOME/ascend-deployer/resources目录下。
创建驱动的运行用户HwHiAiUser。
groupadd -g 1000 HwHiAiUser useradd -g HwHiAiUser -u 1000 -d /home/HwHiAiUser -m HwHiAiUser -s /bin/bash
创建完用户后,执行 passwd HwHiAiUser 命令设置用户密码。
安装驱动和固件时,如果不是归一包(包名以 Ascend-hdk 开头),需在inventory_file中提前配置cus_npu_info变量。
[ascend] localhost ansible_connection='local'
执行以下安装命令,自动安装所有能找到的包(MindX DL和MEF Center除外,该两者请参考 ascend-deployer用户指南)。
ascend-deployer --install-scene=auto
安装后配置。 使用python和CANN前,需要根据实际情况配置环境变量,以下内容以配置python和nnae的环境变量为例。
source /usr/local/ascendrc # 配置python环境变量 source /usr/local/Ascend/nnae/set_env.sh # 配置nnae的环境变量
详细指南请参考ascend-deployer用户指南
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for ascend_deployer-5.0.0b40-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75d910133572a5eacc88d41cc66080e770d8ccef1a040543402e87bdb4c1cec8 |
|
MD5 | 15b6782d5fcf67be1db8b70c6afbd247 |
|
BLAKE2b-256 | bd2ef1c033c224fc8a2742130116011d8fe592c56768ef6e3fe54367e5c032af |