| Files | Last commit | Last update |
|---|---|---|
docs: correct the incompatible-axis broadcasting rule Co-authored-by: gxhgxh2475698<18003961989@163.com> # message auto-generated for no-merge-commit merge: !14269 merge fix/round3-broadcast-rule-6420 into master docs: correct the incompatible-axis broadcasting rule Created-by: gxhgxh2475698 Commit-by: gxhgxh2475698 Merged-by: cann-robot Description: ## Motivation The broadcasting guide rejects different-rank inputs without an existing singleton axis, although (2, 3) and (3,) broadcast successfully and the same page contains another valid different-rank example. Fixes #6420. ## Changes - Evaluate incompatible axes after padding missing leading dimensions with ones. - Preserve the existing valid examples and distinguish rank alignment from axis compatibility. - Verified (2, 3) plus (3,) with NumPy; no CANN/NPU execution was performed. See merge request: cann/ops-transformer!14269 | 3 days ago | |
修复 ops-transformer QUICKSTART.md 文档扫描问题(10处) Co-authored-by: liujing987913<liujing407@h-partners.com> # message auto-generated for no-merge-commit merge: !15839 merge docs/quickstart-fix into master 修复 ops-transformer QUICKSTART.md 文档扫描问题(10处) Created-by: liujing987913 Commit-by: liujing987913 Merged-by: cann-robot Description: ## 描述 - 背景:AIDD/文档质量扫描发现 ops-transformer 仓 docs/QUICKSTART.md 文档问题 10 处 - 修改分类:代码块语言标签 2(bash→output 回显块)、行内代码标记 1、参数名/括号 1、路径 1、标点 2、术语大小写 3(Kernel/Tensor/Host+Vector) - 涉及文件:docs/QUICKSTART.md(1 个文件,10 处) - 验证:git diff 确认为纯文本修改,无代码内容误改;已人工核对 ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/7473 ## 测试 ## 文档更新 本次 PR 更新 ops-transformer docs/QUICKSTART.md,修正代码块语言标签/标点/术语/行内代码/路径类问题 10 处,详见 diff。 ## 类型标签 - 文档更新 See merge request: cann/ops-transformer!15839 | 16 days ago | |
docs: correct the Regbase example counter declaration Co-authored-by: aodebiao<18003961989@163.com> # message auto-generated for no-merge-commit merge: !16071 merge docs/regbase-counter-20261116 into master docs: correct the Regbase example counter declaration Created-by: gxhgxh2475698 Commit-by: aodebiao Merged-by: cann-robot Description: ## Description The dynamic-mask GatherProcess example declares its remaining element count using the unknown type unit32_t and undeclared identifier repeatimes. Correct them to uint32_t and the existing repeatTimes parameter; update the adjacent comment. ## Related Issues Fixes #7708 ## Tests - Host C++ object compilation: the original declaration fails on both identifiers; correcting only the type still fails; the fixed declaration compiles. - Compile-time count checks: 0 × 128, 3 × 128, and 65535 × 65535. - Native pre-commit checks for the modified Markdown file and git diff --check pass. Markdown structure and links remain unchanged. ## Documentation Updates docs/zh/develop/cross_platform_migration_guide.md: two lines in the Regbase dynamic-mask example. ## Type Labels - [x] 📝 Documentation update See merge request: cann/ops-transformer!16071 | 4 days ago | |
feat(examples):Update the MTE-based A5 version of all_gather_add. Co-authored-by: l30088483<lixujie5@h-partners.com> # message auto-generated for no-merge-commit merge: !16630 merge dev into master feat(examples):Update the MTE-based A5 version of all_gather_add. Created-by: lxj33 Commit-by: l30088483 Merged-by: cann-robot Description: ## 描述 基于已有A2/A3代际的AllGatherAdd算子样例,将其拓展到950代际,并实现MTE驱动通信的AllGatherAdd算子 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 在A2-910B1-cann9.3.0、A5-950DT-cann9.3.0、A3-910_93-cann9.3.0 三台服务器上实现all_gather_add算子的运行且实现和标杆的精度对齐 新增测试用例: 1、超时用例 2、通信域内连续调用的错峰用例 3、大型shape,UB容量边界用例 4、非法shape的回归用例 ## 文档更新 更新了figures下的aclnnAllGatherAdd.md,对all_gather_add对A5的支持改为肯定 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!16630 | 3 days ago | |
fix: 修复基础依赖安装及 Python 测试依赖冲突 Co-authored-by: zzzzzzyf_<zhouyunfei10@huawei.com> # message auto-generated for no-merge-commit merge: !15845 merge fix/install-deps-20261112 into master fix: 修复基础依赖安装及 Python 测试依赖冲突 Created-by: zzzzzzyf_ Commit-by: zzzzzzyf_ Merged-by: cann-robot Description: ## 描述 按安装文档准备环境时,缺少 pkg-config 会导致 googletest 检查失败;分步安装 Python 依赖时,未约束的 ml-dtypes 版本可能与 numpy<2.0 冲突。 - 安装脚本使用 pkg-config 检测 googletest;缺失时允许跳过 googletest,选择安装时自动安装该工具,Debian 安装前刷新软件源索引。基础依赖列表补充该工具。 - 已有 NumPy 时,脚本提示用户在仓库根目录的虚拟环境中执行 pip3 install -r requirements.txt;该提示不会自动修复已有版本。 - 安装脚本及根目录、测试依赖清单统一约束 NumPy 和 ml-dtypes,避免依次安装依赖时选中与 numpy<2.0 冲突的 ml-dtypes 版本。 ## 关联的Issue - 关联 Issue #7480(基础依赖安装及 Python 版本约束) - 参考已关闭的 #6160(NumPy 依赖约束) ## 测试 - git diff --check 通过。 - bash -n install_deps.sh 通过。 - 使用模拟包管理器测试 Debian、RHEL、openEuler 和 macOS:缺失 pkg-config 时跳过或选择安装 googletest、已安装时跳过重复安装,以及安装后仍不可用的失败分支。 - 在 AArch64 服务器使用模拟包管理器验证上述跳过、安装、重复及失败路径,以及已安装 NumPy 时的手动安装提示。 - 在服务器 Python 3.11 AArch64 隔离环境按顺序实际安装两份依赖清单,得到 TensorFlow 2.20.0、NumPy 1.26.4 和 ml-dtypes 0.5.4,pip check 通过。 - 在 Ubuntu AArch64 服务器上以用户/挂载命名空间和 fakeroot 构建 Debian 13.7 隔离环境,使用先前提交 ffe641713 的脚本三次执行完整入口均返回 0,验证真实安装 pkg-config、安装 googletest 和重复执行。隔离环境使用 Python 3.13.5、GCC 14.2.0;未在 RPM/macOS 或原始 Ascend 910C/A3 环境验证。 - 对当前提交 1278dfe320,在用户/挂载命名空间和 fakeroot 构建的 Debian 13.7 AArch64 隔离环境中三次执行完整脚本均返回 0:缺少 pkg-config 时选择跳过不调用 apt;选择安装时真实执行 apt update、安装 pkg-config 和 googletest 并编译;再次运行不重复安装。隔离环境为 Python 3.13.5、GCC 14.2.0,未使用 NPU;与原始反馈环境不同。 - 隔离环境预装 NumPy 2.2.4 时,脚本因 NumPy 可导入而跳过 Python 依赖安装,没有将其降至 2.0 以下;此存量环境路径仍不满足新增约束。 ## 文档更新 更新基础依赖列表。 ## 类型标签 - [x] 🐛 Bug修复 - [x] 🔧 配置变更 - [x] 📝 文档更新 See merge request: cann/ops-transformer!15845 | 15 days ago | |
docs: remove dangling output option from MC2 link flags Co-authored-by: aodebiao<18003961989@163.com> # message auto-generated for no-merge-commit merge: !15316 merge docs/fix-mc2-static-link-output-20261104 into master docs: remove dangling output option from MC2 link flags Created-by: gxhgxh2475698 Commit-by: aodebiao Merged-by: cann-robot Description: ## Description Remove the dangling -o from the MC2 static-library flags. The base command already specifies an output filename; appending another bare -o causes a compiler argument error. ## Related Issue Closes #7122 ## Testing - Minimal C++ driver checks: the original appended flags fail; corrected flags pass. - Native pre-commit checks and Markdown rendering pass. ## Documentation Updates Updated docs/zh/invocation/quick_op_invocation.md. ## Type Labels - [x] 📝 Documentation update See merge request: cann/ops-transformer!15316 | 4 days ago | |
fix(mla): 统一 Cache scale 有限值约束并补充调用文档 Co-authored-by: lqs<liqingsong16@huawei.com> # message auto-generated for no-merge-commit merge: !15718 merge codex/mla-pr407-operator-docs into master fix(mla): 统一 Cache scale 有限值约束并补充调用文档 Created-by: liqingsong16 Commit-by: lqs Merged-by: cann-robot Description: ## 描述 统一非量化 mla_prolog_v4 和量化 quant_mla_prolog 的 quant_scale_kv 有限值约束:模式2/3允许负数、零和正数,仍拒绝NaN/Inf。接口、Kernel计算和Native键保持不变。 为两个算子补充中英文 README 和中文 PyTorch API 文档,共6份;目录 mla_prolog_v4 内的公开函数名为 mla_prolog_v2。 文档按实际 Python/Torch 接口说明参数、模式枚举、量化预检、Cache 原地更新及调用方法。入口分别为 cann_ops_transformer.ops.mla_prolog_v2 和 cann_ops_transformer.ops.quant_mla_prolog。Eager、图模式(ACLGraph)和图模式(NPUGraph-EX)各自提供包含导入、设备、Shape、输入 Tensor 和调用的最小示例,可分别复制运行,省去随机数据辅助函数及断言;图模式的首次准备调用和量化预检在捕获外完成。函数原型统一按公开接口名、输入参数及返回 Tensor 数量展示,具体参数类型见参数表。异常说明仅列 Python 接口及预检层的常见异常。 参数原型及必选/可选约定对齐 [cannbot-dsl PR436](https://gitcode.com/cann/cannbot-dsl/merge_requests/436) 的 6807d7c803e032bfcecde5bd968ce2f7609d427f,并与[回主线 PR16332](https://gitcode.com/cann/ops-transformer/pull/16332) 的对应接口核对。权重参数明确区分 Python 可见的逻辑 Shape 与 FRACTAL_NZ 存储;公式统一以 ND 权重方向描述。 README 同时提供中英文版本,Torch API 页面保留中文;不新增语言切换链接或英文公共索引入口。独立接口契约页、Native 页和设计页不纳入本 PR。当前未提供 ACLNN 接口,文档保留实际的 PyTorch 调用方式;不列具体包版本、历史验证环境或编包安装命令。 公共目录仅向已有的 4 份中文算子列表、Torch API 列表和菜单追加条目,不新增公共文件。列表简介使用“非量化输入/量化输入”,Ascend 950 确定性列和算子页面注明默认支持确定性计算。代码修改仅涉及两个Host scale校验函数;移除两份pytest入口文件,保留TTK独立assets和Golden,不新增编译键。 ## 关联的 Issue 无。 ## 验证 - 原型中的参数名称、顺序、默认值、关键字参数边界及返回值数量与对应接口源码一致。 - 六份示例分别通过语法和未定义变量检查;各模式的输入准备保持一致,图模式的首次准备调用和预检位于捕获外。 - 在 CPU 上执行示例的 Tensor 构造,使用未修改的实际接入代码核对导入、参数绑定及 Torch Meta 输出;未执行 NPU 或图捕获。 - Markdown、本地链接与锚点、删除页面引用、公式渲染及 git diff --check 通过。两份英文公共索引恢复到基线内容。 - 使用CANN 9.3包内的DSL/opkit 0.8.3,在Ascend 950物理NPU1上完成scale兼容代码的72项小Case精度验证:量化36/36、非量化36/36,覆盖qkv=2/3、PA_BSND/PA_NZ、scale=-1.25/0/1.25及Eager、ACLGraph、NPUGraph-EX;另有14项Host校验通过。检查包含Cache未写位置和第0轴padding保护。 - 上述72项为算子代码验证,文档示例仍仅复用前述CPU/Meta检查结果。 ## 类型标签 - [x] 🐛 问题修复 - [x] 📝 文档更新 See merge request: cann/ops-transformer!15718 | 8 days ago | |
fix(engram_gate): align interface contracts and graph inference Co-authored-by: tianyu52<tianyu52@huawei.com> # message auto-generated for no-merge-commit merge: !17106 merge master into master fix(engram_gate): align interface contracts and graph inference Created-by: tianyu52 Commit-by: tianyu52 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 1.补充torch通路文档 2.优化文档中的口径 3.torch通路实际支持非连续,需要放开校验 4.按照仓内标注调整InferDataType的代码结构 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT/ST torch通路 aclnn通路验证 PASS ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!17106 | 2 days ago | |
fix(engram_gate): align interface contracts and graph inference Co-authored-by: tianyu52<tianyu52@huawei.com> # message auto-generated for no-merge-commit merge: !17106 merge master into master fix(engram_gate): align interface contracts and graph inference Created-by: tianyu52 Commit-by: tianyu52 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 1.补充torch通路文档 2.优化文档中的口径 3.torch通路实际支持非连续,需要放开校验 4.按照仓内标注调整InferDataType的代码结构 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT/ST torch通路 aclnn通路验证 PASS ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!17106 | 2 days ago | |
修复ffn_worker_batching infershape扫描问题 Co-authored-by: cpy_123456<chenpengyi@huawei.com> # message auto-generated for no-merge-commit merge: !16452 merge 1119 into master 修复ffn_worker_batching infershape扫描问题 Created-by: cpy_123456 Commit-by: cpy_123456 Merged-by: cann-robot Description: ## 描述 变更摘要 本 PR 针对 ffn_worker_batching 算子在 arch35 路径上的 InferShape/tiling 扫描问题,放宽了对固定 1024B schedule_context 输入的下界校验:当 dim[0] 为未知维(ge::UNKNOWN_DIM,-1)或未知秩(ge::UNKNOWN_DIM_NUM,-2)时不再参与 CONTEXT_BYTES 的下界比较,从而避免图编译阶段 desc shape 为动态时被误拦;同时补充了对应的动态 shape 单元测试用例。 主要改动 CheckInputParam 动态 shape 放行: 在 FfnWorkerBatchingTilingArch35::CheckInputParam() 中先取出 contextDim = xShape.GetDim(0),并将 OP_CHECK_IF 条件改为仅在 contextDim 既非 ge::UNKNOWN_DIM 也非 ge::UNKNOWN_DIM_NUM 且小于 CONTEXT_BYTES 时才报错返回 ge::GRAPH_FAILED,使 arch35 支持 dynamicRank/dynamicShape 声明的场景不被提前拦截。 InferShape 动态用例补充: 在 test_ffn_worker_batching_infershape.cpp 中新增 ffn_worker_batching_infershape_dyn_dim(输入 shape {-1})与 ffn_worker_batching_infershape_dyn_rank(输入 shape {-2})两个用例,校验返回 ge::GRAPH_SUCCESS 且输出 shape 与静态基线一致(如 y 为 {1152, 4096}、actual_token_num 为 {1})。 tiling 测试辅助函数重构: 将 test_ffn_worker_batching_tiling.cpp 中的 CheckArch35 拆分为接收 gert::StorageShape scShape 入参的 CheckArch35WithInput,原 CheckArch35 作为使用 {{1024}, {1024}} 的包装保留,使既有调用保持不变。 arch35 动态 shape tiling 用例: 新增 ffn_wb_tiling_arch35_dyn_dim_unknown_input 与 ffn_wb_tiling_arch35_dyn_rank_unknown_input 两个用例,以 {{-1}, {-1}}、{{-2}, {-2}} 输入验证 tiling 结果与 norm_key100 静态基线一致, ## 关联的Issue https://gitcode.com/cann/ops-transformer/issues/8424 ## 测试 st ## 文档更新 不涉及 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [x] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!16452 | 4 days ago | |
docs(flash_kda_grad): align bilingual API docs with implementation Co-authored-by: anfan<sunzhiang@huawei.com> # message auto-generated for no-merge-commit merge: !16937 merge master into master docs(flash_kda_grad): align bilingual API docs with implementation Created-by: anfan Commit-by: anfan Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!16937 | 3 days ago | |
fix(engram_gate): align interface contracts and graph inference Co-authored-by: tianyu52<tianyu52@huawei.com> # message auto-generated for no-merge-commit merge: !17106 merge master into master fix(engram_gate): align interface contracts and graph inference Created-by: tianyu52 Commit-by: tianyu52 Merged-by: cann-robot Description: ## 描述 <!--在这里详细描述你的改动,包括改动的原因和所采取的方法。--> 1.补充torch通路文档 2.优化文档中的口径 3.torch通路实际支持非连续,需要放开校验 4.按照仓内标注调整InferDataType的代码结构 ## 关联的Issue <!-- 如果这个PR是为了解决特定的Issue,请在这里提供Issue链接。例如:关联Issue #000--> <!-- 如果这个PR是为了解决特定的问题单,请在这里描述问题单单号。--> ## 测试 <!--描述进行了哪些测试来验证你的改动。包括但不限于二级冒烟、算子泛化等。--> UT/ST torch通路 aclnn通路验证 PASS ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!17106 | 2 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 3 days ago | ||
| 16 days ago | ||
| 4 days ago | ||
| 3 days ago | ||
| 15 days ago | ||
| 4 days ago | ||
| 8 days ago | ||
| 2 days ago | ||
| 2 days ago | ||
| 4 days ago | ||
| 3 days ago | ||
| 2 days ago |