Merged
feat: 迁入 evolution 策略库 161 策略卡 + 142 Playbook 至 contrib/ascendc #103
feat: 迁入 evolution 策略库 161 策略卡 + 142 Playbook 至 contrib/ascendc #103
Merged
sijiaaliAdd on 28 days ago
sijiaali
sijiaali
28 days ago

Pull Request 说明

变更说明

  • 关联 Issue:
  • 主要改动:- 新增 knowledge/contrib/ascendc/optimizations/evolution_strategies/(161 卡,10 个主题 section + 各级 index.md)
    • 新增 knowledge/contrib/ascendc/runbooks/performance/(142 Runbook + index.md)
    • 修改 knowledge/contrib/ascendc/index.md、optimizations/index.md(补直接子级导航)
    • 新增 logs/2026-10-10.md 变更记录
    • 共 316 新文件 + 2 修改;不含治理规则、Skill、检索组件变更

变更类型

验证

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for sijiaali's contribution.)
sijiaalisijiaali
28 days ago Created pull request, commit 2c1c9085
sijiaalisijiaali
28 days ago Associated issue: [Knowledge-Request|知识需求]:AscendC 进化优化策略库入库:161 策略卡 + 142 Playbook(cannbot-skills 迁移)
CANN-robot
CANN-robotCollaborators
28 days ago Comments:

Hi @sijiaali, welcome to submitting your first PR to cannbot-knowledge!

PR Merge Steps

1. CLA Signing

If the current PR label includes cann-cla/yes, it means you have signed the CLA and can proceed to the next step. If the label includes cann-cla/no, please sign the CLA first. If you have any questions, please refer to the FAQ.

2. CI Check

Please comment /compile to trigger the CI pipeline check. If the CI run is successful, the PR will be tagged with ci-pipeline-passed and you can proceed to the next step. If the CI run fails, the PR will be tagged with ci-pipeline-failed, please check the CI logs to fix the issues in the PR. If you have any questions, please refer to the FAQ.

3. Code Review

After CI passes, please refer to the PR Approval Progress and proactively @ the committers in the table to review the code. After approval, committers will comment /lgtm and /approve. Once the lgtm and approved labels are successfully added, the PR will be merged automatically.

