Merged
MoeInitRoutingV3 支持 expertIdx=-1(无效专家) #9708
tujun6Add on Aug 6
MoeInitRoutingV3 支持 expertIdx=-1(无效专家) #9708
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for tujun6's contribution.)Aug 6 Added label: cann-cla/yes
CANN-robot
Aug 6 Comments:
Aug 6 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 |
|---|---|---|
| */*/README.md | ✅ 蔡雯雯, 杜慧萍 (2/2) | ✅ 蔡雯雯 (1/1) |
| */*/docs/acl*.md | ✅ 蔡雯雯, 杜慧萍 (2/2) | ✅ 蔡雯雯 (1/1) |
| moe | ✅ cpy_123456, guoqiuhao (2/2) | ✅ cpy_123456 (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
tujun6, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Aug 6 Set cpy_123456,juyangokok,monologue815,chen-linxin4,yu-xinjie62,jiang-lirui,Allan_Yu,songkai111,liudan12,cc-z,mabing1118,guoqiuhao as approver
Aug 6 Set cpy_123456,juyangokok,monologue815,chen-linxin4,yu-xinjie62,jiang-lirui,Allan_Yu,songkai111,liudan12,cc-z,mabing1118,guoqiuhao as approver
Aug 6 Set cpy_123456,juyangokok,monologue815,chen-linxin4,yu-xinjie62,jiang-lirui,Allan_Yu,songkai111,liudan12,cc-z,mabing1118,guoqiuhao as approver
Aug 6 Set cpy_123456,juyangokok,monologue815,chen-linxin4,yu-xinjie62,jiang-lirui,Allan_Yu,songkai111,liudan12,cc-z,mabing1118,guoqiuhao as approver
220 messages are collapsed here。 See more
gitee-duhuiping
Aug 27 Comments:
Aug 27 Comments:
/lgtm


Guoqh
Aug 27 Comments:
Aug 27 Comments:
/lgtm


Aug 27 Added label: lgtm
Aug 27 Closed associated issue
Aug 27 Merged pull request
描述
MoeInitRoutingV3 算子支持
expertIdx = -1(无效专家)特性:-1 表示该位置不参与路由,算子正确过滤 -1,不影响有效专家的排序、gather 和统计结果。核心修改(kernel 侧)
< expertStart下界守卫(moe_v3_full_load_base.h、moe_v3_expert_tokens_count.h):避免排序后末尾无效元素溢出为负值导致越界写。moe_v3_full_load_base.h):确保 rowIdxType 为 0 时无效数据由 -1 填充,符合 README 约定。测试
gen_data.py支持生成 -1 数据)。文档更新
关联的Issue
关联 Issue #4615:https://gitcode.com/cann/ops-transformer/issues/4615
测试
文档更新
类型标签