Merged
fix aidd问题合入 #15715
caiwenwenAdd on 19 days ago
fix aidd问题合入 #15715
Merged
caiwenwenAdd on 19 days ago
caiwenwen
caiwenwenCollaborators
19 days ago

描述

aidd修改问题,修改约142个问题

关联的Issue

https://gitcode.com/cann/ops-transformer/issues/7362

测试

文档更新

类型标签

likedislike
Pull Request has been successfully merged by CANN-robot.
(Thank you for caiwenwen's contribution.)
caiwenwencaiwenwenCollaborators
19 days ago Created pull request, commit 1ebe1549
6 event messages are collapsed here。 See more
CANN-robotCANN-robotCollaborators
19 days ago Added label: cann-cla/yes
CANN-robot
CANN-robotCollaborators
19 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
*/*/docs/acl*.md ✅ zzzzzzyf_, 杨露, 刘丹, 俞郑中, cc-z, kdy18482276080 (6/2) ✅ zzzzzzyf_, 杨露 (2/1)
attention ✅ 俞郑中, cc-z, 刘丹, kdy18482276080 (4/2) ✅ 俞郑中, cc-z, 刘丹 (3/1)
experimental/attention ✅ 刘丹, kdy18482276080, 俞郑中, cc-z (4/2) ✅ 俞郑中, cc-z, 刘丹 (3/1)
gmm ✅ 俞郑中, cc-z, 刘丹, kdy18482276080 (4/2) ✅ 俞郑中, cc-z, 刘丹 (3/1)
mc2 ✅ 俞郑中, 刘丹 (2/2) ✅ 俞郑中, 刘丹 (2/1)
posembedding ✅ 俞郑中, cc-z, 刘丹, kdy18482276080 (4/2) ✅ 俞郑中, cc-z, 刘丹 (3/1)

💡 Tip:

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

CLA Signature Pass

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

likedislike
CANN-robotCANN-robotCollaborators
19 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
19 days ago Added label: cann-cla/yes
atomgit-bot
atomgit-bot
19 days ago Comments:

变更摘要

本 PR 为文档规范化整理(标题为 fix aidd),未涉及代码逻辑改动,集中对 attention、experimental/attention、gmm、mc2、moe、posembedding、mhc 等目录下 79 个接口文档进行术语统一、拼写/笔误修正、字段名与参数名对齐以及冗余内容清理。整体目标是让算子文档中的硬件单元名称、参数命名、数据类型命名和 Markdown 排版与实现保持一致。

主要改动

  • 统一硬件单元与算子术语写法:将 aicore error、AICPU、AIVCore、AIcore、AIC核 等写法统一为 AI Core、AI CPU、AIV Core,并将 PageAttention/Page Attention/Paged Attention 统一为 PagedAttention,FlashAttention、Batch size、hidden size、Sliding Window 等术语写法同步规范化。
  • 修正拼写与数据类型标识笔误:把 ceiv(maxQueryLen, blockSize) 修正为 ceil(...),prefile 修正为 prefill,FLOAT_E5M2 修正为 FLOAT8_E5M2,FP8_E4M3FN 修正为 FLOAT8_E4M3FN,最大正则数 修正为 最大正规数,M-RoPE、Res Mapping、torch_npu 等名称写法对齐。
  • 对齐入参/出参字段名:将文档中的 input_layout 统一改为 inputLayout,input_layout/softmax_lse 对应改为 softmaxLse,lseOut 改为 softmaxLse,attenOut/attenout 改为 attentionOut,smoothScaleCq 改为 smoothScalesCq,quantScaleCkr、numKeyValueHeads、topk_weights、kCacheRef[i][indices[i]]、ActualSeqLen 参数组等字段名同步修正。
  • 修正参数语义描述错误:aclnnSparseFlashAttention.md 中非连续 Tensor 支持的 layoutKvOptional 由 PA_BBND 改为 PA_BSND,aclnnMoeDistributeCombineV2.md 中 tpSendCountsOptional 的描述改为对应 aclnnMoeDistributeCombineV2 中 tpRecvCounts 输出,torchapi_sparse_flash_mla.md 中 cmp_ratio=!1、mask mode !=0 修正为 != 形式。
  • 清理冗余与无效文档内容:删除 aclnnBlockSparseAttentionV3.md 中重复的“详见约束说明”条目、aclnnNsaCompressWithCache.md 中多余的 activeNum/expertNum/expertCapacity 报错行、aclnnMoeDistributeCombineV4.md 中重复的 expandScalesOptional 约束,并清理 aclnnStemOamPrepVarlenQ.md 中重复的 npu 产品支持标记块与空行;同时对文档中 * 等 Markdown 特殊字符做转义处理,避免公式与区间表达渲染异常。

🧩 本次 Review 已使用自定义 Skill:

likedislike
Incorrect?
caiwenwen
caiwenwenCollaborators
19 days ago Comments:

compile

likedislike
caiwenwencaiwenwenCollaborators
19 days ago Pre merge succeeded (commit_id: 73c413469fc7ff2d2090798daf9659ca53caf676)
CANN-robot
CANN-robotCollaborators
19 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
19 days ago Added label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
19 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
19 days ago Added label: cann-cla/yes
CANN-robotCANN-robotCollaborators
19 days ago Removed label: ci-pipeline-running
CANN-robotCANN-robotCollaborators
19 days ago Added label: ci-pipeline-failed
CANN-robot
CANN-robotCollaborators
19 days ago Comments:

流水线分析报告 — ops-transformer run#15179

流水线: https://gitcode.com/cann/ops-transformer/actions/runs/d3e083820e4842c88f199ace936e622b | PR#15715 | 2026-11-11 11:59:01 ~ 12:02:27 | 失败 Job 2 个

定界结论: 代码问题 x1 + 工程问题 x1(共 2 个根因)

根因 #1(代码问题 / 代码检查错误)

  • 根因: Check_Example 门禁检测到 PR 涉及的 3 个算子 UT 缺失/为空: attention/nsa_compress_attention_infer、attention/nsa_compress_with_cache、attention/recurrent_kda
  • 处置: 提交者补齐上述 3 个算子的 UT(新建/填充 tests/ut 用例), 重新触发流水线
  • 影响 Job: Check_examples_ut

根因 #2(工程问题 / GitCode平台限流)

  • 根因: SCA 扫描任务轮询时被平台限流(HTTP 429, APIG.0308, 单用户 200 次/分钟), 任务中断被误判为"合规检查未通过"; 同次运行末的 issue 查询返回 count: 0, 无实际合规问题
  • 处置: 属服务限流, 可重试 —— 直接重新触发流水线即可(无需修改代码); 若持续 429, 联系 SCA 服务维护者
  • 影响 Job: SCA

排除项: 无 Checkout/取码失败、无编译错误、无用例执行失败; 两个失败 Job 根因不同, 无同因聚合。

失败根因分析

根因 #1: 代码问题 / 代码检查错误 — 3 个算子缺 UT
  • 判据: check_example_failed=nsa_compress_attention_infer,nsa_compress_with_cache,recurrent_kda(Check_Example 门禁: PR 触碰算子 UT 缺失/为空)
  • 定位步骤: 3_check_examples_ut.log
  • 影响 Job: Check_examples_ut
  • 根因证据(日志原文):
[2026-11-11 12:00:46.690+08:00] pr_filelist涉及算子(依赖展开可用时包含依赖): 51个
[2026-11-11 12:00:46.691+08:00] 算子总数: 51, 正常: 48, 异常: 3
[2026-11-11 12:00:46.692+08:00]   examples 缺失/为空: 0
[2026-11-11 12:00:46.694+08:00]   ut 缺失/为空: 3
[2026-11-11 12:00:46.701+08:00] 缺 ut:
[2026-11-11 12:00:46.702+08:00]   attention/nsa_compress_attention_infer
[2026-11-11 12:00:46.703+08:00]   attention/nsa_compress_with_cache
[2026-11-11 12:00:46.705+08:00]   attention/recurrent_kda
[2026-11-11 12:00:46.708+08:00] check_example_failed=nsa_compress_attention_infer,nsa_compress_with_cache,recurrent_kda
  • 关联 PR 变更: PR#15715 变更 79 个文件(均为 docs/*.md 文档), 覆盖上述 3 个算子(attention/nsa_compress_attention_infer/docs/aclnnNsaCompressAttentionInfer.md、attention/nsa_compress_with_cache/docs/aclnnNsaCompressWithCache.md、attention/recurrent_kda/docs/aclnnRecurrentKda.md), 门禁按 PR 触碰算子校验 UT, 这 3 个算子 UT 目录缺失/为空
  • 说明: 检查报告已上传 https://ascend-ci.obs.cn-north-4.myhuaweicloud.com/CANN/ops-transformer/ci/package/15715/check_examples_ut.csv
根因 #2: 工程问题 / GitCode平台限流 — SCA 轮询被 429 限流
  • 判据: TOO_MANY_REQUESTS|HTTP 429 → 平台限流(服务端, 可重试)
  • 定位步骤: 1_sca.log
  • 影响 Job: SCA
  • 根因证据(日志原文):
[2026-11-11 12:02:04.823+08:00] self.scanId: c690f8fe-c5ce-439d-a272-9b9043a95cde
[2026-11-11 12:02:04.931+08:00] 响应状态码: 429
[2026-11-11 12:02:04.931+08:00] 响应内容: {"error_msg":"The throttling threshold has been reached: policy user over ratelimit,limit:200,time:1 minute","error_code":"APIG.0308","request_id":"7766eb055d320ed8b9f847c68ba46680"}
[2026-11-11 12:02:04.931+08:00] [code check 2026-11-11 12:02:04] task failed
[2026-11-11 12:02:04.931+08:00] [sca check 2026-11-11 12:02:04]代码开源合规检查未通过,如需查看详情或屏蔽,请查看 [扫描报告](...)
[2026-11-11 12:02:05.050+08:00] [sca check 2026-11-11 12:02:05] query scan issues success, count: 0
结构化定界摘要
[
  {
    "repo": "ops-transformer",
    "run_number": 15179,
    "Failed_Type": "代码问题",
    "Failed_Sub_Type": "代码检查错误",
    "Failed_Reason": "Check_Example 门禁: PR 涉及的 3 个算子 attention/nsa_compress_attention_infer、attention/nsa_compress_with_cache、attention/recurrent_kda 的 UT 缺失/为空",
    "evidence": "check_example_failed=nsa_compress_attention_infer,nsa_compress_with_cache,recurrent_kda",
    "suggestion": "提交者补齐上述 3 个算子的 UT 用例后重新触发流水线",
    "jobs": "Check_examples_ut"
  },
  {
    "repo": "ops-transformer",
    "run_number": 15179,
    "Failed_Type": "工程问题",
    "Failed_Sub_Type": "GitCode平台限流",
    "Failed_Reason": "SCA 扫描轮询被平台限流(HTTP 429 APIG.0308, 200次/分钟), 任务中断被误报为合规检查未通过; 后续 issue 查询 count=0, 无实际合规问题",
    "evidence": "响应状态码: 429 / {\"error_msg\":\"The throttling threshold has been reached: policy user over ratelimit,limit:200,time:1 minute\",\"error_code\":\"APIG.0308\"}",
    "suggestion": "服务限流, 直接重新触发流水线即可; 持续 429 则联系 SCA 服务维护者",
    "jobs": "SCA"
  }
]

由门禁失败定界分析自动生成 | repo: ops-transformer | run: d3e083820e4842c88f199ace936e622b | PR#15715

likedislike
caiwenwencaiwenwenCollaborators
19 days ago Pre merge succeeded (commit_id: 595dbad8568b80360d5be40d32032bd358c0bf5c)
caiwenwencaiwenwenCollaborators
19 days ago Pushed 1 commits:352bbf78-fix aidd3
caiwenwencaiwenwenCollaborators
19 days ago Pre merge succeeded (commit_id: 9c65fc2d96a10d3dcb210fec313e79747e8a7928)
CANN-robotCANN-robotCollaborators
19 days ago Removed label: cann-cla/yes
CANN-robotCANN-robotCollaborators
19 days ago Added label: cann-cla/yes
caiwenwen
caiwenwenCollaborators
19 days ago Comments:

compile

likedislike
caiwenwencaiwenwenCollaborators
19 days ago Pre merge succeeded (commit_id: 28b1289a0d5b095203b1cf638013f1bb9a7e1e02)
CANN-robot
CANN-robotCollaborators
19 days ago Comments:
🚀 CI 流水线已启动
📋 执行详情: 点击查看流水线
likedislike
CANN-robotCANN-robotCollaborators
19 days ago Removed label: ci-pipeline-failed
5 event messages are collapsed here。 See more
caiwenwencaiwenwenCollaborators
19 days ago Modify description of pull request
周云飞
周云飞Collaborators
19 days ago Comments:

/approve

likedislike
赵臣臣
赵臣臣Collaborators
19 days ago Comments:

/lgtm
/approve

likedislike
yanglu-1
yanglu-1Collaborators
19 days ago Comments:

/lgtm
/approve

likedislike
kdy18482276080
kdy18482276080Collaborators
19 days ago Comments:

/lgtm

likedislike
liudan12
liudan12Collaborators
18 days ago Comments:

/lgtm
/approve

likedislike
CANN-robotCANN-robotCollaborators
18 days ago Added label: approved
YuZhengzhong
YuZhengzhongCollaborators
18 days ago Comments:

/approve
/lgtm

likedislike
CANN-robotCANN-robotCollaborators
18 days ago Added label: lgtm
CANN-robotCANN-robotCollaborators
18 days ago Merged pull request