已合并
refactor: Remove SFA/SFAG/SLI #3591
JialiZheng创建于 6月30日
refactor: Remove SFA/SFAG/SLI #3591
已合并
JialiZheng创建于 6月30日
JialiZheng
JialiZheng成员
6月30日

删除临时版本算子适配,相关功能通过正式算子承载

likedislike
Pull Request已成功合入, 合并人@ascend-robot
(感谢 JialiZheng 的贡献)
JialiZhengJialiZheng成员
6月30日 创建了 pull request,commit 80dcb9a4
ascend-robotascend-robot成员
6月30日 添加了label:ascend-cla/yes
ascend-robot
ascend-robot成员
6月30日 评论:

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-Ascend/MindSpeed 郭鹏, wuweiqiang24 (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

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

likedislike
JialiZhengJialiZheng成员
6月30日 修改了pull request 的描述
JialiZheng
JialiZheng成员
6月30日 评论:

compile

likedislike
atomgit-bot
atomgit-bot
6月30日 评论:

变更摘要

此 PR 清理了三组临时版本的自定义算子适配(SFA / SFAG / SLI),删除了对应的 C++ 算子实现、Python 封装层及 OpBuilder 构建类,后续将由正式算子承接相关功能。同时在 mindspeed/op_builder/__init__.py 中移除了 NPUSparseLIGradKlLossOpBuilder 的导入,并新增 __all__ 列表以显式声明保留的算子构建器。

主要改动

  • 删除 NPULightningIndexerOpBuilder 及相关算子:移除构建类 mindspeed/op_builder/npu_lightning_indexer_builder.py、C++ 实现 npu_lightning_indexer.cpp(含正向 npu_lightning_indexer 与反向 npu_lightning_indexer_grad)及 Python 封装 mindspeed/ops/npu_lightning_indexer.py,共计约 222 行代码
  • 删除 NPUSparseAttnSharedKVOpBuilder 及相关算子:移除构建类 mindspeed/op_builder/npu_sparse_attn_shared_kv_builder.py、C++ 实现 npu_sparse_attn_shared_kv.cpp(含 metadata、forward、backward)及 Python 封装 mindspeed/ops/npu_sparse_attn_shared_kv.py,共计约 268 行代码
  • 删除 NPUSparseLIGradKlLossOpBuilder 及相关算子:移除构建类 mindspeed/op_builder/npu_sparse_lightning_indexer_grad_kl_loss_builder.py、C++ 实现 npu_sparse_lightning_indexer_grad_kl_loss.cpp 及 Python 封装 mindspeed/ops/npu_sparse_lightning_indexer_grad_kl_loss.py,共计约 273 行代码
  • 重构 mindspeed/op_builder/__init__.py 的导出:移除 NPUSparseLIGradKlLossOpBuilder 的导入语句,新增 __all__ 列表显式声明 27 个保留的算子构建器(如 FusionAttentionV2OpBuilderSwigluOpBuilderRmsNormOpBuilder 等),提升模块接口的清晰度
likedislike
ascend-robotascend-robot成员
6月30日 添加了label:ci-pipeline-running
ascend-robot
ascend-robot成员
6月30日 评论:

ascend docs pipeline is running...

likedislike
ascend-robotascend-robot成员
6月30日 添加了label:docs-ci-pipeline-running
ascend-robot
ascend-robot成员
6月30日 评论:

ascend docs pipeline is running...

likedislike
ascend-robot
ascend-robot成员
6月30日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
ascend-robotascend-robot成员
6月30日 删除了label:docs-ci-pipeline-running
ascend-robotascend-robot成员
6月30日 添加了label:docs-ci-pipeline-success
ascend-robot
ascend-robot成员
6月30日 评论:

✅ 跳过 docs ci 检查,没有需要检查的文档文件

likedislike
gp513成员
6月30日 评论:

/approve

likedislike
ascend-robotascend-robot成员
6月30日 添加了label:approved
atomgit-bot
atomgit-bot
6月30日 评论:

代码审查

✅ 未发现问题

likedislike
ascend-robotascend-robot成员
6月30日 删除了label:ci-pipeline-running
ascend-robotascend-robot成员
6月30日 添加了label:ci-pipeline-passed
ascend-robot
ascend-robot成员
6月30日 评论:
流水线 PR-pipeline_MindSpeed#2553 [ commitID:c3548411 ] 已完成
>>>代码风格自动修复执行成功(无修复内容)
阶段 任务名 状态 详情
编译构建 Build >>>
恶意代码检查 Antipoison >>>
编码安全与规范检查 Only_doc_commit >>>
CodeCheck >>>
CodeCheck-pre-commit >>>
开源片段检查 SCA >>>
开发者测试 UT_MindSpeed >>>
UT_MindSpore >>>
流水线 PR-pipeline_MindSpeed >>>
此流水线已支持下列评论快捷指令,仅PR创建者和白名单成员评论有效
  • compile : 运行流水线
  • retry : 重试流水线所有失败子任务
  • retry <任务名> : 仅重试指定失败子任务
  • stop : 停止流水线
likedislike
wuweiqiang24
wuweiqiang24成员
7月1日 评论:

/lgtm

likedislike
ascend-robotascend-robot成员
7月1日 添加了label:lgtm
ascend-robotascend-robot成员
7月1日 合入了pull request