Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
3 days ago | |
---|---|---|
doc/pic | 1 month ago | |
msadapter | 3 days ago | |
testing/ut | 3 days ago | |
third_party/einops | 6 months ago | |
.drone.yml | 1 month ago | |
.gitignore | 10 months ago | |
CONTRIBUTING_CN.md | 6 months ago | |
ConstraintList.md | 1 week ago | |
ConstraintList_en.md | 1 week ago | |
Debugging_and_Tuning.md | 1 month ago | |
LICENSE | 1 year ago | |
README.md | 1 month ago | |
README.rst | 6 months ago | |
README_en.md | 1 month ago | |
SupportedList.md | 2 weeks ago | |
SupportedList_en.md | 2 weeks ago | |
USER_GUIDE.md | 3 days ago | |
pylint_check.sh | 6 months ago | |
pylintrc | 7 months ago | |
requirements.txt | 8 months ago | |
run.sh | 1 month ago | |
setup.py | 3 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 other