| Files | Last commit | Last update |
|---|---|---|
修正 SparseFlashAttention 的 value 空指针说明 Co-authored-by: TiMo<zengzhennan2@huawei.com> # message auto-generated for no-merge-commit merge: !14796 merge codex/fix-issue-6637 into master 修正 SparseFlashAttention 的 value 空指针说明 Created-by: gcw_oeok7yxb Commit-by: TiMo Merged-by: cann-robot Description: ## 描述 补充 aclnnSparseFlashAttention 的 value 参数说明:value 传入空指针时,使用 key 作为 value;不支持空 tensor。同时补充 161001 错误码说明中的对应例外。 ## 关联 Issue https://gitcode.com/cann/ops-transformer/issues/6637 ## 测试 - 对照 ACLNN 实现及此前需求,核对文档描述。 - git diff --check 通过。 - 仅修改文档,未编译或运行算子测试。 ## 文档更新 <!--如果这个PR包含文档的更新,请在这里指出。例如:更新了README.md文件。--> ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!14796 | 14 days ago | |
sfa算子value可选增加ut Co-authored-by: zhaochenying<zhaochenying@huawei.com> # message auto-generated for no-merge-commit merge: !15201 merge sfa-value-ut-pr into master sfa算子value可选增加ut Created-by: qq_52611192 Commit-by: zhaochenying Merged-by: cann-robot Description: ## 描述 sfa算子value可选需求,补充ut ## 测试 ttk测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!15201 | 9 days ago | |
sfa算子value可选增加ut Co-authored-by: zhaochenying<zhaochenying@huawei.com> # message auto-generated for no-merge-commit merge: !15201 merge sfa-value-ut-pr into master sfa算子value可选增加ut Created-by: qq_52611192 Commit-by: zhaochenying Merged-by: cann-robot Description: ## 描述 sfa算子value可选需求,补充ut ## 测试 ttk测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!15201 | 9 days ago | |
sfa算子value可选增加ut Co-authored-by: zhaochenying<zhaochenying@huawei.com> # message auto-generated for no-merge-commit merge: !15201 merge sfa-value-ut-pr into master sfa算子value可选增加ut Created-by: qq_52611192 Commit-by: zhaochenying Merged-by: cann-robot Description: ## 描述 sfa算子value可选需求,补充ut ## 测试 ttk测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!15201 | 9 days ago | |
docs(attention): 增加Attention算子Ascend IR图模式资料与GEIR调用示例 Co-authored-by: huang-chuhong<huangchuhong1@h-partners.com> # message auto-generated for no-merge-commit merge: !13207 merge docs/attention-ascendir-geir into master docs(attention): 增加Attention算子Ascend IR图模式资料与GEIR调用示例 Created-by: huang-chuhong Commit-by: huang-chuhong Merged-by: cann-robot Description: ## 描述 为 4 个 Attention 算子(flash_attention_score、flash_attention_score_grad、fused_infer_attention_score、sparse_flash_attention)补充 Ascend IR(GEIR)图模式资料与 GE 构图调用示例。 ### 改动原因 4 个算子此前仅有 aclnn 调用方式的文档与示例,缺少 Ascend IR(图模式)资料:sparse_flash_attention 无 op_graph IR 定义头文件,所有算子均无 GE 构图调用示例,README 缺图模式调用入口,无法指导用户通过 Ascend IR 构图方式调用算子。 ### 改动方法 1. **新增 op_graph IR 定义头文件** : - sparse_flash_attention/op_graph/sparse_flash_attention_proto.h(与 CANN 包 fusion_ops.h 及仓库 op def 一致) 2. **新增 GE 图模式调用示例 ×4**(GE 构图 + Session::RunGraph + CPU 参考实现数值校验): - test_geir_flash_attention_score.cpp(SBH fp32) - test_geir_flash_attention_score_grad.cpp(SBH fp16,含正向中间量构造与反向 golden) - test_geir_fused_infer_attention_score.cpp(BNSD fp16,key/value 动态输入用 create_dynamic_input_byindex_* 按 IR 定义位置注册) - test_geir_sparse_flash_attention.cpp(MLA-absorb TND fp16) 3. **Ascendir 文档 ×4**:sparse IR 定义改引 op_graph proto.h 并同步 REG_OP;4 份调用示例补充完整 GEIR 代码;FIA 文档注明动态输入需按 IR 定义位置注册(create_dynamic_input_byindex_*);修正跨文档相对链接。 4. **README ×4**:补充图模式(Ascend IR)调用入口。 ## 关联的Issue #5735 ## 测试 - Ascend950PR 实测:bash build.sh --pkg --soc=ascend950 --ops=flash_attention_score,flash_attention_score_grad,fused_infer_attention_score,sparse_flash_attention -j24 编译安装后,4 个示例 bash build.sh --run_example <op> graph 编译+运行+数值校验全部 PASS(FA 误差 1e-8 级、FAG 2e-6 级、FIA 2.9e-4、SFA 在 fp16 归约噪声内且 softmax 统计量与 CPU 参考吻合至 1e-4) - 文档相对链接全量校验有效;代码行宽均 ≤120 字符 - 不涉及算子功能逻辑变更 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug 修复 - [ ] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [x] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!13207 | 1 month ago | |
docs: add English translations for markdown files Co-authored-by: jenny_xiang<jenny.xiang@huawei.com> # message auto-generated for no-merge-commit merge: !15372 merge docs/add-english-translations into master docs: add English translations for markdown files Created-by: jenny_xiang Commit-by: jenny_xiang Merged-by: cann-robot Description: ## 描述 新增仓库Markdown文档英文译稿(第二批,共275个文件),为第一批(已合入)之外的其余全部译稿: - 新增263个英文译稿文件(含上游新增算子 attention/flash_kda_grad 的README与测试说明2篇,及14篇基于最新源文档的增量更新) - 重命名12个中文设计文档为英文名(Xxx算子设计介绍.md → Xxx_design.md,与第一批FFN_design.md策略一致) - 更新7个README中的设计文档引用链接 - 更新.pre-commit-config.yaml中codespell忽略词表 本批内全部仓内链接均指向master已有文件(含第一批已合入的42篇译稿),合入后本仓英文文档全部就位、链接完整生效。 ## 关联的Issue 无 ## 测试 文档类变更,无需算子测试;已通过链接有效性校验、残留中文/全角标点扫描、EOF换行规范检查,并完成逐篇翻译规范自查与独立语义审查(含支持状态表、限定词、术语、数值符号核对)。 ## 文档更新 新增263个英文译稿文件、重命名12个中文设计文档、更新8个现有文件,不修改算子源码。 ## 类型标签 - [ ] Bug修复 - [ ] 新特性 - [ ] 性能优化 - [x] 文档更新 - [ ] 其他,请描述: See merge request: cann/ops-transformer!15372 | 7 days ago | |
sfa算子value可选增加ut Co-authored-by: zhaochenying<zhaochenying@huawei.com> # message auto-generated for no-merge-commit merge: !15201 merge sfa-value-ut-pr into master sfa算子value可选增加ut Created-by: qq_52611192 Commit-by: zhaochenying Merged-by: cann-robot Description: ## 描述 sfa算子value可选需求,补充ut ## 测试 ttk测试 ## 文档更新 ## 类型标签 <!-- [x] 表示选中 --> - [ ] 🐛 Bug修复 - [x] ✨ 新特性 - [ ] ⚡ 性能优化 - [ ] ♻️ 重构 - [ ] 🧪 测试 - [ ] 📦 构建/CI - [ ] 🔧 配置变更 - [ ] 📝 文档更新 - [ ] ⬆️ 依赖升级 - [ ] 🔒 安全修复 - [ ] 🧹 代码清理 - [ ] ❓ 其他,请描述: See merge request: cann/ops-transformer!15201 | 9 days ago |
| Files | Last commit | Last update |
|---|---|---|
| 14 days ago | ||
| 9 days ago | ||
| 9 days ago | ||
| 9 days ago | ||
| 1 month ago | ||
| 7 days ago | ||
| 9 days ago |