Optional Installation Scenarios
ascend-deployer provides the following installation scenarios.
- When TensorFlow needs to be installed, you can specify the version (1.15.0 or 2.6.5). If no version is specified, the TensorFlow 1.15.0 is installed by default.
- If a framework is to be installed and the GCC version is earlier than 7.3.0, GCC needs to be specified by using --install=gcc and a soft link needs to be created by running ln -sf /usr/local/gcc7.3.0/bin/gcc /usr/bin/gcc to ensure that the framework can run properly in each installation scenario.
Installation Scenario |
Component to Be Installed |
Description |
|---|---|---|
auto |
All |
Install all software packages that can be found. |
offline_dev |
sys_pkg, Python 3.7.5, NPU, Toolkit |
Offline inference in the development environment |
offline_run |
sys_pkg, Python 3.7.5, NPU, NNRT |
Offline inference in the operating environment |
mindspore |
sys_pkg, Python 3.7.5, NPU, Toolkit, MindSpore |
MindSpore scenario |
tensorflow_dev |
sys_pkg, Python 3.7.5, NPU, Toolkit, TFPlugin, TensorFlow |
TensorFlow development scenario |
tensorflow_run |
sys_pkg, Python 3.7.5, NPU, NNAE, TFPlugin, TensorFlow |
TensorFlow operating scenario |
pytorch_dev |
sys_pkg, Python 3.7.5, NPU, Toolkit, PyTorch |
PyTorch development scenario |
pytorch_run |
sys_pkg, Python 3.7.5, NPU, NNAE, PyTorch |
PyTorch operating scenario |
vmhost |
sys_pkg, NPU, Toolbox |
VM scenario |
edge |
sys_pkg, AtlasEdge, HA |
Install the MindX middleware and HA. |
The configuration files (for example, ascend-deployer/playbooks/scene/scene_auto.yml) for the preceding installation scenarios are stored in the scene directory.
- hosts: '{{ hosts_name }}'
- name: install system dependencies
import_playbook: ../install/install_sys_pkg.yml
- name: install python3.7.5
import_playbook: ../install/install_python375.yml
- name: install driver and firmware
import_playbook: ../install/install_npu.yml
- name: install toolkit
import_playbook: ../install/install_toolkit.yml
- name: install nnrt
import_playbook: ../install/install_nnrt.yml
- name: install nnae
import_playbook: ../install/install_nnae.yml
- name: install tfplugin
import_playbook: ../install/install_tfplugin.yml
- name: install toolbox
import_playbook: ../install/install_toolbox.yml
- name: install pytorch
import_playbook: ../install/install_pytorch.yml
- name: install tensorflow
import_playbook: ../install/install_tensorflow.yml
- name: install mindspore
import_playbook: ../install/install_mindspore.yml
To customize an installation scenario, refer to the preceding configuration file.