Build and Install
Prerequisites
Python >= 3.8
pytorch >= 2.6.0
torch_npu >= 2.6.0
Ascend CANN >= 8.5.0
The above lists the main dependencies and their version numbers. For other dependencies, please refer to the project source code requirements.txt.
Build
# Build from the MindSpore Lite project root directory
bash build.sh -I arm64 -O lite_boost -j 32
Build Parameters
Parameter |
Description |
Default |
|---|---|---|
|
Debug mode |
Release |
|
Release mode |
Release |
|
Show full build commands |
Off |
|
Incremental build (do not clean build directory) |
Off |
|
Number of build threads |
8 |
|
Print help information |
- |
The build output is located in the mindspore-lite/output directory of the MindSpore Lite project.
Install
pip install output/lite_boost-<version>-<tag>.whl