Pull Request has been successfully merged by CANN-robot.
(Thank you for caiwenwen's contribution.)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
/approveor/lgtm- Commenting
/approveimplies 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. 👍


变更摘要
本 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:


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


流水线分析报告 — 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
- 判定依据: 失败前 90 秒平台返回均为
state: scanning(扫描进行中), 第 10 次轮询时接口返回 HTTP 429 限流; 随后补查 issue 结果为count: 0, 即不存在实际合规问题。末尾"开源合规检查未通过"是脚本对 429 的中断性兜底文案, 不是真实扫描结论(故非代码问题, 勿误导提交者改代码) - 扫描报告: https://www.openlibing.com/apps/personalScandTaskInfor/person/c690f8fe-c5ce-439d-a272-9b9043a95cde?projectId=300033&codeHostingPlatformFlag=gitcode
结构化定界摘要
[
{
"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


compile


| 🚀 CI 流水线已启动 |
|---|
| 📋 执行详情: 点击查看流水线 |


/approve


/lgtm
/approve


/lgtm
/approve


/lgtm


/lgtm
/approve


/approve
/lgtm


描述
aidd修改问题,修改约142个问题
关联的Issue
https://gitcode.com/cann/ops-transformer/issues/7362
测试
文档更新
类型标签