| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 1/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13593 merge attention into master fix(pre-commit): 全仓代码规范整改——attention 1/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **1/4**(第 1 批 26 个算子目录:attention_update ~ fused_causal_conv1d,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:757 个文件,+43107/-22224 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13593 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(chunk_gated_delta_rule): guard zero-row copy-in to avoid OOB source pointer in partial tail chunk Co-authored-by: huang-chuhong<huangchuhong1@h-partners.com> # message auto-generated for no-merge-commit merge: !13609 merge fix/cgdr-stage1-zerorow-oob into master fix(chunk_gated_delta_rule): guard zero-row copy-in to avoid OOB source pointer in partial tail chunk Created-by: huang-chuhong Commit-by: huang-chuhong Merged-by: cann-robot Description: ## 描述 修复 chunk_gated_delta_rule 在部分尾块(seqlen % chunkSize != 0 且尾块有效长度 < chunkSize/2)场景下,stage1 对 beta/value 的零行拷入使用越界 GM 源指针的问题。 根因:尾块有效长度小于半块(32)时,子块 1 的 subValidLen 为 0,但 BetaCopyInWithStride/VBetaCompute 仍按"子块有 32 行"计算源指针(src + (chunkStart+32)*Nv + n,越出输入张量末尾约 32 行)并以 blockCount=0 调 DataCopyPad。硬件 0 行拷贝为空操作,普通编译包结果不受影响;但 OOM 检查编译包(--cce-enable-oom)的 CheckGmMemOverflow 用该越界指针查注册区间,找不到命中区间即 trap(aicore error, subErrType 0x4),且 (blockCount-1)*stride 长度公式在 blockCount=0 时无符号下溢。 ## 改动 - arch35/arch22 stage1 的 BetaCopyInWithStride:subValidRows 为 0 时跳过拷入与 DeQue/FreeTensor/Gather,仅保留 Duplicate 清零填充路径(避免向 Gather 传递未 DeQue 的 tensor) - arch35/arch22 stage1 的 VBetaCompute:同样的零行保护 - 零行时输出仍为清零填充值,与原逻辑一致;正常路径不受影响,计算结果逐位一致 ## 关联的Issue #5955 ## 测试 - OOM 编译包(ascend950 实测):修复前 seqlen%64!=0 全部 trap(S=65/129/3585/4993/5000/5001),修复后全部通过;原失败随机种子 1464783216 由 0/10 → 10/10,种子 282671766 前 60 条由 4/1000 → 60/60 - 普通编译包精度回归:random 10+30+40、single 2、rdv 288 全部通过(含 golden 精度对比) - 变长序列、fp32 state、nv=2*nk、no_g 等场景实测通过 - Gather 纳入零行保护后 A/B 对比(seqlen=5000/32/8,ascend950):o/state 输出逐位一致,语义等价 ## 类型标签 - [x] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13609 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(attention): vf算子适配DeInterleave接口替换DeInterleaveV2 Co-authored-by: leiqingji<leiqingji@h-partners.com> # message auto-generated for no-merge-commit merge: !13765 merge fix/vf-deinterleave-adapt into master fix(attention): vf算子适配DeInterleave接口替换DeInterleaveV2 Created-by: leiqingji Commit-by: leiqingji Merged-by: cann-robot Description: ## 描述 底层 vf 接口调整后 DeInterleaveV2 已移除,arch92 下 vf_mul_sel_softmaxflashv2_cast_nz_dn_arch92.h 仍在调用该接口,需同步适配改为 DeInterleave。 ## 改动 - vf_mul_sel_softmaxflashv2_cast_nz_dn_arch92.h 中两处 DeInterleaveV2<T2, Reg::HighLowPart::LOWEST> 调用替换为 DeInterleave,模板参数与实参保持不变 - attention 目录下已无 DeInterleaveV2 残留引用 ## 关联的Issue #6085 ## 测试 - 本地 clang-format --dry-run --Werror 校验通过 - 通过 CI 编译验证 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13765 | 1 month ago |
| fix(compressor): 修复 ttk 三方判据链路并适配 golden Promote Co-authored-by: myy268<moyunyang@huawei.com> # message auto-generated for no-merge-commit merge: !13666 merge fix/compressor-ttk-default-mix-tolerance into master fix(compressor): 修复 ttk 三方判据链路并适配 golden Promote Created-by: myy268 Commit-by: myy268 Merged-by: cann-robot Description: ## 描述 compressor 的 ttk 测试资产(attention/compressor/tests/assets/)在最新 ttk 上存在多处失效与不匹配,本 MR 一并修复: 1. **三方(cross_check)链路此前实际未生效**:impl/compare.py、impl/golden.py 引用的是 ttk 重构前的旧模块路径——ttk.utilities.container_utils.get_global_storage 已不存在,ttk.core_modules.comparison.{cross_check,resolve} 已迁移至 ttk.core_modules.common.comparison.*。前者导入失败使 _get_compare_method() 恒为 None,后者使 is_cross_check_available() 恒为 False,导致 --compare cross_check 被静默降级为两方 isclose。已改为 ttk.switches.get_global_storage 与 ttk.core_modules.common.comparison.*。 2. **golden Promote 适配**:ttk 对 cross_check / mixed / mix_tolerance 判据会自动把自定义 golden 的输入抬精度(fp16/bf16→fp32、fp32→fp64),输出侧沿用抬升后的 dtype。三方里 golden 槽是高精度 bench、third_party 槽必须是"同精度"标杆,因此在 _split_aclnn_outputs / _split_e2e_outputs 中把插件返回的 golden 按 NPU 输出 dtype 压回(输入抬升均为精确转换,压回即精确还原原生同精度结果),避免 mare/mere/rmse 分母被抬精度后判据被稀释。同时修正 gradEnabled 下 bench 取值(bench_outputs[-1] 取 state、1/2 取 softmax/kv)与三方子输出空值判断(npu/golden/bench 三者齐全才参与比对)。 3. **spec 默认判据**:CompressorSpec / AclnnCompressorSpec 的 float16 / bfloat16 standard 由 cross_check 调整为 stat_rel_err。compressor 实际走插件自定义 compare,standard token 只影响 ttk 的 need_3party 与 golden Promote;cross_check 会在无 XPU 时打错误级日志,stat_rel_err 既非 cross_check 也不在 PROMOTE_GOLDEN_TOKENS,默认通路不再误触发。显式 --compare cross_check 仍可正常工作,spec 中 level / mare_ratio 等参数保留供其复用。 4. **batch 一致性缓存串扰**(对应 #13716):_BATCH_CONSISTENCY_CACHE 原为模块级全局字典,会跨用例持久化,使 batch 一致性比较基准泄漏到后续 case;改为在 _batch_consistency_check 内每次调用新建局部 cache。 ## 关联的Issue 关联 Issue #5987 ## 测试 ## 文档更新 无 ## 类型标签 - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13666 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 1/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13593 merge attention into master fix(pre-commit): 全仓代码规范整改——attention 1/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **1/4**(第 1 批 26 个算子目录:attention_update ~ fused_causal_conv1d,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:757 个文件,+43107/-22224 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13593 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| [DLISE] 修复DLISEV2算子oom问题 Co-authored-by: Kenny_Ke<kejunchun2@huawei.com> # message auto-generated for no-merge-commit merge: !13808 merge master into master [DLISE] 修复DLISEV2算子oom问题 Created-by: Kenny_Ke Commit-by: Kenny_Ke Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13808 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| feat(attention): FlashAttn TTK assets 支持三方(cross_check)比较 Co-authored-by: PerrySkywalker<wangmingkang1@huawei.com> # message auto-generated for no-merge-commit merge: !13793 merge feat/flash_attn_ttk_cross_check into master feat(attention): FlashAttn TTK assets 支持三方(cross_check)比较 Created-by: PerrySkywalker Commit-by: PerrySkywalker Merged-by: cann-robot Description: ## 描述 FlashAttn 的 TTK assets(attention/flash_attn/tests/assets)新增三方(cross_check)比较能力,对齐 FlashMLA / SparseFlashAttention 的实现方式: - 三方角色映射与 FlashMLA 一致:output=NPU 算子、golden=共同基准、third_party=golden 参考(CrossCheckComparison(npu, bench, ..., third_party=golden))。 - 新增 impl/fp32_bench.py:全 FP32、无任何中间 cast,复用现有布局/长度/页表/mask 适配层(compute_mode="full"),作为三方共同基准;不依赖 CUDA。 - impl/golden.py 数值链按 FlashMLA golden 对齐算子中间精度:未归一化 exp 权重 cast 到输入精度后进 PV(算子 vector->Cube 交接的 P cast),sum 用未舍入权重、PV FP32 累加、最后除以 FP32 sum;两方/三方共用同一份 golden。 - 新增 impl/cross_check.py:TTK 判定为 cross_check 时,inputs.py 在 customize_inputs 阶段缓存 golden/bench,spec.py 在 compare 时分发三方比较(L0 mare/mere/rmse 10/2/2)。 - 新增 README_cross_check.md 使用说明。 ## 关联的Issue 关联 Issue #6106 ## 测试 TTK e2e(Ascend950PR,CANN 9.3.0): - 三方:bf16 小/中量级集合 7/7 PASS,其中 BF16_01(mare=1.0009 / mere=0.273 / rmse=0.511)、BSND_01(mare=1.0 / mere=0.037 / rmse=0.288)、case41(mare=1.0 / mere=0.184 / rmse=0.497)。 - 两方:bf16 集合 6/7 PASS(BF16_01 精度 98.75%,为该用例实测偏差,非本次改动引入);BSND_01 / BSND_04 / FP16_02 / MASK_32 / LSE_09 均 PASS。 - CPU 校验:golden 与 bench 偏差符合预期(bf16 maxdiff 0.0078,16/64 点;tiled 与 full 一致)。 - pre-commit 全部通过。 ## 文档更新 新增 attention/flash_attn/tests/assets/README_cross_check.md,说明三方角色映射、数值路径与 TTK 接入方式。 ## 类型标签 - [x] ✨ 新特性 - [x] 🧪 测试 See merge request: cann/ops-transformer!13793 | 1 month ago |
| 【PYPTO】fag算子新功能适配:D泛化、swizzle、sink、attenmask Co-authored-by: Kenny_Ke<kejunchun2@huawei.com> # message auto-generated for no-merge-commit merge: !12654 merge feat/pr9617_followup into master 【PYPTO】fag算子新功能适配:D泛化、swizzle、sink、attenmask Created-by: Kenny_Ke Commit-by: Kenny_Ke Merged-by: cann-robot Description: ## 描述 【PYPTO】fag算子新功能适配:D泛化、swizzle、sink、attenmask ## 关联的Issue 关联Issue #5980 ## 测试 测试报告见附件。 ## 文档更新 - attention/flash_attn_grad/README.md文档规范化。 - attention/flash_attn_grad/docs/torchapi_flash_attn_grad.md增加新输出相关描述。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!12654 | 1 month ago |
| 【PYPTO】fag算子新功能适配:D泛化、swizzle、sink、attenmask Co-authored-by: Kenny_Ke<kejunchun2@huawei.com> # message auto-generated for no-merge-commit merge: !12654 merge feat/pr9617_followup into master 【PYPTO】fag算子新功能适配:D泛化、swizzle、sink、attenmask Created-by: Kenny_Ke Commit-by: Kenny_Ke Merged-by: cann-robot Description: ## 描述 【PYPTO】fag算子新功能适配:D泛化、swizzle、sink、attenmask ## 关联的Issue 关联Issue #5980 ## 测试 测试报告见附件。 ## 文档更新 - attention/flash_attn_grad/README.md文档规范化。 - attention/flash_attn_grad/docs/torchapi_flash_attn_grad.md增加新输出相关描述。 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!12654 | 1 month ago |
| fix(attention): FlashMLA TTK LSE 精度判据对齐 FP16 标准 Co-authored-by: PerrySkywalker<wangmingkang1@huawei.com> # message auto-generated for no-merge-commit merge: !13849 merge fix/mla_ttk_lse_precision_standard into master fix(attention): FlashMLA TTK LSE 精度判据对齐 FP16 标准 Created-by: PerrySkywalker Commit-by: PerrySkywalker Merged-by: cann-robot Description: ## 描述 将 FlashMLA TTK assets 的 LSE 精度判据从「纯绝对 rtol=0 / atol=0.1」改为与 attention out 一致的 FP16 标准: - rtol=0.005、atol=2.5e-5 - 允许 fail_ratio <= 0.5% - 非有限值不允许不一致 - FAIL 信息附带 fail_ratio 与非有限值统计 原因:原判据在大数值用例(LSE ~1e6)下,fp32 一个 ULP(0.125) 就超过 0.1,正常舍入差异被误判为失败(大 prefill 用例 75% 元素超限);NPU 与 golden 实际一致到 ULP 级(相对误差 ~1e-7)。 ## 关联的Issue #6170 ## 测试 - 新 Prefill 用例(TND / PA_BBND 非连续 k cache、return_softmax_lse=True):FAIL → PASS(ATTENTION 99.9992%、LSE 100%) - 回归:mla_float16_TND_PA_BBND_mask0_lse1、mla_float16_TND_PA_NZ_mask3_lse1 2/2 PASS ## 文档更新 无需更新文档。 ## 类型标签 - [x] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [ ] 文档更新 - [ ] 其他 See merge request: cann/ops-transformer!13849 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 1 month ago |
| FFAG ttk e2e适配/RFA低精度golden适配 Co-authored-by: eddie-han-dong<donghan12@huawei.com> Co-authored-by: juyinhao<juyinhao@huawei.com> # message auto-generated for no-merge-commit merge: !13428 merge master into master FFAG ttk e2e适配/RFA低精度golden适配 Created-by: juyinhao Commit-by: juyinhao;eddie-han-dong Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13428 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(gather_pa_kv_cache): correct PA_NZ cumulative length metadata Co-authored-by: lilongwei_hw<lilongwei11@huawei.com> # message auto-generated for no-merge-commit merge: !13684 merge master into master fix(gather_pa_kv_cache): correct PA_NZ cumulative length metadata Created-by: lilongwei_hw Commit-by: lilongwei_hw Merged-by: cann-robot Description: ## 描述 修复 GatherPaKvCache 在 PA_NZ 模式且 isSeqLensCumsum=true 时,累计长度元数据读取错误导致的输出错位、漏写及同步异常。 元数据搬入后再读取累计起点;每个窗口搬入 N+1 个累计端点,并为末端点和 blockTables 保留互不重叠的 UB 空间。使用 DataCopyPad 按有效字节搬运元数据,配套将元数据 buffer 调整为 VECIN。 本 PR 仅修改 attention/gather_pa_kv_cache/op_kernel/gather_pa_kv_cache_nz.h。 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5751 ## 测试 该修复实现此前已完成的本地验证: - INT8 kernel 数值回归 13/13 通过。 - Ascend 910B3 FP16 上板回归 17/17 组通过,覆盖累计/普通长度、零长度、跨窗口和输出边界。 - ascend910b、ascend910_93 自定义包编译通过;910_93 未实机运行。 回归用例及日志保留在本地验证目录,未纳入本 PR。最终单文件补丁核验及适用 pre-commit 检查通过。 ## 文档更新 无。 ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13684 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Co-authored-by: zzzzzzyf_<zhouyunfei10@huawei.com> # message auto-generated for no-merge-commit merge: !13784 merge fix/documentation-issues-round2-20261013 into master docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Created-by: zzzzzzyf_ Commit-by: zzzzzzyf_ Merged-by: cann-robot Description: ## 描述 修正文档中的重复词句、错别字、重复参数约束和无法跳转的链接。包含 QuantCompressor、QuantReduceScatter、MoeDistributeCombineV2/V3,以及 #6081 清单涉及的算子文档。 - #6034:为 TyphoonMLA 论文链接补充 https,修正 aclnnMoeFinalizeRoutingV3 的源码目录链接。 - #6039:修正空指针措辞,删除重复的 constExpertNum 条件和 shared_expert_num 参数。 - #6049:修正必选参数说明及两处条件句。 - #6076:删除重复的“要求”和“长度”。 - #6081:核对清单37项,修复34项;SECURITY.md 按要求保留原文。constrait、constrait_ 是源码实际标识符,保留原拼写以与实现一致。 共39个Markdown文件,新增56行、删除57行。没有修改算子实现或构建逻辑。 ## 关联的Issue 关联 #6034、#6039、#6049、#6076、#6081。 ## 测试 - 对照定向修改清单检查差异、Markdown代码围栏及链接,检查通过。 - 使用 pre-commit-hooks 4.6.0 的 trailing-whitespace(保留Markdown换行)和 end-of-file-fixer 检查全部39个文件,通过。 - git diff --check 通过,按已有CRLF格式检查。 - 文档修改未执行NPU用例。 ## 文档更新 更新算子README、Torch API/ACLNN接口文档、测试说明;修复3个文档原有的空白格式问题。 #6081 附件下载返回401,使用此前用户提供的校对表定位,其37项黑色字体记录与Issue文件清单对应。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13784 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 1 month ago |
| fix: Remove unnecessary workspace for apply_rotary_pos_emb/rotary_position_embedding/kv_compress_epilog Co-authored-by: yifangao<gaoyifan20@huawei.com> # message auto-generated for no-merge-commit merge: !11123 merge workspace-remove into master fix: Remove unnecessary workspace for apply_rotary_pos_emb/rotary_position_embedding/kv_compress_epilog Created-by: yifangao Commit-by: yifangao Merged-by: cann-robot Description: ## 描述 移除 apply_rotary_pos_emb、rotary_position_embedding 和 kv_compress_epilog 中不必要的 workspace 申请,减少额外显存占用,并调整 kv_compress_epilog kernel 入口以支持 workspace 为空的场景。 - apply_rotary_pos_emb:将 arch35 的 AB、ABA/BA 和 BAB tiling 分支的 workspace 设置为 0,移除 AB、ABA/BA 分支对系统库 workspace 大小的查询,以及 BAB 分支固定的 16 MiB 申请。 - rotary_position_embedding:将 RegBase 的 A/B、AB、ABA/BA 和 BAB tiling 分支的 workspace 从 16 MiB 调整为 0。 - kv_compress_epilog:将 arch35 tiling 的默认 workspace 从 32 字节调整为 0;移除 kernel 入口中未使用的 GetUserWorkspace 调用及相关判空返回,使传入 nullptr workspace 时仍能执行计算。 - 同步整理部分代码格式、常量命名及文件末尾换行。 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5937 ## 测试 obp冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20261010_045751679 David冒烟:http://7.215.10.221/scheduler/alljobs?length=100&isalljobs=true&search=20261010_121053480 ## 文档更新 无。 ## 类型标签 - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [x] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [x] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!11123 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 优化LI/QLI/LI v2算子的同步事件 Co-authored-by: shy219<shanhangyang@huawei.com> # message auto-generated for no-merge-commit merge: !13718 merge master into master 优化LI/QLI/LI v2算子的同步事件 Created-by: shy219 Commit-by: shy219 Merged-by: cann-robot Description: ## 描述 优化LI/QLI/LI v2算子的同步事件 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/6029 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13718 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 2/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13595 merge moe into master fix(pre-commit): 全仓代码规范整改——attention 2/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **2/4**(第 2 批 26 个算子目录:fused_floyd_attention ~ mixed_quant_sparse_flash_mla,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:735 个文件,+27423/-26835 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13595 | 1 month ago |
| fix pse Header Guards Co-authored-by: luoyun<luoyun38@huawei.com> # message auto-generated for no-merge-commit merge: !13543 merge fix_pse into master fix pse Header Guards Created-by: luoyun-6 Commit-by: luoyun Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [x] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13543 | 1 month ago |
| mqfa metadata fix Co-authored-by: luoyun<luoyun38@huawei.com> # message auto-generated for no-merge-commit merge: !13488 merge only_to_blue into master mqfa metadata fix Created-by: luoyun-6 Commit-by: luoyun Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 修复mqfa metadata的变量使用kernelSplitMode ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13488 | 1 month ago |
| smla 开源 Co-authored-by: wangyuanhe1<wangyuanhe1@huawei.com> # message auto-generated for no-merge-commit merge: !13568 merge smla into master smla 开源 Created-by: wangyuanhe1 Commit-by: wangyuanhe1 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> SMLA算子 A6回合主线 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#5906](https://gitcode.com/cann/ops-transformer/issues/5906) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13568 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改moe/gmm/mhc/posembedding的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13838 merge master into master 修改moe/gmm/mhc/posembedding的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是docs / zh、examples 、experimental、gmm、mc2、mhc、moe、posembedding文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13838 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 3/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13596 merge common into master fix(pre-commit): 全仓代码规范整改——attention 3/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **3/4**(第 3 批 26 个算子目录:mixed_quant_sparse_flash_mla_metadata ~ quant_lightning_indexer_v2_metadata,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:513 个文件,+16217/-14903 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13596 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| [QFA][MXFP8]: Isolate vtail state from normal paths Co-authored-by: yang-zhipeng19<yangzhipeng19@huawei.com> # message auto-generated for no-merge-commit merge: !13456 merge perf/qfa-vtail-normal-path-perf into master [QFA][MXFP8]: Isolate vtail state from normal paths Created-by: yang-zhipeng19 Commit-by: yang-zhipeng19 Merged-by: cann-robot Description: ## 描述 普通 MXFP8 非 VTAIL 路径此前仍承担 VTAIL 扩展状态和尾任务判断的开销。本次将 tail 专用状态放入 HAS_V_TAIL 模板特化,并用编译期分支隔离 VTAIL 逻辑,让普通路径继续使用原有状态类型。 ## 关联的 Issue 关联Issue [#6138](https://gitcode.com/cann/ops-transformer/issues/6138) ## 文档更新 无 ## 类型标签 - [x] ⚡ 性能优化 See merge request: cann/ops-transformer!13456 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| [QFA][HIF4]代码回蓝 Co-authored-by: wangyijing<wangyijing12@huawei.com> Co-authored-by: eddie-han-dong<donghan12@huawei.com> Co-authored-by: gcw_y7jrbx71<liao28@huawei.com> # message auto-generated for no-merge-commit merge: !13144 merge huilan930 into master [QFA][HIF4]代码回蓝 Created-by: eddie-han-dong Commit-by: wangyijing;gcw_y7jrbx71;eddie-han-dong Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> A4C4_QKV_HiF4_P_FP8_E4M3_PER_TENSOR_SOFTMAX_FP16模板回主线 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> 关联Issue https://gitcode.com/cann/ops-transformer/issues/5918 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> * CI流水线通过 * NPU冒烟验证通过 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13144 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(quant_flash_mla_with_kvcache_metadata): 修复 aicpu 编译错误 Co-authored-by: cardiac_index<wangjianhao12@huawei.com> # message auto-generated for no-merge-commit merge: !13459 merge fix-metadata-outputlayout-compile into master fix(quant_flash_mla_with_kvcache_metadata): 修复 aicpu 编译错误 Created-by: fanzijian Commit-by: cardiac_index Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 更改outputlayout参数名称,修复 aicpu 编译错误 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> #5841 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13459 | 1 month ago |
| docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Co-authored-by: zzzzzzyf_<zhouyunfei10@huawei.com> # message auto-generated for no-merge-commit merge: !13784 merge fix/documentation-issues-round2-20261013 into master docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Created-by: zzzzzzyf_ Commit-by: zzzzzzyf_ Merged-by: cann-robot Description: ## 描述 修正文档中的重复词句、错别字、重复参数约束和无法跳转的链接。包含 QuantCompressor、QuantReduceScatter、MoeDistributeCombineV2/V3,以及 #6081 清单涉及的算子文档。 - #6034:为 TyphoonMLA 论文链接补充 https,修正 aclnnMoeFinalizeRoutingV3 的源码目录链接。 - #6039:修正空指针措辞,删除重复的 constExpertNum 条件和 shared_expert_num 参数。 - #6049:修正必选参数说明及两处条件句。 - #6076:删除重复的“要求”和“长度”。 - #6081:核对清单37项,修复34项;SECURITY.md 按要求保留原文。constrait、constrait_ 是源码实际标识符,保留原拼写以与实现一致。 共39个Markdown文件,新增56行、删除57行。没有修改算子实现或构建逻辑。 ## 关联的Issue 关联 #6034、#6039、#6049、#6076、#6081。 ## 测试 - 对照定向修改清单检查差异、Markdown代码围栏及链接,检查通过。 - 使用 pre-commit-hooks 4.6.0 的 trailing-whitespace(保留Markdown换行)和 end-of-file-fixer 检查全部39个文件,通过。 - git diff --check 通过,按已有CRLF格式检查。 - 文档修改未执行NPU用例。 ## 文档更新 更新算子README、Torch API/ACLNN接口文档、测试说明;修复3个文档原有的空白格式问题。 #6081 附件下载返回401,使用此前用户提供的校对表定位,其37项黑色字体记录与Issue文件清单对应。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13784 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——attention 3/4 Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13596 merge common into master fix(pre-commit): 全仓代码规范整改——attention 3/4 Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列——attention 拆分 **3/4**(第 3 批 26 个算子目录:mixed_quant_sparse_flash_mla_metadata ~ quant_lightning_indexer_v2_metadata,按目录字母序均分)。基于仓库 pre-commit 门禁对存量代码做一次性规范收敛: - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等) - 行尾空白、文件末尾换行修复 - 规模:513 个文件,+16217/-14903 行,纯格式化改动语义等价,无逻辑变更 - op_graph/*_proto.h、op_host/*_def.cpp、op_api/aclnn*.h 等接口文件及 OWNERS 不在本 PR 改动范围 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过 - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13596 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| smla 开源 Co-authored-by: wangyuanhe1<wangyuanhe1@huawei.com> # message auto-generated for no-merge-commit merge: !13568 merge smla into master smla 开源 Created-by: wangyuanhe1 Commit-by: wangyuanhe1 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> SMLA算子 A6回合主线 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#5906](https://gitcode.com/cann/ops-transformer/issues/5906) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13568 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Co-authored-by: zzzzzzyf_<zhouyunfei10@huawei.com> # message auto-generated for no-merge-commit merge: !13784 merge fix/documentation-issues-round2-20261013 into master docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Created-by: zzzzzzyf_ Commit-by: zzzzzzyf_ Merged-by: cann-robot Description: ## 描述 修正文档中的重复词句、错别字、重复参数约束和无法跳转的链接。包含 QuantCompressor、QuantReduceScatter、MoeDistributeCombineV2/V3,以及 #6081 清单涉及的算子文档。 - #6034:为 TyphoonMLA 论文链接补充 https,修正 aclnnMoeFinalizeRoutingV3 的源码目录链接。 - #6039:修正空指针措辞,删除重复的 constExpertNum 条件和 shared_expert_num 参数。 - #6049:修正必选参数说明及两处条件句。 - #6076:删除重复的“要求”和“长度”。 - #6081:核对清单37项,修复34项;SECURITY.md 按要求保留原文。constrait、constrait_ 是源码实际标识符,保留原拼写以与实现一致。 共39个Markdown文件,新增56行、删除57行。没有修改算子实现或构建逻辑。 ## 关联的Issue 关联 #6034、#6039、#6049、#6076、#6081。 ## 测试 - 对照定向修改清单检查差异、Markdown代码围栏及链接,检查通过。 - 使用 pre-commit-hooks 4.6.0 的 trailing-whitespace(保留Markdown换行)和 end-of-file-fixer 检查全部39个文件,通过。 - git diff --check 通过,按已有CRLF格式检查。 - 文档修改未执行NPU用例。 ## 文档更新 更新算子README、Torch API/ACLNN接口文档、测试说明;修复3个文档原有的空白格式问题。 #6081 附件下载返回401,使用此前用户提供的校对表定位,其37项黑色字体记录与Issue文件清单对应。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13784 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| feat: routing-map 系列及 RingAttentionUpdate 算子适配 ascend960dt Co-authored-by: xftxyz<pangxiaoyu@h-partners.com> # message auto-generated for no-merge-commit merge: !13662 merge feat/ascend960dt-routing-map-ring into master feat: routing-map 系列及 RingAttentionUpdate 算子适配 ascend960dt Created-by: xftxyz Commit-by: xftxyz Merged-by: cann-robot Description: ## 描述 为四个 routing-map 算子和 RingAttentionUpdate 新增 ascend960dt 支持。 - 目标算子:moe_token_permute_with_routing_map、moe_token_permute_with_routing_map_grad、moe_token_unpermute_with_routing_map、moe_token_unpermute_with_routing_map_grad、ring_attention_update。 - 复用现有 950 配置与计算实现,新增 960DT 注册、CMake elseif 编译分支和 RingAttentionUpdate 二进制配置。 - 公共 Host tiling / ACLNN regbase helper 加入 DAV_9201;保留特定 3510/9201 分发及 Kernel 编译期判断。 - 补齐开放项目调用链依赖 MoeMaskedScatter、MoeInplaceIndexAdd、MoeInplaceIndexAddWithSorted 的注册、分发和构建选项。 ## 关联的Issue 关联 #5990 ## 测试 本地未编译及真机验证(环境无 CANN 依赖)。 ## 文档更新 无。 ## 类型标签 - [x] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [x] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13662 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| smla 开源 Co-authored-by: wangyuanhe1<wangyuanhe1@huawei.com> # message auto-generated for no-merge-commit merge: !13568 merge smla into master smla 开源 Created-by: wangyuanhe1 Commit-by: wangyuanhe1 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> SMLA算子 A6回合主线 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#5906](https://gitcode.com/cann/ops-transformer/issues/5906) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13568 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| feature:add smlag and sliklg to support Ascend960 Co-authored-by: zuoyw<wangxu350@huawei.com> # message auto-generated for no-merge-commit merge: !13660 merge master into master feature:add smlag and sliklg to support Ascend960 Created-by: zuoyw Commit-by: zuoyw Merged-by: cann-robot Description: ## 描述 增加SparseFlashMLAGrad 和 SparseLightningIndexerKLLossGrad支持Ascend960 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/6096 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13660 | 1 month ago |
| smla 开源 Co-authored-by: wangyuanhe1<wangyuanhe1@huawei.com> # message auto-generated for no-merge-commit merge: !13568 merge smla into master smla 开源 Created-by: wangyuanhe1 Commit-by: wangyuanhe1 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> SMLA算子 A6回合主线 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> [#5906](https://gitcode.com/cann/ops-transformer/issues/5906) ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13568 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Co-authored-by: zzzzzzyf_<zhouyunfei10@huawei.com> # message auto-generated for no-merge-commit merge: !13784 merge fix/documentation-issues-round2-20261013 into master docs(quant_compressor, moe_distribute_combine): 修正文档措辞、约束和链接 Created-by: zzzzzzyf_ Commit-by: zzzzzzyf_ Merged-by: cann-robot Description: ## 描述 修正文档中的重复词句、错别字、重复参数约束和无法跳转的链接。包含 QuantCompressor、QuantReduceScatter、MoeDistributeCombineV2/V3,以及 #6081 清单涉及的算子文档。 - #6034:为 TyphoonMLA 论文链接补充 https,修正 aclnnMoeFinalizeRoutingV3 的源码目录链接。 - #6039:修正空指针措辞,删除重复的 constExpertNum 条件和 shared_expert_num 参数。 - #6049:修正必选参数说明及两处条件句。 - #6076:删除重复的“要求”和“长度”。 - #6081:核对清单37项,修复34项;SECURITY.md 按要求保留原文。constrait、constrait_ 是源码实际标识符,保留原拼写以与实现一致。 共39个Markdown文件,新增56行、删除57行。没有修改算子实现或构建逻辑。 ## 关联的Issue 关联 #6034、#6039、#6049、#6076、#6081。 ## 测试 - 对照定向修改清单检查差异、Markdown代码围栏及链接,检查通过。 - 使用 pre-commit-hooks 4.6.0 的 trailing-whitespace(保留Markdown换行)和 end-of-file-fixer 检查全部39个文件,通过。 - git diff --check 通过,按已有CRLF格式检查。 - 文档修改未执行NPU用例。 ## 文档更新 更新算子README、Torch API/ACLNN接口文档、测试说明;修复3个文档原有的空白格式问题。 #6081 附件下载返回401,使用此前用户提供的校对表定位,其37项黑色字体记录与Issue文件清单对应。 ## 类型标签 - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13784 | 1 month ago |
| fix(slig): rename arch92 headers so basenames stay unique Co-authored-by: ThunLoilu<202313410048@nuist.edu.cn> # message auto-generated for no-merge-commit merge: !13780 merge fix/slig-arch92-unique-headers into master fix(slig): rename arch92 headers so basenames stay unique Created-by: ThunLoilu Commit-by: ThunLoilu Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 重命名重名文件 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13780 | 1 month ago |
| 修改master分支的aidd问题 Co-authored-by: caiwenwen<caiwenwen6@h-partners.com> # message auto-generated for no-merge-commit merge: !13821 merge master into master 修改master分支的aidd问题 Created-by: caiwenwen Commit-by: caiwenwen Merged-by: cann-robot Description: ## 描述 aidd扫描问题修改master分支 ## 关联的Issue 关联issue [#3309](https://gitcode.com/cann/ops-math/issues/3309) ## 测试 md文档更新不涉及测试 ## 文档更新 主要是attention文件 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13821 | 1 month ago |
| feature:add smlag and sliklg to support Ascend960 Co-authored-by: zuoyw<wangxu350@huawei.com> # message auto-generated for no-merge-commit merge: !13660 merge master into master feature:add smlag and sliklg to support Ascend960 Created-by: zuoyw Commit-by: zuoyw Merged-by: cann-robot Description: ## 描述 增加SparseFlashMLAGrad 和 SparseLightningIndexerKLLossGrad支持Ascend960 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/6096 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13660 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Co-authored-by: gitcode_lijd<lijiandong20@huawei.com> # message auto-generated for no-merge-commit merge: !13594 merge ci into master fix(pre-commit): 全仓代码规范整改——接口文件(proto/def/aclnn*.h) Created-by: gitcode_lijd Commit-by: gitcode_lijd Merged-by: cann-robot Description: 关联Issue https://gitcode.com/cann/ops-transformer/issues/5939 ## 描述 全仓代码规范整改系列(本 PR 含两笔独立提交,合计 145 个文件,+1405/-1730;均为头注释/格式类改动,语义等价,无 API 签名、宏、注册结构的实质修改。合入时建议 squash 为单笔): ### 1. 版权头存量修复(ee3ad6013,22 个文件,+4/-100) - 修复重复版权头:moe/moe_init_routing_v4 下 5 个 CMakeLists.txt(历史插入式修复导致单文件两段版权块,第二块残留 in in compliance 旧句式)、moe/moe_token_unpermute_with_ep_grad/tests/ut/op_kernel/CMakeLists.txt(注释正文后悬挂第二个版权块) - 修复双头堆叠:attention/block_sparse_attention/op_kernel/attn_infra/epilogue/block/mxfp4_vf 15 个 vf_*.h(删除独立旧式 "All rights reserved" 头块,保留 CANN 标准头) - 修复旧式许可证头:examples/attention/flash_attn/L0_minimal/ascend_ops/__init__.py("This file is a part of the CANN Open Software" 旧句式,替换为与同目录 ops.py 逐字节一致的标准头) - 全部为头注释删除/替换,OAT 本地验证 22/22 Passed ### 2. 接口文件 clang-format 整改(e1d1fe5b9,123 个文件,+1401/-1630) - 范围(四类接口文件):op_graph/*_proto.h(11)、op_host/*_def.cpp(19)、op_api/aclnn*.{h,cpp}(92)、CMakeLists.txt(1),即 103 .h + 19 .cpp + 1 CMakeLists.txt - clang-format 按 .clang-format 统一格式(列宽 120、指针左对齐 T* p、引用对齐 T& r 等);行尾空白、文件末尾换行、namespace 尾注释空格统一 - 等价性校验:106 个文件去除空白后与基线逐字节全等;17 个文件含超长 #warning / __attribute__((deprecated(...))) 字符串,按列宽拆分为相邻字符串字面量拼接(编译期等价)及长声明换行,语义无变化 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/5939(全仓整改总跟踪) ## 测试 - pre-commit 全部钩子本地通过(OAT 22/22 Passed) - 接口文件改动经去空白等价性校验(106 全等 + 17 字符串拼接等价) - CI 流水线(compile/UT)验证 See merge request: cann/ops-transformer!13594 | 1 month ago |
| mqfa to blue Co-authored-by: luoyun<luoyun38@huawei.com> # message auto-generated for no-merge-commit merge: !13088 merge only_to_blue into master mqfa to blue Created-by: luoyun-6 Commit-by: luoyun Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> https://gitcode.com/cann/ops-transformer/issues/5826 ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13088 | 1 month ago |