likedislike
CANN-robotCANN-robotCollaborators
28 days ago Added label: cann-cla/no
CANN-robot
CANN-robotCollaborators
28 days ago 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-knowledge ✅ wangsj0012, qq_41667743 (2/2) ✅ wangsj0012 (1/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
sijiaali
sijiaali
26 days ago Comments:

/check-cla

likedislike
CANN-robotCANN-robotCollaborators
26 days ago Removed label: cann-cla/no
CANN-robotCANN-robotCollaborators
26 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
26 days ago Comments:

CLA检查已通过,详情可参考这里

likedislike
sijiaalisijiaali
26 days ago Pre merge succeeded (commit_id: 54900007d2640b5a88b4da4efcb620b5561593b1)
sijiaalisijiaali
26 days ago Force-pushed 1 commits:0b9b23e0-feat: 迁入 evolution 策略库 161 策略卡 + 142 Playbook 至 contrib/ascendc
sijiaalisijiaali
26 days ago Pre merge succeeded (commit_id: 593a271b2da48e7a9f58dc5df83ca99efe0ca3eb)
CANN-robotCANN-robotCollaborators
26 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
26 days ago Added label: cann-cla/yes
汪超Collaborators26 days agoStart code review2
knowledge/contrib/ascendc/optimizations/evolution_strategies/index.md
@@ -0,0 +5,4 @@
5+ 
6+## 策略卡
7+ 
8+- [进化策略卡(P/D/A/R 系列)](cards/index.md):161 张知识卡,按算子族分组索引。
汪超26 days agoComments:

为什么要单独建一个cards路径,这个下面之后还会有其他的目录吗?

likedislike
sijiaali
sijiaali
25 days ago Comments:

cards内部平铺的所有知识卡片 内部未按算子种类分类 、 之后同级的目录也会新增discovered进化演进的知识卡片(仍是平铺)

zhengshencn_hwcaCollaborators
26 days ago Comments:

整体看了一遍,check.sh 是绿的,schema、来源链接可达性这些硬门槛都没问题。有几处个人觉得值得修一下的地方,返修后合入应该没问题,供参考:

  1. Playbook 的 description:以 a1_fp32_intermediate 为例,description 只有一句「本 Playbook 为强制流程」,没有主题信息——description 是检索主键,这句话检索时等于空。我粗看了一下,好像不少 Playbook 都是这句模板,index 的导航摘要也一并被带成这句了。建议统一改写成「做什么、适用什么场景」的一句话,可以复用对应策略卡的 description。

  2. platforms 与正文:d5_bf16_special_handling 这张,frontmatter 标的 a2,但正文写了 910B/910_93/910_95/310P/kirin 多个平台的差异行为。按仓里的约定 platforms 应该只填实际验证过的,或者把未验证的标注为可迁移推断。类似的卡(比如 p108,整卡就是按 NpuArch 在 A2/A3/950 之间路由)可能也有同样情况,建议顺手过一遍。

  3. 交叉引用:p120 里写「退回 P42/P39 向量化(判定见 P13)」,我查了一下全集里没有 P39 这张,P42 和 P13 还都是 deprecated 状态,stable 卡把读者导向不存在和已废弃的策略,容易误导。另外还有引用 references/discovered/disc_X17~X20 这种不在仓里的路径(p128~p131 一带),以及 p53 把 P18 写成 P17 的小错,建议一起核一遍引用。

  4. p9 疑似拼接错乱:标题和核心思想讲的是多核确定性输出,但代码骨架贴的是双输出量化的读写代码,「关键修改点」里又只有一句预期收益,感觉像是上游原卡内容拼接错了,建议回源仓核对一下。

另外几条小建议:deprecated 的十几张卡(p6/p13/r1-r8 等)建议在正文里补一句废弃原因或去向;L1 常驻复用那个主题 p18/p53/p83 三张有些重叠,建议互链说明下取舍;「专家实现」「lingxi-code」这类内部称谓出现在不少文件里,迁入公共库的话建议换成可公开溯源的说法;PR 描述里的数字和 log 日期跟实际 diff 对不上(实际是 308 新增 + 2 修改),也请顺手更新一下。

最后顺便确认一个口径:contrib/ascendc/runbooks 这批卡需不需要遵循 ops/runbooks 的正文契约(适用场景节、验证信号标平台和证据等级)?目前 lint 好像不扫 contrib,存量卡也没有这个节,不确定是盲区还是有意豁免,想听下维护者的说法,方便后续批次对齐。

likedislike
汪超Collaborators26 days agoStart code review2
knowledge/contrib/ascendc/optimizations/evolution_strategies/cards/a1_fp32_intermediate.md
@@ -0,0 +18,4 @@
18+- a2
19+---
20+ 
21+# A1: FP32 Intermediate Computation (FP32中间计算)
汪超26 days agoComments:

每个知识开头的A1 D1的代表什么意思,是否有实际意义

likedislike
sijiaali
sijiaali
25 days ago Comments:

有的 A - Accuracy,精度处理策略 D - Data type,数据类型相关策略

汪超Collaborators26 days agoStart code review2
knowledge/contrib/ascendc/optimizations/evolution_strategies/cards/a1_fp32_intermediate.md
@@ -0,0 +15,4 @@
15+created_at: '2026-10-09T00:00:00Z'
16+updated_at: '2026-10-09T00:00:00Z'
17+platforms:
18+- a2
汪超26 days agoComments:

这个平台需要明确一下,是否是仅在a2平台上适用

likedislike
sijiaali
sijiaali
25 days ago Comments:

本批均为 a2 实测,frontmatter platforms 已按此口径标注,正文其他平台内容均为推断标注

sijiaalisijiaali
25 days ago Pre merge succeeded (commit_id: b2cc86ebfce48273f4ae49c586dfc01d0663fad6)
sijiaalisijiaali
25 days ago Force-pushed 6 commits:912d5ed9-3 commits from branch master,4c3b6800-feat: 迁入 evolution 策略库 161 策略卡 + 142 Playbook 至 contrib/ascendc,1473bc23-feat: 迁入 X 系列进化发现 89 卡至 evolution_strategies/discovered + 修复跨仓引用,55793328-fix: evolution 策略库评审修复包(引用修正/卡重建/标注/deprecated 去向/description 去同质化/称谓公开化)
sijiaalisijiaali
25 days ago Pre merge succeeded (commit_id: ce94c179942f3e23d9a588369ca7560d6cb97be3)
CANN-robotCANN-robotCollaborators
25 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
25 days ago Added label: stat/needs-squash
CANN-robotCANN-robotCollaborators
25 days ago Added label: cann-cla/yes
sijiaali
sijiaali
25 days ago Comments:

整体看了一遍,check.sh 是绿的,schema、来源链接可达性这些硬门槛都没问题。有几处个人觉得值得修一下的地方,返修后合入应该没问题,供参考:

  1. Playbook 的 description:以 a1_fp32_intermediate 为例,description 只有一句「本 Playbook 为强制流程」,没有主题信息——description 是检索主键,这句话检索时等于空。我粗看了一下,好像不少 Playbook 都是这句模板,index 的导航摘要也一并被带成这句了。建议统一改写成「做什么、适用什么场景」的一句话,可以复用对应策略卡的 description。

  2. platforms 与正文:d5_bf16_special_handling 这张,frontmatter 标的 a2,但正文写了 910B/910_93/910_95/310P/kirin 多个平台的差异行为。按仓里的约定 platforms 应该只填实际验证过的,或者把未验证的标注为可迁移推断。类似的卡(比如 p108,整卡就是按 NpuArch 在 A2/A3/950 之间路由)可能也有同样情况,建议顺手过一遍。

  3. 交叉引用:p120 里写「退回 P42/P39 向量化(判定见 P13)」,我查了一下全集里没有 P39 这张,P42 和 P13 还都是 deprecated 状态,stable 卡把读者导向不存在和已废弃的策略,容易误导。另外还有引用 references/discovered/disc_X17~X20 这种不在仓里的路径(p128~p131 一带),以及 p53 把 P18 写成 P17 的小错,建议一起核一遍引用。

  4. p9 疑似拼接错乱:标题和核心思想讲的是多核确定性输出,但代码骨架贴的是双输出量化的读写代码,「关键修改点」里又只有一句预期收益,感觉像是上游原卡内容拼接错了,建议回源仓核对一下。

另外几条小建议:deprecated 的十几张卡(p6/p13/r1-r8 等)建议在正文里补一句废弃原因或去向;L1 常驻复用那个主题 p18/p53/p83 三张有些重叠,建议互链说明下取舍;「专家实现」「lingxi-code」这类内部称谓出现在不少文件里,迁入公共库的话建议换成可公开溯源的说法;PR 描述里的数字和 log 日期跟实际 diff 对不上(实际是 308 新增 + 2 修改),也请顺手更新一下。

最后顺便确认一个口径:contrib/ascendc/runbooks 这批卡需不需要遵循 ops/runbooks 的正文契约(适用场景节、验证信号标平台和证据等级)?目前 lint 好像不扫 contrib,存量卡也没有这个节,不确定是盲区还是有意豁免,想听下维护者的说法,方便后续批次对齐。

@zhengshencn_hwca

  1. Playbook description:101 份占位 description("本 Playbook 为强制流程"等两种模板)已全部替换为对应策略卡的真实 description;其余 41 份已有具体描述的不动。索引摘要随 sync-indexes 一并更新。
  2. platforms:口径按约定收紧——frontmatter 只保留实测平台 a2;正文涉及其他平台的容量值/阈值/路由描述逐处补「跨平台参考值 / 可迁移推断,未实测」注记,d5、p108 及同类共 10 处。
  3. 交叉引用:p120 的「退回 P42/P39(判定见 P13)」改指现存有效卡 P102/P94/P95;p128-p131 的 references/discovered 仓外路径已改为仓内相对链接(X 系列 89 卡已随本 MR 迁入 optimizations/evolution_strategies/discovered/);p53 的 P17
    笔误已改 P18。全集已无不存在的引用目标。
  4. p9 拼接错乱:确认是上游原卡错乱,已以其 Playbook 为权威来源重建正文。排查同类问题时发现 p8 同样错乱(标题 UB 分区、内容 BF16 中间计算),已一并重建。
  5. deprecated 去向:13 张全部补废弃原因;P6→A2、P42→P85、P82→P19、R6→P68 另补 replaced_by 指针。
  6. p18/p53/p83:三卡已互链并写明取舍(P83 通用判定框架 → P18 MLA 7-buffer 配方 → P53 单 buffer 最小形态)。
likedislike
sijiaali
sijiaali
24 days ago Comments:

/compile

likedislike
sijiaalisijiaali
24 days ago Pre merge succeeded (commit_id: 60267582ed7d9081c99ae3e2beb0ac50a79af1d1)
CANN-robot
CANN-robotCollaborators
24 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
24 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
24 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
24 days ago Added label: ci-pipeline-passed
汪汪超Collaborators
22 days ago Resolved final issue
汪超Collaborators
19 days ago Comments:

/lgtm

likedislike
wangshaojun
wangshaojunCollaborators
19 days ago Comments:

/approve

likedislike
CANN-robotCANN-robotCollaborators
19 days ago Added label: lgtmapproved
CANN-robotCANN-robotCollaborators
19 days ago Merged pull request