| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
[fa_v3]skip cpu check, register_sharding for npu_fusion_attention_v3 Co-authored-by: wangchao430<wangchao430@huawei.com> # message auto-generated for no-merge-commit merge: !30860 merge v2.99.0_fav3 into master [fa_v3]skip cpu check, register_sharding for npu_fusion_attention_v3 Created-by: wangchao430 Commit-by: wangchao430 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [x] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 1. torch_npu.npu_fusion_attention_v3适配支持DTensor策略注册。 2. graph_tree中支持根据torch_npu.\_inductor.config.npugraph_trees.disable_cpu_input_check配置开启时跳过cpu Tensor的相关检测,从而支持torch_npu.npu_fusion_attention_v3入graph_tree # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 新增DTensor测试用例 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!30860 | 7 个月前 | |
[cp] refactor context parallel attention to v3 API with autograd-flowed stats Co-authored-by: yule100<chenyukun11@h-partners.com> # message auto-generated for no-merge-commit merge: !45924 merge cp-parallel-refactor-v3 into master [cp] refactor context parallel attention to v3 API with autograd-flowed stats Created-by: yule100 Commit-by: yule100 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 - [x] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 https://gitcode.com/Ascend/pytorch/issues/4703 # 【修改方案】 Refactor NPU CP attention to v3 API with autograd-flowed stats. See commit message for details. # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【功能验证】 功能 pta仓库中已有ut, 核心功能已覆盖 test/distributed/tensor/test_context_parallel_attention.py 验证结果见门禁pass 精度   内存 dp2cp4 npu 34.12GB gpu 34.01GB 符合标准 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!45924 | 1 个月前 | |
Optimize the patch for DTensor Co-authored-by: zhenyu10<shizhenyu5@huawei.com> # message auto-generated for no-merge-commit merge: !34610 merge master into master Optimize the patch for DTensor Created-by: zhenyu10 Commit-by: zhenyu10 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [x] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 社区 issue:https://gitcode.com/Ascend/pytorch/issues/1786 # 【修改方案】 > 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\ > 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容) 1. 删除历史 DTensor 兼容 patch 文件: torch_npu/distributed/tensor/_dtensor_patch.py。 2. 在 torch_npu/distributed/tensor/__init__.py 中移除 _dtensor_patch 导入,统一依赖上游原生 DTensor 能力。 3. 新增单文件回归测试 test/distributed/tensor/test_dtensor_native_kwargs_strategy.py,重点验证: - OpSchema.kwargs_strategy(flat/pytree)解析 - expand_to_full_mesh_op_strategy 在 args + kwargs 场景下的策略展开行为 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” 不涉及。 # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” 不涉及。无新增客户可见接口,无跨仓接口协议变更。 # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 测试场景: 1. 删除 _dtensor_patch 后,DTensor kwargs 策略仍能正常工作; 2. expand_to_full_mesh_op_strategy 在含 kwargs 策略输入时展开正确; 3. 关键路径行为与原功能预期一致。 测试方法: - 用例:test/distributed/tensor/test_dtensor_native_kwargs_strategy.py 覆盖点: - flat kwargs 场景 - pytree kwargs 场景 - 单输出 + args + kwargs 展开 - 多输出索引 + kwargs 展开 UT看护: - 已新增回归用例,覆盖 patch 删除后的核心行为。 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!34610 | 5 个月前 | |
modify test case Co-authored-by: pta-robot<pta_robot@163.com> Co-authored-by: gcw_Dgfy2aKk<dujunjie2@huawei.com> # message auto-generated for no-merge-commit merge: !29184 merge correct_testcase_260107 into master modify test case Created-by: gcw_Dgfy2aKk Commit-by: gcw_Dgfy2aKk;pta-robot 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**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!29184 | 9 个月前 | |
test: verify community 2.11.0 features and fixes Co-authored-by: chenkun<chenkun82@huawei.com> # message auto-generated for no-merge-commit merge: !36312 merge master_verify_distributed into master test: verify community 2.11.0 features and fixes Created-by: kuhn7 Commit-by: chenkun Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [x] 需求 [【分布式】社区2.11.0版本特性和修复验证](https://gitcode.com/Ascend/pytorch/issues/2025) - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 PyTorch 社区新增特性和bugfix,需要基于torch_npu进行验证,运行torch_npu或社区用例,保障功能正常运行。 # 【资料变更】 不涉及 # 【接口变更】 不涉及 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [x] 代码注释完备,正确记录错误日志 - [x] 代码实现进行了返回值、空指针等校验 - [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [x] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!36312 | 4 个月前 | |
fix DTensor UT Co-authored-by: jizewei<jizewei@huawei.com> # message auto-generated for no-merge-commit merge: !28979 merge master_fix_dtensor_ut into master fix DTensor UT Created-by: jizewei Commit-by: jizewei 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 /kind bug **What does this PR do / why do we need it**: 1. change DTensor UT from 4 devices to 2 devices, because the CI environment only has 2 devices 2. adapt the newest npu_fusion_attention **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: test_attention_ops.py  test_gather_swiglu.py  test_math_ops.py  test_matrix_ops.py  test_moe_ops.py  See merge request: Ascend/pytorch!28979 | 9 个月前 | |
[test] verify NPU DTensor fixes for #179203 and #187933 Co-authored-by: Jiayi_Meng<mengjiayi5@huawei.com> # message auto-generated for no-merge-commit merge: !46841 merge test/dtensor-179203-187933 into master [test] verify NPU DTensor fixes for #179203 and #187933 Created-by: Jiayi_Meng Commit-by: Jiayi_Meng Merged-by: ascend-robot Description: 关联 Issue:[Ascend/pytorch#3815](https://gitcode.com/Ascend/pytorch/issues/3815) # 【合入来源】 - [x] 需求 - 补充社区 PR #179203 和 #187933 对应的 NPU DTensor 回归测试。 - [x] 问题单 - 关联 Issue:[Ascend/pytorch#3815](https://gitcode.com/Ascend/pytorch/issues/3815) - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 - 在 test/distributed/tensor/test_math_ops.py 中: - 增加 Partial 和 SupportedDevices 导入。 - 增加 test_nll_loss_weighted_mean_with_even_target_counts,覆盖输入分片、target/weight 副本场景下的加权 mean NLLLoss。 - 增加 test_foreach_max_sharded,校验分片 DTensor 执行 torch._foreach_max 后的 Partial("max") placement 及完整结果。 - 在 test/distributed/_tensor/test_init.py 中: - 从 torch.distributed.tensor 导入 linspace 和 logspace。 - 增加 test_linspace 和 test_logspace,覆盖 Replicate() / Shard(0)、默认及显式 dtype、steps=0/1、逆序区间、DTensor 标量 start/end 及非法非标量输入。 - linspace 显式 dtype 保持 torch.float64。 - logspace 显式 dtype 使用 torch.float32,适配 aclnnLogSpace 不支持 float64 的限制。 # 【资料变更】 不涉及。 # 【接口变更】 不涉及。本 PR 仅补充测试用例。 # 【功能验证】       # 【CheckList】 > PR 提交人对以下 CheckList 自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]。 - [x] 改动仅涉及两个目标测试文件,未引入构建产物或无关文件。 - [x] 新增多卡测试复用现有 NPU DTensor / HCCL 测试框架。 - [x] PR 标题使用 test 类型标签。 - [x] 已关联 Issue:[Ascend/pytorch#5037](https://gitcode.com/Ascend/pytorch/issues/5037)。 - [x] 本地差异检查和目标测试验证通过。 - [ ] PR 持续集成流水线执行通过。 See merge request: Ascend/pytorch!46841 | 25 天前 | |
Skip failing torch official TestCase tests and disable unsupported test cases Co-authored-by: yuhaiyan<yuhaiyan8@huawei.com> Co-authored-by: yuhaiyan8<yuhaiyan8@h-partners.com> # message auto-generated for no-merge-commit merge: !32140 merge cherry-pick-mr-32139-1774073503832-auto into master Skip failing torch official TestCase tests and disable unsupported test cases Created-by: yuhaiyan Commit-by: yuhaiyan;yuhaiyan8 Merged-by: ascend-robot Description: <!-- PR描述模板更新日期:20260203 --> # 【合入来源】 > <font color="red">**如有社区issue,请关联issue链接**</font>\ > <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font> - [ ] 需求 - [ ] 问题单 - [ ] issue/工单 - [ ] 重构优化 - [ ] 资料更新 # 【修改方案】 1. 暂时跳过失败用例 2. 已提单跟进修复 # 【资料变更】 > 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及” # 【接口变更】 > 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及” # 【功能验证】 > 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\ > 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图 # 【CheckList】 > PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x] - [ ] 代码注释完备,正确记录错误日志 - [ ] 代码实现进行了返回值、空指针等校验 - [ ] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等 - [ ] PR持续集成流水线(CI)执行通过,代码检查无异常 See merge request: Ascend/pytorch!32140 | 5 个月前 | |
fix DTensor UT Co-authored-by: jizewei<jizewei@huawei.com> # message auto-generated for no-merge-commit merge: !28979 merge master_fix_dtensor_ut into master fix DTensor UT Created-by: jizewei Commit-by: jizewei 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 /kind bug **What does this PR do / why do we need it**: 1. change DTensor UT from 4 devices to 2 devices, because the CI environment only has 2 devices 2. adapt the newest npu_fusion_attention **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: test_attention_ops.py  test_gather_swiglu.py  test_math_ops.py  test_matrix_ops.py  test_moe_ops.py  See merge request: Ascend/pytorch!28979 | 9 个月前 | |
modify test case Co-authored-by: pta-robot<pta_robot@163.com> Co-authored-by: gcw_Dgfy2aKk<dujunjie2@huawei.com> # message auto-generated for no-merge-commit merge: !29184 merge correct_testcase_260107 into master modify test case Created-by: gcw_Dgfy2aKk Commit-by: gcw_Dgfy2aKk;pta-robot 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**: **Which issue(s) this PR fixes**: <!-- *Automatically closes linked issue when PR is merged. Usage: Fixes #<issue number>, or Fixes (paste link of issue). --> Fixes # **Special notes for your reviewers**: See merge request: Ascend/pytorch!29184 | 9 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 7 个月前 | ||
| 1 个月前 | ||
| 5 个月前 | ||
| 9 个月前 | ||
| 4 个月前 | ||
| 9 个月前 | ||
| 25 天前 | ||
| 5 个月前 | ||
| 9 个月前 | ||
| 9 个月前 |