Merged
【合入9.2.0分支】增加 MsaIndexScore 算子 950 实现 #11876
【合入9.2.0分支】增加 MsaIndexScore 算子 950 实现 #11876
Merged
oscillatedAdd on Sep 12
oscillated
oscillatedCollaborators
Sep 12

描述

【合入9.2.0分支】
原合入master分支PR:https://gitcode.com/cann/ops-transformer/pull/10672

  1. 增加 MsaIndexScore 算子 950 实现(及对应原型FP8数据类型场景支持)
  2. 为当前 MsaIndexScore 算子增加特性: ①支持q_len, kv_len传0;②kv cache支持首轴非连续(带stride)
  3. 整改补齐相关文档格式(README、aclnn接口文档)
  4. 改进了tiling策略,优化A2A3、950平台计算decode场景小用例时的性能

关联的Issue

关联Issue #5151

测试

950

aclnn example

aclnn_example.png

torch example

torch_example.png

precision v.s. triton impl.

image.png

prof

prof.png

A2/A3

aclnn example

(跳过仅ascend950支持的fp8用例)

aclnn_example.png

torch example

(跳过仅ascend950支持的fp8用例)

torch_example.png

precision v.s. triton impl.

image.png

prof

prof.png

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for oscillated's contribution.)
oscillatedoscillatedCollaborators
Sep 12 Created pull request, commit 792230fb
oscillatedoscillatedCollaborators
Sep 12 Associated issue: [Requirement|需求建议]: 新增 M3 MSA Index Score 算子的 Ascend 950平台实现
CANN-robotCANN-robotCollaborators
Sep 12 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 12 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 ✅ 蔡雯雯, 於欣洁, 黄俊健 (3/2) ✅ 蔡雯雯 (1/1)
*/*/docs/acl*.md ✅ 蔡雯雯, 於欣洁, 黄俊健 (3/2) ✅ 蔡雯雯 (1/1)
*/*/op_host/*_def.cpp ✅ 王永光, 於欣洁, 黄俊健 (3/2) ✅ 王永光 (1/1)
attention ✅ 於欣洁, 黄俊健 (2/2) ✅ 於欣洁 (1/1)
docs ✅ 於欣洁, 黄俊健 (2/2) ✅ 於欣洁 (1/1)

💡 Tip:

  • Committer can comment /approve or /lgtm
  • Commenting /approve implies both code review (lgtm) and intent to merge (approve)

CLA Signature Pass

oscillated, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike
CANN-robotCANN-robotCollaborators
Sep 12 Set guijianwei,hz36amy_00,coder_linx,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,gitee-duhuiping,wang-minbo,claire8090,tang-lei01,xtqh,songkai111,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,gitcode-chenjiao,cc-z,kdy18482276080,shen_weiling,Ww7012,gaoxiang618,songjionghui,wenxin_fight,miaofangzheng,mabing1118,tang-hao-hw-gitcode,wangyongguang,haijie_699874,fengying555682,zzy__,Julius47,yuhao_,L_Euler,wangxun21,caiwenwen,yanglu-1 as approver
CANN-robotCANN-robotCollaborators
Sep 12 Set guijianwei,hz36amy_00,coder_linx,juyangokok,monologue815,xuanyuandy,crystalhu,yu-xinjie62,huangwei791,jiang-lirui,yang-binrong,Allan_Yu,gitee-duhuiping,wang-minbo,claire8090,tang-lei01,xtqh,songkai111,liudan12,shasha_an,wangzhe123456789,Wei_NaChuan,zhangshuoleiokok,luwei_1104,gitcode-chenjiao,cc-z,kdy18482276080,shen_weiling,Ww7012,gaoxiang618,songjionghui,wenxin_fight,miaofangzheng,mabing1118,tang-hao-hw-gitcode,wangyongguang,haijie_699874,fengying555682,zzy__,Julius47,yuhao_,L_Euler,wangxun21,caiwenwen,yanglu-1 as approver
oscillated
oscillatedCollaborators
Sep 12 Comments:

compile

likedislike
oscillatedoscillatedCollaborators
Sep 12 Pre merge succeeded (commit_id: ba5a72060b7a9ee27af2887781d16f1784b6a9da)
CANN-robot
CANN-robotCollaborators
Sep 12 Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
Sep 12 Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 12 Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
Sep 12 Added label: ci-pipeline-passed
caiwenwen
caiwenwenCollaborators
Sep 14 Comments:

/lgtm
/approve

likedislike
wangyongguang
wangyongguangCollaborators
Sep 14 Comments:

/approve

likedislike
於欣洁
於欣洁Collaborators
Sep 14 Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Added label: approved
monologue815
monologue815Collaborators
Sep 14 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Sep 14 Added label: lgtm
CANN-robotCANN-robotCollaborators
Sep 14 Merged pull request