Merged
refactor(distributed): Disable dispatch/combine large-kernel execution version #4262
luoxinhuiAdd on Jun 24
refactor(distributed): Disable dispatch/combine large-kernel execution version #4262
Merged
Merged fromluoxinhui666/shmem_pyptomasterintocann/pyptomaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for luoxinhui's contribution.)Jun 24 Added label: cann-cla/yes
CANN-robot
Jun 24 Comments:
Jun 24 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
PR Approval Progress
✅ Congratulations! All modules have met the lgtm and approve requirements.
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/pypto | ✅ codehjp423, 尹杰 (2/2) | ✅ codehjp423 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
luoxinhui666, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Jun 24 Pre merge succeeded (commit_id: 5c985c5e0f851ce96154e8bbd9d859216a51aedc)
43 messages are collapsed here。 See more
Jun 25 Modify description of pull request
Jun 25 Modify description of pull request
Jun 25 Modify description of pull request
Jun 25 Modify description of pull request
Jun 25 Modify description of pull request
描述
移除 MoE dispatch/combine 的 large-kernel 执行版本 C++ 实现,包括 10 个关联 op(MoeDispatch、MoeDistributedCombine、SendToRoutingExpert、SendToSharedExpert、CopyToLocalExpert、FFNSched、FFNBatching、FFNCombineInfo、FFNValidCnt、DispatchSetFlag)及其在框架各模块中的引用。
背景
MoE dispatch/combine 的 large-kernel 执行版本已不更新迭代,该功能后续由 small-kernel 版本替代。需清理所有相关 C++ 代码以减少维护成本,避免歧义。
涉及模块与操作
opcode.h):删除 10 个 opcode 枚举值及分类集合中的引用opcode.cpp):删除 10 个 opcode 的 RegisterInfooperation_impl.cpp):删除 10 个 case 分支distributed_common.h):删除MoeDispatchAttr和MoeCombineAttrdistributed_expand.h):删除所有 dispatch/combine 相关声明codegen_distributed.cpp):清空 codegen 逻辑codegen_op_npu.cpp/.h):删除 op 映射和方法声明tilefwk_op.h):删除 API 声明及MoeConfigstructISA.h):删除 op 字符串映射moe_dispatch.cpp、moe_distributed_combine.cpp、moe_dispatch.h、moe_combine.hdistributed_golden.py):删除 dispatch/combine 相关代码任务目标
备注
本次仅删除 C++ 实现层,当前pypto dispatch&&combine 的详细设计见:python/tests/st/operator/distributed/test_moe_distributed_dispatch_combine.py