文件最后提交记录最后更新时间
修复topktoppsample兼容性问题 Co-authored-by: zerosaki_admin<chenzhaominyi1@huawei.com> # message auto-generated for no-merge-commit merge: !4606 merge topktoppfix_26.0.0 into 26.0.0 修复topktoppsample兼容性问题 Created-by: zerosaki_admin Commit-by: zerosaki_admin Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\ > 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容) # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin!46062 个月前
fix: lstm fallback to acl_op for bf16 and mixed floating dtypes Co-authored-by: chenkun<chenkun82@huawei.com> # message auto-generated for no-merge-commit merge: !4588 merge 26.0.0_lstm_aclop into 26.0.0 fix: lstm fallback to acl_op for bf16 and mixed floating dtypes Created-by: kuhn7 Commit-by: chenkun Merged-by: ascend-robot Description: # 【合入来源 - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 This patch adds a conservative fallback path for LSTM: - fallback to acl_op when any input/hx/param tensor is bf16 - fallback to acl_op when floating dtypes are mixed # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 add UTs to verify: - bf16 LSTM execution - mixed-dtype LSTM execution through raw op path # 【CheckList】 - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin!45882 个月前
[bugfix][26.0.0]同步BSA算子适配aclnn参数校验 Co-authored-by: CreatYiao<178363382@qq.com> # message auto-generated for no-merge-commit merge: !4794 merge fix_bsa_docs into 26.0.0 [bugfix][26.0.0]同步BSA算子适配aclnn参数校验 Created-by: Sunshine_Youngster Commit-by: CreatYiao Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [X] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\ > 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容) BSA算子aclnn收紧校验,修改传参确保为nullptr # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” 不涉及 # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 正向用例:test/test_custom_ops/test_npu_block_sparse_attention.py ![BSA正.PNG](https://raw.gitcode.com/user-images/assets/7403085/35318348-32d5-4214-94b4-f02a33f68ffe/BSA正.PNG 'BSA正.PNG') 反向用例:test/test_custom_ops/test_npu_block_sparse_attention_backward.py ![BSA反.PNG](https://raw.gitcode.com/user-images/assets/7403085/b3503268-7634-41fd-8b62-4750b219a267/BSA反.PNG 'BSA反.PNG') 文档用例测试: ![BSA文档测试.PNG](https://raw.gitcode.com/user-images/assets/7403085/6bcf1e48-7320-455d-815a-0311bdd9be8c/BSA文档测试.PNG 'BSA文档测试.PNG') # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin!47941 个月前
fix arange and random warning Co-authored-by: chaijinwei<chaijinwei@huawei.com> # message auto-generated for no-merge-commit merge: !4242 merge ops_error_warning_fix into master fix arange and random warning Created-by: chaijinwei Commit-by: chaijinwei Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 https://gitcode.com/Ascend/pytorch/issues/1547 - [ ] 需求 - [x] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 1. torch.arange报错和warning对齐原生torch 2. tensor.random_报错和warning对齐原生torch # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 完善测试用例场景,都测试通过 ![image.png](https://raw.gitcode.com/user-images/assets/7403085/712a766a-a90a-4667-bcca-c50c08423133/image.png 'image.png') # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin!42423 个月前
!875 op_plugin ut run with torch_npu version. Merge pull request !875 from 李金鑫/ut_master 2 年前
Checkout v2r10 Co-authored-by: dilililiwhy<why.wuhuanyu@huawei.com> # message auto-generated for no-merge-commit merge: merge pr_3154_1757822748315 into master Checkout v2r10 Created-by: dilililiwhy Commit-by: dilililiwhy Merged-by: ascend-robot Description: 1. add v2r10 --- <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31548 个月前
add v2r11 Co-authored-by: dilililiwhy<why.wuhuanyu@huawei.com> # message auto-generated for no-merge-commit merge: !4046 merge add_v2r11 into master Checkout v2r11 Created-by: dilililiwhy Commit-by: dilililiwhy Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: checkout v2r11 for pta upgrade **Special notes for your reviewers**: See merge request: Ascend/op-plugin!40464 个月前
Checkout v2r12 Co-authored-by: chenkun<chenkun82@huawei.com> # message auto-generated for no-merge-commit merge: !4499 merge add_v2r12 into master Checkout v2r12 Created-by: kuhn7 Commit-by: chenkun Merged-by: ascend-robot Description: # 【合入来源】 checkout v2r12 for pta upgrade See merge request: Ascend/op-plugin!44992 个月前
[fix] src_dtype has problem Co-authored-by: chenshuai<chenshuai81@huawei.com> # message auto-generated for no-merge-commit merge: !4405 merge fix_antiquant into master [fix] src_dtype has problem Created-by: culechan Commit-by: chenshuai Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [x] issue/工单 https://gitcode.com/Ascend/pytorch/issues/1522 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 when src_dtype=torch.quint4x2, tensor.to cannot handle this dtype. the process is surplus and cause error # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 ![image.png](https://raw.gitcode.com/user-images/assets/7403085/d2884518-fbda-4b72-89c6-5051507fb8ea/image.png 'image.png') # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin!44052 个月前
group foreach copy Co-authored-by: yuanjun_li<yuanjun.li@huawei.com> # message auto-generated for no-merge-commit merge: !4159 merge master into master group foreach copy Created-by: yuanjun_li Commit-by: yuanjun_li Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: > > /kind bug > /kind task > /kind feature **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!41593 个月前
!2401 foreach_sign and foreach_copy add support type Merge pull request !2401 from liujie_1234/master 1 年前
fix foreach norm out shape bug Co-authored-by: tramp-ll<linglong2@huawei.com> # message auto-generated for no-merge-commit merge: merge master into master fix foreach norm out shape bug Created-by: tramp-ll Commit-by: tramp-ll Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: fix foreach norm out shape bug 修补foreach_norm 的out shape的你npu 与竞品不一致情形:竞品out tensor的shape为0维,而npu的out tensor为1维。 与cann变更无关 **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31818 个月前
fix foreach norm out shape bug Co-authored-by: tramp-ll<linglong2@huawei.com> # message auto-generated for no-merge-commit merge: merge master into master fix foreach norm out shape bug Created-by: tramp-ll Commit-by: tramp-ll Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: fix foreach norm out shape bug 修补foreach_norm 的out shape的你npu 与竞品不一致情形:竞品out tensor的shape为0维,而npu的out tensor为1维。 与cann变更无关 **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31818 个月前
fix foreach norm out shape bug Co-authored-by: tramp-ll<linglong2@huawei.com> # message auto-generated for no-merge-commit merge: merge master into master fix foreach norm out shape bug Created-by: tramp-ll Commit-by: tramp-ll Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: fix foreach norm out shape bug 修补foreach_norm 的out shape的你npu 与竞品不一致情形:竞品out tensor的shape为0维,而npu的out tensor为1维。 与cann变更无关 **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31818 个月前
fix foreach norm out shape bug Co-authored-by: tramp-ll<linglong2@huawei.com> # message auto-generated for no-merge-commit merge: merge master into master fix foreach norm out shape bug Created-by: tramp-ll Commit-by: tramp-ll Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: fix foreach norm out shape bug 修补foreach_norm 的out shape的你npu 与竞品不一致情形:竞品out tensor的shape为0维,而npu的out tensor为1维。 与cann变更无关 **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31818 个月前
fix foreach norm out shape bug Co-authored-by: tramp-ll<linglong2@huawei.com> # message auto-generated for no-merge-commit merge: merge master into master fix foreach norm out shape bug Created-by: tramp-ll Commit-by: tramp-ll Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: fix foreach norm out shape bug 修补foreach_norm 的out shape的你npu 与竞品不一致情形:竞品out tensor的shape为0维,而npu的out tensor为1维。 与cann变更无关 **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31818 个月前
fix foreach norm out shape bug Co-authored-by: tramp-ll<linglong2@huawei.com> # message auto-generated for no-merge-commit merge: merge master into master fix foreach norm out shape bug Created-by: tramp-ll Commit-by: tramp-ll Merged-by: ascend-robot Description: <!-- Thanks for sending a pull request! --> **What type of PR is this?** > Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespaces from that line: fix foreach norm out shape bug 修补foreach_norm 的out shape的你npu 与竞品不一致情形:竞品out tensor的shape为0维,而npu的out tensor为1维。 与cann变更无关 **What does this PR do / why do we need it**: **Special notes for your reviewers**: See merge request: Ascend/op-plugin!31818 个月前
[PLZ] update PTA adaptation for mHC Prefill and Decode mode... Co-authored-by: LAIM321<laiming2@huawei.com> # message auto-generated for no-merge-commit merge: !4497 merge OpPlugin-mHC into master [PLZ] update PTA adaptation for mHC Prefill and Decode mode... Created-by: LAIM321 Commit-by: LAIM321 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [x] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 针对流形约束超连接架构(mHC)模块的需求,新增npu_mhc_pre算子的接口。 # 【资料变更】 不涉及 # 【接口变更】 新增npu_mhc_pre算子的接口 # 【功能验证】 1. 单算子模式功能测试: 采用典型Shape组合覆盖不同计算场景,包括:T=64, n=4, D=2560;T=256, n=8, D=1280;T=1024, n=8, D=2560;T=4096, n=4, D=5120。 同时,通过切换out_flag(0/1)匹配Decode、Prefill的推理场景需求。 测试执行示例:: ============================================== Case 1, Shape: (T=1024, n=8, D=2560), out_flag=0 ============================================== Generating golden output... Generating custom operator output... Comparing outputs... ===== Compare h_in ===== error ratio: 0.0000% tolerance: 0.0078125 ===== Compare h_post ===== error ratio: 0.0000% tolerance: 0.001 ===== Compare h_res ===== error ratio: 0.0000% tolerance: 0.001 Case result: PASS **测试用例均通过验证。** 2. AclGraph模式功能测试: 同单算子模式功能测试,采用典型Shape组合覆盖不同计算场景。提交附件中已给出测试案例通过截图。 3. Aclnn精度测试: 由于不同硬件上算子实现的差异,同样的算子用例在不同的硬件上运行,结果无法做到完全一致。为了确保下游模型训练与推理业务的数值正确性,采用**昇腾算子精度标准2.1**作为精度标准,其提供包含精度分级、测试输入规则、算子执行方案及输出结果比对方法供开发者衡量算子精度。 链接:https://wiki.huawei.com/domains/68949/wiki/232736/WIKI202505306994678?title=4-5-2-%E5%A4%8D%E6%A3%80%E8%AF%B4%E6%98%8E 在测试过程中,通过NPU的小算子拼接、mHC-Pre融合算子、和高精度CPU Golden进行三方对比,测试结果表明,**精度满足 昇腾算子精度标准2.1**。 ![屏幕截图 2026-03-25 165339.png](https://raw.gitcode.com/user-images/assets/7403085/ebd90cd1-d384-4ad1-bb0b-4fe2e8f88e44/屏幕截图_2026-03-25_165339.png '屏幕截图 2026-03-25 165339.png') ![image.png](https://raw.gitcode.com/user-images/assets/7403085/eb4e2a59-0d60-472a-8bcf-33f39914ab0e/image.png 'image.png') # 【CheckList】 - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/op-plugin!44972 个月前
!2141 Add configuration for coverage rate. Merge pull request !2141 from yuhaiyan/master-dev1 1 年前
!2268 [Codecheck] Fix codecheck. Merge pull request !2268 from 刘嘉巍/deformable 1 年前