The current Pull Request has been closed by &Newgate.
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.
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-Ascend/MoonEP | ❌ (0/2)(You can also ask: Jia_Austin, 孙银磊, u012145166111, wangjiangben, nino888) | ❌ (0/1)(You can also ask: 郑加利, lishaoxun, wangjiangben, 孙银磊, weixin_49096267) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Guide
@zhangguobiao , thanks for your pull request.
The following commit(s) have not signed Contributor License Agreement (CLA).
| Commit | Reason |
|---|---|
| 72b8e69a docs: move L+B benchmark usage g... | the email is not signed for CLA! please check if it is correct and the same as your signed email. |
If you need to sign CLA, you can click here to sign the CLA.
If you need to check if the email is set up correctly, you can click here to do it in the FAQs.
After signing the CLA or updating the email, you must comment /check-cla to check the CLA status again.


这个公共接口和开源保持一致


名称改下 容易 理解 , 一眼能知道功能


改下名称 易理解


把“lplusb”都改下


两个离散的 留一个


保持和开源API一致


保持和 开源API一致


可以合入原来ut


PR功能描述 / 为什么需要这个合入
为 MindSpeed 的计算通信重叠接入提供原生 Buffer 接口,支持框架预分配通信 bank,以及“本地 L 份权重/主梯度 + 对称 B 槽”的存储布局。
主要改动:
CommBuffers和LPlusBBinding,在初始化阶段完成存储绑定、地址表及 workspace 准备,供后续通信复用;bank 数量、调度和复用顺序由框架管理。GradReduceTargets,通过地址表直接归约到本地 FP32 主梯度 Tensor,无需将这些目标 Tensor 重排为连续的全局专家存储。num_sms参数,支持独立planning_num_sms;UDMA 保持原有调度。实测证据
验证环境为 Ascend 950DT、CANN 9.2.0、单机 EP2/EP8。使用冻结源码及配套重编 native 库,并核验实际加载路径、SHA 和 ABI。
当前 PR 与目标分支的同核数对照
目标分支为
d8b9db5,PR 实测版本为3c9853f。当前源版本72b8e69相比实测版本仅移除了已迁往 docs 的说明文件,算子及 benchmark 代码一致。两版 Planning、Dispatch、Combine、GradReduce 均设为 32 核。通信链及两种 dense GradReduce 形状分别按“目标分支 → PR → PR → 目标分支”执行 ABBA,共 12/12 次运行成功。
固定配置:
S=8192、H=7168、K=8、E=48,rank 去重。6144×7168,FC2 为7168×3072,epn=B=6、nremote=2。单位为 µs,取每版两次独立运行耗时的几何均值;变化率为
(PR/目标分支−1)×100%,正数表示变慢。本轮同核数下未观察到明显性能退化。 Dispatch、Combine 和 dense GradReduce 的变化均在 ±0.06% 内。
旧 benchmark 的统计口径为迭代平均耗时:通信链取跨 rank 均值,dense GradReduce 取最慢 rank,不是新增 benchmark 的 median/P95。
新增路径的 MTE/URMA 后端对照
以下为 PR 内 balanced 负载的 ABBA 对照,不是相对目标分支的加速比。EP8,
L=B=6;Prefetch 两臂均使用 mixed barrier、沿各自原生调度,GradReduceTargets 两臂均使用 AIV barrier、8 核。表中为各臂两次运行 median 的几何均值。计时包含公开接口提交、native barrier 和异步完成等待,排除 setup、填数、外部 HCCL barrier、校验及收尾。
旧 dense 与 targets 的存储布局、路由和计时边界不同,不直接比较二者的绝对耗时。
希望检视人员了解:
_C、rank/server kernel 库,不能混用旧构建产物。num_sms控制。目标分支原来固定使用 32 个 AIV 核,复现原有核数时应显式设置num_sms=32。