Merged
feat: 适配 dev_0.4.0 Muon/NovaSwap 并同步 Engram checkpoint 修复 #1153
没有杰Add on Nov 2
feat: 适配 dev_0.4.0 Muon/NovaSwap 并同步 Engram checkpoint 修复 #1153
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for 没有杰's contribution.)Nov 2 Added label: cann-cla/yes
CANN-robot
Nov 2 Comments:
Nov 2 Comments:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/torchtitan-npu | ✅ xuyujun, lrwei0709 (2/2) | ✅ xuyujun (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
NoGood, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Nov 2 Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
Nov 2 Set hwcaifubi,lrwei0709,zhaowei1936,zhong_lin,zhanghz1,depeng1994,shengnan666,XDaoHong,xuyujun,zhuofanshen,wanghui0,panchao-gitcode,zzyyjj012 as approver
21 event messages are collapsed here。 See more
Nov 2 Modify description of pull request
没有杰
Nov 2 Comments:
Nov 2 Comments:
/compile


Nov 2 Pre merge succeeded (commit_id: 7f2c058e5a36446fb5a5cdfe76af632401ab8a7e)
CANN-robot
Nov 2 Comments:
Nov 2 Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


Nov 2 Added label: ci-pipeline-running
7 event messages are collapsed here。 See more
Nov 2 Modify description of pull request
weijinyi
Nov 3 Comments:
Nov 3 Comments:
/lgtm


xuyujun
Nov 3 Comments:
Nov 3 Comments:
/approve


Nov 3 Added label: lgtmapproved
Nov 3 Merged pull request
23 days ago Associated issue: [RFC] TorchTitan v0.4.0 分阶段升级规划与进度跟踪
描述
本 PR 面向
dev_0.4.0当前的 TorchTitan 依赖版本,迁移 Muon / DistMuon、NovaSwap 及相关 checkpoint 功能。保持现有优化器算法和训练行为,不涉及另一条原生 CPU offload Muon 路径。本次不迁移最终版TrainingEngine/Optim架构。同步 PR #1092 的完整改动范围,包括 Engram 跨 EP checkpoint 修复、HF 导出适配,以及精度对比工具中分布式 seed workaround 的清理,并保留当前分支所需的接口适配。
主要包括:
--seed-mode、分布式 seed 辅助脚本及对应测试,同步更新使用说明。类型
Checklist:
精度和性能验证结果
验证在 Ascend A2 环境完成,覆盖 Muon / DistMuon、NovaSwap、HSDP replica 去重及 Engram checkpoint。
八卡模型为 V4 Flash,23 层、16 专家,上述逐值一致项目的最大绝对误差均为 0。
相同训练条件下,另行比较新旧版本在 NovaSwap 开启和关闭时的内存占用。与旧版相比,峰值活跃显存差异不超过约 0.13 GiB,DDR 使用增量差异不超过约 0.52 GiB,未观察到明显内存回退。