Merged
feat(mixed_quant_sparse_flash_mla): migrate TurboQuant support to 9.2.0 #12425
wangbin207Add on Sep 19
feat(mixed_quant_sparse_flash_mla): migrate TurboQuant support to 9.2.0 #12425
Merged
Merged fromwangbin207/ops-transformer9.2.0intocann/ops-transformer9.2.0
Pull Request has been successfully merged by CANN-robot.
(Thank you for wangbin207's contribution.)Sep 19 Created pull request, commit d67ea3ca
Sep 19 Added label: cann-cla/yes
CANN-robot
Sep 19 Comments:
Sep 19 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 |
|---|---|---|
| 9.2.0 | ✅ gcw_kUomxQ2l, 蔡雯雯 (2/2) | ✅ gcw_kUomxQ2l (1/1) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
wangbin207, thanks for your pull request. All authors of the commits have signed the CLA. 👍


Sep 19 Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,huang-wei-chen,tang-lei01,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,cc-z,kdy18482276080,xuchengyang,shen_weiling,gaoxiang618,songjionghui,wenxin_fight,miaofangzheng,mabing1118,tang-hao-hw-gitcode,wangyongguang,haijie_699874,zzy__,Julius47,yuhao_,L_Euler,wangxun21 as approver
Sep 19 Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,huang-wei-chen,tang-lei01,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,cc-z,kdy18482276080,xuchengyang,shen_weiling,gaoxiang618,songjionghui,wenxin_fight,miaofangzheng,mabing1118,tang-hao-hw-gitcode,wangyongguang,haijie_699874,zzy__,Julius47,yuhao_,L_Euler,wangxun21 as approver
Sep 19 Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,huang-wei-chen,tang-lei01,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,cc-z,kdy18482276080,xuchengyang,shen_weiling,gaoxiang618,songjionghui,wenxin_fight,miaofangzheng,mabing1118,tang-hao-hw-gitcode,wangyongguang,haijie_699874,zzy__,Julius47,yuhao_,L_Euler,wangxun21 as approver
Sep 19 Set guijianwei,hz36amy_00,yangziqi_007,coder_linx,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,huang-wei-chen,tang-lei01,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,cc-z,kdy18482276080,xuchengyang,shen_weiling,gaoxiang618,songjionghui,wenxin_fight,miaofangzheng,mabing1118,tang-hao-hw-gitcode,wangyongguang,haijie_699874,zzy__,Julius47,yuhao_,L_Euler,wangxun21 as approver
195 messages are collapsed here。 See more
caiwenwen
Sep 24 Comments:
Sep 24 Comments:
/approve
/lgtm


CANN-robot
Sep 24 Comments:
Sep 24 Comments:
The following users do not have permission to comment /lgtm or /approve on any module in this PR:
/approve: 蔡雯雯


Sep 24 Added label: lgtm
Sep 24 Closed associated issue
Sep 24 Merged pull request
描述
将 TurboQuant 能力迁移至 MixedQuantSparseFlashMla,为 arch22 新增 quant_mode=3 执行路径,同时保留 arch35 原有 quant_mode=1/2 能力。
主要修改如下:
新增 arch22 TurboQuant Kernel:
迁移 TQ4 计算与性能优化:
接入 MixedQuantSparseFlashMla 现有接口:
按 SOC 隔离数据类型与量化模式:
迁移滑动窗口 Mask 修复:
完善边界场景与参数校验:
完善 Torch Extension:
关联的 Issue
无。
测试
新增和完善以下测试:
已完成:
当前环境仅安装 CANN 9.0.1,本次尚未执行 9.2.0 算子编译及 NPU 实机测试。
文档更新
本次为保持迁移改动最小化,未迁移 README 和独立算子文档,仅同步更新 ACLNN 头文件中的类型及 quant_mode 接口说明。
类型标签