Commit Graph
132 Commits
Author SHA1 Message Date
TrHan 3597adbbac [bugfix]cp冗余资料回退
Co-authored-by: TrHan<hantianrui1@huawei.com>



# message auto-generated for no-merge-commit merge:
!36645 merge pr_cp_2.10.0_0525 into v2.10.0

[bugfix]cp冗余资料回退

Created-by: TrHan
Commit-by: TrHan
Merged-by: ascend-robot
Description: <!--
PR描述模板更新日期:20260203
-->

# 【合入来源】
> <font color="red">**如有社区issue,请关联issue链接**</font>\
> <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font>

- [ ] 需求
- [ ] 问题单
- [x] issue/工单 [#2035](https://gitcode.com/Ascend/pytorch/issues/2035) 
- [ ] 重构优化
- [ ] 资料更新

# 【修改方案】
> 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\
> 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)

删除冗余资料修改

# 【资料变更】
> 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

涉及,删除冗余资料修改

# 【接口变更】
> 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”

不涉及

# 【功能验证】
> 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\
> 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

不涉及,仅修改资料

# 【CheckList】
> PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

- [x] 代码注释完备,正确记录错误日志
- [x] 代码实现进行了返回值、空指针等校验
- [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
- [x] PR持续集成流水线(CI)执行通过,代码检查无异常


See merge request: Ascend/pytorch!36645
2026-05-26 20:06:28 +08:00
TrHan 005f1d4b0e [feature]分布式支持context parallel
Co-authored-by: TrHan<hantianrui1@huawei.com>



# message auto-generated for no-merge-commit merge:
!35982 merge pr_cp_2.10_0516 into v2.10.0

[feature]分布式支持context parallel

Created-by: TrHan
Commit-by: TrHan
Merged-by: ascend-robot
Description: <!--
PR描述模板更新日期:20260203
-->

# 【合入来源】
> <font color="red">**如有社区issue,请关联issue链接**</font>\
> <font color="red">**请勿携带内部流程信息(需求链接、问题单、内部issue等)**</font>

- [x] 需求
- [ ] 问题单
- [ ] issue/工单
- [ ] 重构优化
- [ ] 资料更新

[#2029](https://gitcode.com/Ascend/pytorch/issues/2029)

# 【修改方案】
> 请描述修改内容的具体实现,涉及哪些组件之间进行交互,可以用1、2、3、...进行罗列\
> 如果是需求或者重构类的PR,需要补充详细设计文档(说明上下游组件关系、时序图、类图、DFX能力等内容)

参考原生torch cp实现方案,注册shard seq dim的策略,通过monkey patch将sdpa+DTensor的dispatch换成cp的dispatch,从而触发ring attention流程
详细方案见issue

# 【资料变更】
> 请确认是否涉及资料变更。如涉及,需要在PR中体现,并简要说明修改内容。如不涉及,需填写“不涉及”

涉及,docs/api/torch_npu_apis.md

# 【接口变更】
> 请确认是否涉及跨代码仓或者客户面可见的接口变更。如涉及,需要详细说明接口以及对应的变更内容,同时需要在资料中体现。如不涉及,需填写“不涉及”

涉及新增接口,docs/api/torch_npu_apis.md

# 【功能验证】
> 说明测试场景,测试方法。如果本次测试方式与常规单元测试不同,请详细说明您的测试步骤\
> 新增/变更内容是否已新增/适配UT测试用例看护,并补充测试自验证截图

围绕ring attention,对如下参数矩阵进行交叉验证
![image.png](https://raw.gitcode.com/user-images/assets/7404318/1e24ea90-28fc-4d24-9b2f-71c54bcf8247/image.png 'image.png')
用例执行结果:
![image.png](https://raw.gitcode.com/user-images/assets/7404318/0916cd7a-20a3-4b33-9d83-bde13fb7b3fc/image.png 'image.png')

# 【CheckList】
> PR提交人对以下CheckList自检项进行全量自检,自检通过或不涉及,均修改 [ ] 为 [x]

- [x] 代码注释完备,正确记录错误日志
- [x] 代码实现进行了返回值、空指针等校验
- [x] PR标题正确使用类型标签,如:feat、fix、refactor、docs、test等
- [x] PR持续集成流水线(CI)执行通过,代码检查无异常


See merge request: Ascend/pytorch!35982
2026-05-21 15:59:38 +08:00
李佳伟 60d62a4665 !6640 Add api info of pytorch ascend adapter
Merge pull request !6640 from 李佳伟/master
2023-10-16 12:07:21 +00:00
pengzirong 02814d5e7b update releasenote version 5.0.RC1 2023-04-24 14:34:03 +08:00
pengzirong 520ee96726 delete docs (except releasenote) 2023-03-13 09:22:14 +08:00
weili10 da910e4a36 update dp api docs
Signed-off-by: weili10 <liwei386@huawei.com>
2023-03-09 08:00:13 +00:00
x00430237 4ecb83fbce [fix] fix datadump bugs 2023-03-04 14:42:52 +08:00
i-robot 6900aae386 !2450 Update the configuration information of BiShengCPP.
Merge pull request !2450 from shaoyf/bishengcpp_test_1
2023-02-27 13:01:18 +00:00
shaoyf fb8e4aaf13 Update the configuration information of BiShengCPP. 2023-02-27 11:25:58 +08:00
pengzirong 30ea9fc4e3 更新3.0.0版本RELEASENOT 2023-02-17 16:59:57 +08:00
i-robot 66e7cb5350 !2132 Add BiShengExtension for compile ops writed by BiShengCPP.
Merge pull request !2132 from lotus/master
2023-02-07 07:19:12 +00:00
lotusdeng2010 9c840a2ed9 Add BiShengExtension for compile ops writed by BiShengCPP 2023-02-03 17:30:08 +08:00
liangyunfan e034df7a08 Add aminmax.out operator and update the operator support list. 2023-02-03 11:57:46 +08:00
yskhhh 75d4714f72 style(CalcuOpUtil.*): reformat some func and remove some unused func 2023-01-31 11:17:00 +08:00
x00430237 e672675d13 [feat] add step control and async datadump hook in acc_cmp_tool 2023-01-03 18:45:31 +08:00
i-robot 8b63680b3b !1912 [Fix]Specified process processing in overflow detection tool.
Merge pull request !1912 from 杜金航/master
2022-12-16 09:46:05 +00:00
dujinhang 394b9560cc [Fix]Specified process processing in overflow detection tool. 2022-12-16 15:37:35 +08:00
i-robot c24bf7125d !1874 [Fix]Only dump specified process in accuracy comparison tool.
Merge pull request !1874 from 杜金航/master
2022-12-16 02:31:43 +00:00
dujinhang 98af8a6276 [Fix]Only dump specified process in accuracy comparison tool. 2022-12-15 09:49:27 +08:00
tanqinlin ca35b63288 modify usage Guide 2022-12-13 21:32:47 +08:00
i-robot 0a430d4c16 !1720 亲和库限制说明
Merge pull request !1720 from 彭子荣/master
2022-12-07 04:12:25 +00:00
pengzirong 45b14f68e5 亲和库增加限制说明
补充亲和库限制

优化器合并参数说明
2022-12-07 11:58:18 +08:00
dujinhang 16a3474fd2 同步精度比对和溢出检测 2022-12-06 14:28:02 +08:00
i-robot 5b86087213 !1592 新API清单更新
Merge pull request !1592 from 彭子荣/master
2022-11-17 11:46:50 +00:00
pengzirong b0b6c9aeef API清单更新 2022-11-17 12:02:39 +08:00
j00648035 541b06723e update deepspeed readme 2022-11-14 20:25:28 +08:00
pengzirong f72dcf4673 API修正 2022-11-08 11:17:53 +08:00
pengzirong ab2d1b148f API清单更新 2022-11-03 16:58:51 +08:00
pengzirong 1cb34f68de releasenote更新RC3&多机多卡合指南合并进训练指南 2022-11-01 15:21:26 +08:00
pengzirong 090da68ef5 修改版本配套表&问题 2022-10-19 18:04:30 +08:00
pengzirong 41ca455c8f 新增训练调优&工具使用指南 2022-10-14 18:23:43 +08:00
闫鹏全 14a496d500 精度对比工具文档完善 2022-09-13 10:06:59 +08:00
i-robot 54203de242 !1185 【精度比对工具】文档更新
Merge pull request !1185 from 闫鹏全/master
2022-09-01 09:01:14 +00:00
i-robot 289173654b !1192 刷新docs:刷新e2e & cann prof资f资料
Merge pull request !1192 from 施博/up_master_docs
2022-08-31 02:54:44 +00:00
i-robot 8b30860a8c !1187 API清单亲和库更新
Merge pull request !1187 from 彭子荣/master
2022-08-31 02:28:46 +00:00
shibo19 6661f330d8 fix confict 2022-08-30 19:44:31 +08:00
shibo19 8b3057ddd2 刷新docs:刷新e2e & cann prof资f资料 2022-08-30 19:42:54 +08:00
pengzirong 23b793ccf0 : This is a combination of 2 commits.
亲和库更新

1
2022-08-30 14:30:52 +08:00
i-robot 53b84e29d4 !1180 网络模型移植与训练指南全文问题检查&多机多卡训练适配指南资料修改
Merge pull request !1180 from 彭子荣/master
2022-08-29 12:42:32 +00:00
闫鹏全 23d204b127 精度比对文档更新 2022-08-29 16:38:59 +08:00
pengzirong 9085b48eec 网络模型移植与训练指南全文问题检查&环境变量代码缺少空格 2022-08-26 10:20:47 +08:00
闫鹏全 143ea282a7 增加精度比对工具使用指南文档 2022-08-15 10:40:02 +08:00
pengzirong c6446b04cc 更新跳转链接&补充分布式训练添加内容 2022-08-05 09:17:37 +08:00
pipihugh 53cfe43fbd 更新pytorch API清单 2022-07-28 17:10:14 +08:00
yanhuiling 5a404d5e3e Updated English PyTorch documents. 2022-07-22 14:28:39 +08:00
李超 0a10966ac7 fix oom when calling npu_transpose 2022-07-16 17:01:26 +08:00
i-robot f7a1053720 !1047 多机多卡训练适配指南 英文资料更新
Merge pull request !1047 from 彭子荣/master
2022-07-14 06:32:20 +00:00
pengzirong 0e447cd10a update ip to the sample ip,新增支持API
1

RELEASENOTE 更新3.0.RC2内容
2022-07-14 09:15:37 +08:00
weili10 0782c5e79e !1033 网络模型移植与训练指南修改
Merge pull request !1033 from 彭子荣/master
2022-07-11 08:37:05 +00:00
i-robot 61c1971884 !1040 Updated the PyTorch Installation Guide, PyTorch Network Model Porting and Training Guide, and README.en
Merge pull request !1040 from yanhuiling/master
2022-07-11 08:33:33 +00:00