Merged
feat(cake): 导入 AscendDSL·CV 轨三个技能 #60
feat(cake): 导入 AscendDSL·CV 轨三个技能 #60
Merged
JunyiAdd on Sep 28
Junyi
JunyiCollaborators
Sep 28

这个 MR 做什么

把 CAKE2 的 AscendDSL·CV 轨三个技能从 cann/cannbot-skills 分支 feat/add-cake-plugin(4d9ec423)平铺导入,不带 git 历史。这是 cake 迁移剩余三轨中的第一轨,基线为 master a17dd89(MR !15 合入后)。

skills/ascend-call-generation-cv     12 文件   4 py / 3 json / 3 cpp / 2 md
skills/dsl-baseline-generation-cv    23 文件   21 py / 2 md
skills/dsl-lowering-cv               59 文件   59 md
                                     94 文件 / +10622 行

导入结果与导入源逐字节一致,差异仅为下述 G.FMT.03 整改。

一、CodeCheck

已修 18 条 G.FMT.03(类间空 2 行)。 改动只增删空行——逐文件比对过非空行内容,与导入源完全相同;四个受影响文件语法校验通过。

另有 24 条申请屏蔽,全部落在 dsl-baseline-generation-cv/references/{input,output}_example/ 下的 10 个文件:

规则 条数
G.FNM.03 位置形参 > 5 11
超大函数 8
超大深度函数 5

理由三条:

  1. 这些文件是该技能的参考示例,内容为生成器实际会输出的 AscendDSL kernel 代码,供模型比对格式与写法。按检查器要求拆分函数、削减形参会使示例不再代表生成器的真实输出,技能因此失去参考价值。
  2. 它们不被任何代码导入或执行,只作为技能文档的引用素材。
  3. 本仓已有同类先例:已合入的 dsl-baseline-generation(本轨的非 CV 孪生)至今带着 15 条 G.FNM.03、5 条超大深度函数、4 条超大函数;MR !15 已批准的 48 条屏蔽中有 36 条正是同一形态的 references/*_example/ 文件。

(行号与规则名以 CodeCheck 实际导出为准,本 PR 首次 /compile 后按导出提交申请。)

二、第三方许可:本次无需登记

ascend-call-generation-cv 的三个参考算子(matmul_gelu、quant_matmul、rms_matmul_scale)与非 CV 孪生 ascend-call-generation 的参考算子作了逐对文本比对:

CV 算子 与 matmul(未登记为第三方) 与四个已登记第三方算子
matmul_gelu 53% / 70% 29%–35%
quant_matmul 59% / 67% 29%–34%
rms_matmul_scale 49% / 70% 25%–35%

(两列分别为 .cpp 与 _custom.py 的相同非空行占比。)

三者都明显靠近 matmul——后者是非 CV 侧五个参考算子中唯一未被 OAT.xml 登记为第三方的一个;与 average_pooling2d、layer_norm、mse_loss、sum_reduction_over_a_dimension 四个已登记算子的距离都停在样板水平(这些文件仅 20–38 行,import 与注册装饰器即占相当比例)。据此本次不新增 OAT.xml filteritem 与 README.OpenSource 条目。

这是结构证据,不是来源证明;本 PR 的 SCA 扫描是实际检验。

三、本次不改 agent 路由

MR !15 把 cake.md 的技能清单从 30 个裁到 17 个,并把导入源的四列轨道表(cake.md:235-237,列为 AscendDSL·Vector / AscendDSL·CV / TileLang / EasyAsc)改成了单轨流程。三个 agent 与导入源合计差 195 行,而这 195 行是 CV、TileLang、EasyAsc 三轨交织的,切不出只属于 CV 的一份;强行切要编造两个既不会被使用、也无从校验的中间态。

因此路由恢复集中到三轨内容全部落地后的接线 PR,届时对导入源逐字节比对。代价是在那之前这三个技能没有 agent 引用,依赖图门禁会如实报出 3 条 DG-07 孤立告警。

四、验证

仓库根为本分支,基线 master a17dd89,子模块 9ae606b3:

  • 导入的 94 个文件与 4d9ec423 逐字节比对,差异仅为空行
  • 依赖图门禁(取自 MR !54 的 tests/,本 PR 不含)退出码 0,errors 0、warnings 22、total_skills 158、total_agents 31;22 条告警中 3 条为上述 CV 孤立,其余 19 条为 master 既有
  • 未改动任何 !15 已合入的文件

🤖 Generated with Claude Code

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for Junyi's contribution.)
JunyiJunyiCollaborators
Sep 28 Created pull request, commit 0b547ec3
CANN-robotCANN-robotCollaborators
Sep 28 Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
Sep 28 Comments:

CLA Signature Pass

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

likedislike
CANN-robot
CANN-robotCollaborators
Sep 28 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
repo-cann/cannbot ✅ 汤平川, 金炯 (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

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

likedislike
JunyiJunyiCollaborators
Sep 28 Pre merge succeeded (commit_id: eb7265d4f60470d6d696a0c01042e436a7e8bb7d)
53 messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
Sep 29 Added label: approved
JunyiJunyiCollaborators
Sep 29 Pre merge succeeded (commit_id: c39b68478eec60d093267cf5dd6cb7b17dbc4264)
jon_jin
jon_jinCollaborators
Oct 28 Comments:

/lgtm

likedislike
CANN-robotCANN-robotCollaborators
Oct 28 Added label: lgtm
CANN-robotCANN-robotCollaborators
Oct 28 Merged pull request