Installing the MindIE Software Package
Before You Start
MindIE Motor, MindIE LLM, and MindIE SD will be installed in sequence when you install MindIE. The component packages are stored in the sub-path of MindIE.
Procedure
- Log in to the installation environment as the installation user of the CANN package.
- Upload the obtained MindIE package to any path (for example, /home/package) in the installation environment.
- Go to the directory where the software package is stored.
cd /home/package
- Grant the execute permission on the software package.
chmod +x software_package_name.run
software_package_name.run indicates the development toolkit Ascend-mindie_<version>_linux-<arch>_<abi>.run. Replace it with the actual package name.
- Add environment variables of the Toolkit package. (The following uses the default installation path of the root user as an example.)
source /usr/local/Ascend/cann/set_env.sh
- Check the consistency and integrity of the software package installation file.
./software_package_name.run --check
- Install the software. (The following command supports parameters such as --install-path=<path>. For details about the parameters, see Software Package Options.)
./software_package_name.run --install --quiet
- If the installation is performed by the root user, do not specify the installation path in the directory of a non-root user.
- If you do not specify an installation path, the software is installed in the default path. The default installation paths are as follows:
- root user: /usr/local/Ascend
- Non-root user: /home/{current user name}/Ascend
- The paths of software package installation logs are as follows:
- root user: /var/log/mindie_log/mindie_install.log
- Non-root user: /home/{current user name}/var/log/mindie_log/mindie_install.log
- The aie_tmp_source folder is temporarily generated in the current directory during the installation. After the installation is complete, the folder is deleted. If a folder with the same name already exists, it will be deleted after the installation.
Once you execute the preceding commands, you agree to the terms and conditions of Huawei Enterprise End User License Agreement (EULA).
If the following information is printed, the software is successfully installed:xxx install successxxx indicates the name of the software package to be installed.
Environment Variable Configuration
A process-level environment variable setting script is provided to automatically set environment variables. The specified environment variables automatically become invalid after the user process ends. Example:
Configure environment variables in the default installation path of the root user:
source /usr/local/Ascend/mindie/set_env.sh
Configure environment variables in the default installation path of a non-root user:
source /home/{current_user_name}/Ascend/mindie/set_env.sh
- Run the vi ~/.bashrc command in any directory as the running user to open the .bashrc file and append the preceding lines to the file.
- Run the :wq! command to save the file and exit.
- Run the source ~/.bashrc command for the modification to take effect immediately.