软件安装
版本配套表
为了便于用户理解和选择合适的MindSpeed版本,我们提供了详细的版本配套表,如表1所示。
该表详细列出了MindSpeed版本与对应的PyTorch、Ascend Extension for PyTorch版本以及CANN版本之间的匹配关系,确保用户能够根据自身软件环境准确选择相匹配的版本,以实现最优的性能与功能支持。
MindSpeed版本 |
1.0.0 |
---|---|
MindSpeed代码分支名称 |
1.0.0_core_r0.6.0 说明:
配套Megatron-LM的core_r0.6.0分支。 |
1.0.0_core_r0.7.0 说明:
配套Megatron-LM的core_r0.7.0分支。 |
|
CANN版本 |
8.0.0 |
PyTorch版本 |
2.1.0 |
Ascend Extension for PyTorch版本 |
6.0.0 |
Ascend Extension for PyTorch安装包版本 |
2.1.0.post10 |
Python版本 |
Python3.8.x,Python3.9.x,Python3.10.x |
安装操作
- 安装依赖的软件。
- 下载MindSpeed源码。
- 1.0.0_core_r0.6.0分支
git clone -b 1.0.0_core_r0.6.0 https://gitee.com/ascend/MindSpeed.git
- 1.0.0_core_r0.7.0分支
git clone -b 1.0.0_core_r0.7.0 https://gitee.com/ascend/MindSpeed.git
- 1.0.0_core_r0.6.0分支
- 安装MindSpeed。
pip3 install -e MindSpeed
- 获取Megatron-LM并指定分支。
- core_r0.6.0分支
git clone https://github.com/NVIDIA/Megatron-LM.git cd Megatron-LM git checkout core_r0.6.0
- core_r0.7.0分支
git clone https://github.com/NVIDIA/Megatron-LM.git cd Megatron-LM git checkout core_r0.7.0
- core_r0.6.0分支