Merged
feat(mla): 接入 PR436 最新 DSL 实现与 Torch 适配 #16332
liqingsong16Add on 10 days ago
feat(mla): 接入 PR436 最新 DSL 实现与 Torch 适配 #16332
Merged
Pull Request has been successfully merged by CANN-robot.
(Thank you for liqingsong16's contribution.)10 days ago Created pull request, commit dff02f73
atomgit-bot
10 days ago Comments:
10 days ago Comments:
🤖 正在生成合并请求摘要,请稍候…


Incorrect?
10 days ago Added label: cann-cla/yes
CANN-robot
10 days ago Comments:
10 days ago 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 |
|---|---|---|
| attention | ✅ shasha_an, shen_weiling (2/2) | ✅ shasha_an (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
liqingsong16, thanks for your pull request. All authors of the commits have signed the CLA. 👍


10 days ago Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,cheng_zhiwei,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,gitee-duhuiping,huang-wei-chen,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,gitcode-chenjiao,cc-z,kdy18482276080,xuchengyang,shen_weiling,lwx1255555,gaoxiang618,songjionghui,lining_210,miaofangzheng,mabing1118,tang-hao-hw-gitcode,haijie_699874,fengying555682,zzy__,Julius47,yuhao_,L_Euler,wangxun21,zzzzzzyf_,caiwenwen,yanglu-1 as approver
10 days ago Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,cheng_zhiwei,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,gitee-duhuiping,huang-wei-chen,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,gitcode-chenjiao,cc-z,kdy18482276080,xuchengyang,shen_weiling,lwx1255555,gaoxiang618,songjionghui,lining_210,miaofangzheng,mabing1118,tang-hao-hw-gitcode,haijie_699874,fengying555682,zzy__,Julius47,yuhao_,L_Euler,wangxun21,zzzzzzyf_,caiwenwen,yanglu-1 as approver
10 days ago Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,cheng_zhiwei,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,gitee-duhuiping,huang-wei-chen,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,gitcode-chenjiao,cc-z,kdy18482276080,xuchengyang,shen_weiling,lwx1255555,gaoxiang618,songjionghui,lining_210,miaofangzheng,mabing1118,tang-hao-hw-gitcode,haijie_699874,fengying555682,zzy__,Julius47,yuhao_,L_Euler,wangxun21,zzzzzzyf_,caiwenwen,yanglu-1 as approver
10 days ago Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,cheng_zhiwei,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,gitee-duhuiping,huang-wei-chen,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,gitcode-chenjiao,cc-z,kdy18482276080,xuchengyang,shen_weiling,lwx1255555,gaoxiang618,songjionghui,lining_210,miaofangzheng,mabing1118,tang-hao-hw-gitcode,haijie_699874,fengying555682,zzy__,Julius47,yuhao_,L_Euler,wangxun21,zzzzzzyf_,caiwenwen,yanglu-1 as approver
atomgit-bot
10 days ago Comments:
10 days ago Comments:
⚠️ 本次变更过大(10 个可审文件、27174 行,预估需 23 轮分片审查),已超出 AI 代码评审的处理范围,本次跳过。建议拆分为更小的 PR 以获得有效评审。


Incorrect?
10 days ago Pre merge succeeded (commit_id: 3f919f3a515496014ae27b50570b70fa1069846c)
7 event messages are collapsed here。 See more
10 days ago Removed approver gitee-duhuiping,gitcode-chenjiao,lwx1255555,fengying555682,zzzzzzyf_,caiwenwen,yanglu-1
10 days ago Removed approver gitee-duhuiping,gitcode-chenjiao,lwx1255555,fengying555682,zzzzzzyf_,caiwenwen,yanglu-1
liqingsong16
10 days ago Comments:
10 days ago Comments:
/compile


10 days ago Pre merge succeeded (commit_id: fab3fd67c18f21aedbec4bdce12e7615fabb22b8)
CANN-robot
10 days ago Comments:
10 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


10 days ago Added label: ci-pipeline-running
6 event messages are collapsed here。 See more
9 days ago Removed label: ci-pipeline-passed
CANN-robot
9 days ago Comments:
9 days ago Comments:
9 days ago Added label: cann-cla/yes
6 event messages are collapsed here。 See more
9 days ago Modify description of pull request
liqingsong16
9 days ago Comments:
9 days ago Comments:
/compile


9 days ago Pre merge succeeded (commit_id: b25b5857d37c5e45576d522d72d8175f96e80c40)
CANN-robot
9 days ago Comments:
9 days ago Comments:
| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


9 days ago Added label: ci-pipeline-running
9 days ago Removed label: ci-pipeline-running
9 days ago Added label: ci-pipeline-passed
shasha_an
9 days ago Comments:
9 days ago Comments:
/approve


9 days ago Added label: approved
shen_weiling
9 days ago Comments:
9 days ago Comments:
/lgtm


9 days ago Added label: lgtm
9 days ago Merged pull request
描述
将 cannbot-dsl PR436 提交
6807d7c803e032bfcecde5bd968ce2f7609d427f的非量化mla_prolog_v4和量化quant_mla_prolog接入 ops-transformer。op_dsl源码与该上游提交逐字节一致,包含 Prefill/Decode 实现、Host 参数分组、辅助函数命名整理、Native 导出和mla_dispatch映射。torch.ops.cann_ops_transformer.mla_prolog_v2和torch.ops.cann_ops_transformer.quant_mla_prolog,包含 Eager、Meta/Fake 和图模式适配。mla_prolog_v2_graph_npu;量化 Eager/图路径使用execute_async/execute_graph。同步引用这些辅助函数的测试,避免调用已删除或重命名的函数。qkv_quant_mode、量化w_qr_quant_mode/qkv_quant_mode必填,可按位置或关键字传入;quant_scale_kv/rope_sin/rope_cos仅支持关键字;cache_mode默认0(PA_BSND)。保留 MXFP8 图路径的 UINT8 scale carrier。关联的Issue
本 PR 为上游算子实现接入,不关闭关联 Issue。
测试
本轮未执行 Native/custom
.run全量构建、NPU 精度、性能或实际图捕获与重放测试。文档更新
无文档文件改动。
类型标签