Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
sunxiyin cf23f5d127 | 8 months ago | |
---|---|---|
doc/pic | 10 months ago | |
msadapter | 8 months ago | |
testing/ut | 8 months ago | |
third_party/einops | 1 year ago | |
.drone.yml | 8 months ago | |
.gitignore | 1 year ago | |
CONTRIBUTING_CN.md | 1 year ago | |
ConstraintList.md | 8 months ago | |
ConstraintList_en.md | 8 months ago | |
Debugging_and_Tuning.md | 8 months ago | |
LICENSE | 1 year ago | |
README.md | 8 months ago | |
README.rst | 1 year ago | |
README_en.md | 8 months ago | |
SupportedList.md | 8 months ago | |
SupportedList_en.md | 8 months ago | |
USER_GUIDE.md | 8 months ago | |
pylint_check.sh | 1 year ago | |
pylintrc | 1 year ago | |
requirements.txt | 1 year ago | |
run.sh | 1 year ago | |
setup.py | 10 months ago |
简体中文 | English
MSAdapter是将PyTorch训练脚本高效迁移至MindSpore框架执行的工具,其目的是在不改变原有PyTorch用户的使用习惯情况下,使得PyTorch代码能在昇腾上获得高效性能。
import torch
替换为import msadapter.pytorch
即可实现模型能支持昇腾上训练。模型中所使用的高阶APIs支持状态可以从这里找到 Supported List。import torchvision
替换为import msadapter.torchvision
即可。TorchVision支持状态可以从这里找到 TorchVision Supported List。首先查看版本说明选择所需的MSAdapter和MindSpore版本。
请根据MindSpore官网安装指南 进行安装。
pip install msadapter
git clone https://git.openi.org.cn/OpenI/MSAdapter.git
cd MSAdapter
python setup.py install
如果出现权限不足的提示,请按照如下方式安装:
python setup.py install --user || exit 1
参考MSAdapter用户使用指南,您将快速入门完成PyTorch原生代码的迁移,以及上手各种进阶优化手段;如果您有对精度和性能调优的需求可参考MSAdapter调试调优指南。
分支名 | 发布版本 | 发布时间 | 配套MindSpore版本 | 启智算力资源 |
---|---|---|---|---|
release_0.1 | 0.1 | 2023-06-15 | MindSpore 2.0.0 | 智算网络集群 - 镜像:mindspore2.0.0_cann6.3_notebook |
release_0.1rc | 0.1rc | 2023-04-23 | MindSpore 2.0.0rc1 | 智算网络集群 - 镜像:mindspore2.0rc_cann6.3_notebook |
release_0.1beta | 0.1beta | 2023-03-27 | MindSpore Nightly(0205) | - |
master | - | - | MindSpore 2.1.0 8月11日及以后的版本 | - |
欢迎开发者参与贡献。更多详情,请参阅我们的贡献指南.
如果您在使用时有任何问题或建议,欢迎加入MSAdapter SIG参与讨论。
MindSpore对PyTorch接口的支持工具
Python Markdown
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》