已关闭
[Bug]:[master]hyper-parallel主线代码重构,2BV2_LLM未适配,报错:No module named 'hyper_parallel.core.shard.api,需要打对应的patch #372
chen-zhenjian创建于  20 天前关闭于  15 天前
chen-zhenjian
chen-zhenjian
20 天前 创建

Checklist

🐛 Describe the bug

一、镜像信息
swr-aifm-exp-mt7nab.swr-pro.myhuaweicloud.com/aifm.infra.training/train_910b-pytorch_2.6.0-cann_8.5.1.b010-py_3.11-hce_2.0.2509-aarch64-snt9b23-20260123:1.2.1

二、环境信息
硬件:A2

三、报错信息
Traceback (most recent call last):
File "/home/code/AI_Infra_TrainTest/testcases/TrainningScenarios/test_pangu_2B_llm_fsdp/pangu_sophon_pytorch/PanGu/hyper_parallel/init.py", line 34, in
from hyper_parallel.core.shard.api import shard_module
ModuleNotFoundError: No module named 'hyper_parallel.core.shard.api'

具体打patch操作:在原有patch的基础上,需要修改pangu_sophon_pytorch/PanGu/hyper_parallel/init.py ,把34、35行去掉
image.png

四、复现步骤

五、预期结果
网络能正常训练,精度零误差对齐。

Expected behavior

网络能正常训练,精度零误差对齐。

Additional context

Environment info

A2

Thanks for contributing 🎉!

likedislike
chen-zhenjianchen-zhenjian
20 天前 修改了issue 的描述
chen-zhenjianchen-zhenjian
20 天前 修改了issue 的描述
张峻源
17 天前 评论:

问题:盘古release_1.2.1使用2BV2-LLM网络报错,报错ModuleNotFoundError: No module named 'hyper_parallel.core.shard.api',问题与 mindspore/org-issues#43340 报错一致

修复pr: !1358

likedislike
chen-zhenjian
chen-zhenjian
15 天前 评论:

回归版本信息:
pangu:release_1.2.1:a4ffc6bb
AI_infra_TrainTest:2026.09.13 21:00左右拉的代码
镜像:a2:swr-aifm-exp-mt7nab.swr-pro.myhuaweicloud.com/aifm.infra.training/train_910b-pytorch_2.6.0-cann_8.5.1.b010-py_3.11-hce_2.0.2509-aarch64-snt9b23-20260123:1.2.1
回归步骤:参考issue
回归结果:
image.png
回归结论:回归通过
回归时间:2026.09.14

likedislike
chen-zhenjianchen-zhenjian
15 天前 issue状态由 TODO 改变为 DONE
chen-zhenjianchen-zhenjian
15 天前 关闭了 issue