MSAdapter is a MindSpore ecological adaptation tool, which quickly migrates three-party framework code such as PyTorch/JAX to the MindSpore ecosystem without changing the user's original usage habits, helping users efficiently use the Ascend computing power of the China Computing NET.
简体中文 | [English]
MindTorch is MindSpore tool for adapting the PyTorch interface, which is designed to make PyTorch code perform efficiently on Ascend without changing the habits of the original PyTorch users.
import torch
in PyTorch source code with import mindtorch.torch
to realize that the model can support training on ascending. The support status of the higher-order APIs used in the model can be found here Supported List.MindSpore
operators for calculations to achieve the same functions as the original torchvision
library. Users only need to replace import torchvision
in the PyTorch source code with import mindtorch.torchvision
.Please check the Version Description to select the required version of MindTorch and MindSpore.
Please install MindSpore according to the Installation Guide on MindSpore official website.
pip install mindtorch (MindSpore version >= 2.2.1)
or
pip install msadapter (MindSpore version == 2.0.0)
git clone https://git.openi.org.cn/OpenI/MSAdapter.git
cd MSAdapter
python setup.py install
If there is an insufficient permissions message, install as follows
python setup.py install --user || exit 1
Refer to the User Guide, you will quickly get started and complete the transformation from PyTorch code, as well as get started with various advanced optimization skills; More over, if you have requirements for precision and performance tuning, please refer to the Debugging and Tuning Guide.
Branch | Version | Initial Release Date | MindSpore Version | OpenI Computing Resources |
---|---|---|---|---|
master | - | - | MindSpore 2.3 | - |
release_0.2 | 0.2 | 2023-12-15 | MindSpore 2.2.1 / MindSpore 2.2.10 | - |
release_0.1 | 0.1 | 2023-06-15 | MindSpore 2.0.0 | China Computing NET - Image:mindspore2.0rc_cann6.3_notebook |
Intermediate Version:
pip install git+https://openi.pcl.ac.cn/OpenI/MSAdapter.git@da13b6719c
pip install git+https://openi.pcl.ac.cn/OpenI/MSAdapter.git@59f62a1858
Developers are welcome to contribute. For more details, please see our Contribution Guidelines.
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》