已合并
refactor: Remove SFA/SFAG/SLI #3591
JialiZheng创建于 6月30日
refactor: Remove SFA/SFAG/SLI #3591
已合并
Pull Request已成功合入, 合并人@ascend-robot
(感谢 JialiZheng 的贡献)6月30日 创建了 pull request,commit 80dcb9a4
ascend-robot
6月30日 评论:
6月30日 评论:
6月30日 添加了label:ascend-cla/yes
ascend-robot
6月30日 评论:
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
/approveor/lgtm- Commenting
/approveimplies 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. 👍


6月30日 修改了pull request 的描述
JialiZheng
6月30日 评论:
6月30日 评论:
compile


atomgit-bot
6月30日 评论:
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 个保留的算子构建器(如FusionAttentionV2OpBuilder、SwigluOpBuilder、RmsNormOpBuilder等),提升模块接口的清晰度


6月30日 添加了label:ci-pipeline-running
ascend-robot
6月30日 评论:
6月30日 评论:
ascend docs pipeline is running...


6月30日 添加了label:docs-ci-pipeline-running
ascend-robot
6月30日 评论:
6月30日 评论:
ascend docs pipeline is running...


ascend-robot
6月30日 评论:
6月30日 评论:
✅ 跳过 docs ci 检查,没有需要检查的文档文件


6月30日 删除了label:docs-ci-pipeline-running
6月30日 添加了label:docs-ci-pipeline-success
ascend-robot
6月30日 评论:
6月30日 评论:
✅ 跳过 docs ci 检查,没有需要检查的文档文件


6月30日 添加了label:approved
atomgit-bot
6月30日 评论:
6月30日 评论:
6月30日 删除了label:ci-pipeline-running
6月30日 添加了label:ci-pipeline-passed
ascend-robot
6月30日 评论:
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 | ✅ | >>> |
- compile : 运行流水线
- retry : 重试流水线所有失败子任务
- retry <任务名> : 仅重试指定失败子任务
- stop : 停止流水线


wuweiqiang24
7月1日 评论:
7月1日 评论:
/lgtm


7月1日 添加了label:lgtm
7月1日 合入了pull request
删除临时版本算子适配,相关功能通过正式算子承载