CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 00:49:57 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/PaddlePaddle/Paddle.git
etag: W/"b95f0e53dabaee13c0c97d7e3b146225"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=%2FGIIsWzYyhLTxj34YwUYL5Z5nqhMiUSLUruwidYfV5hfgz7%2FmQul%2B1HccIhAZI%2FH%2FhJpmVJixntGukxODPZhj1qUK3AcHEBpBYY7emvon%2FjxGz2p3XgC1m7YNn08WXpUxynzKpcrqJGVfU43P1%2FgrRAYjwuSfNtcRHuYun2nD57TYXweigVoGc8425nG2rTfaavWSN4%2BjS6qOws04tU35hD3wy%2BFO%2Fyis7pXcZW9ZrloUQK399knY5SUwMuo6dgDiWjZx%2BGZR6nOuhLVWYxyCw%3D%3D--NVTHnLlFNu0A0XaI--Yar6%2BqVL8KYBP0tiGCRgmA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.145699552.1753490996; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 00:49:56 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Jul 2026 00:49:56 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 8B32:91727:677AF:A6CE0:68842634
Fit PIR AMP for auto_parallel (#65892) · PaddlePaddle/Paddle@ae0fe07 · GitHub


authored
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/distributed/ir/dist_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/distributed/ir/dist_tools.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/distributed/ir/dist_tools.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/op_generator/op_infermeta_func_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/op_generator/ops_api_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/utils/utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/api/lib/api_gen_utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/api/lib/data_transform.cc
Copy file name to clipboardExpand all lines: paddle/phi/core/distributed/auto_parallel/dist_tensor.h
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/spmd_rules/amp_ops.cc
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit ae0fe07

Fit PIR AMP for auto_parallel (#65892)
* [Test]Support pir amp for dist
* Refine code
* refine pir dist to_static
* fix bug
* fix partial
* Fix dist engine code
* fit pir grad_scaler with auto_parallel
* use amp strategy
* update ut
* update ut
* fit for amp o1
* revert changes of grad_scaler
* fix ut and refine code
---------
Co-authored-by: 0x45f <wangzhen45@baidu.com>
Co-authored-by: winter-wang <1030748926@qq.com>1 parent a8cdd97 commit ae0fe07Copy full SHA for ae0fe07
File tree
Expand file treeCollapse file tree
22 files changed
+455
-82
lines changedFilter options
- paddle
- fluid/pir/dialect
- distributed/ir
- op_generator
- operator/utils
- phi
- api/lib
- core/distributed/auto_parallel
- infermeta/spmd_rules
- python/paddle
- distributed/auto_parallel
- static
- reshard_funcs
- static/amp
- test/auto_parallel/pir
Expand file treeCollapse file tree
22 files changed
+455
-82
lines changedpaddle/fluid/pir/dialect/distributed/ir/dist_op.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/distributed/ir/dist_op.cc+1-24Lines changed: 1 addition & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| 17 | + | |
17 | 18 |
| |
18 | 19 |
| |
19 | 20 |
| |
| |||
273 | 274 |
| |
274 | 275 |
| |
275 | 276 |
| |
276 |
| - | |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 |
| - | |
286 |
| - | |
287 |
| - | |
288 |
| - | |
289 |
| - | |
290 |
| - | |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 |
| - | |
297 |
| - | |
298 |
| - | |
299 |
| - | |
300 | 277 |
| |
301 | 278 |
| |
302 | 279 |
| |
|
paddle/fluid/pir/dialect/distributed/ir/dist_tools.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/distributed/ir/dist_tools.cc+158Lines changed: 158 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 |
| |
17 | 20 |
| |
| 21 | + | |
18 | 22 |
| |
19 | 23 |
| |
20 | 24 |
| |
21 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
22 | 162 |
| |
23 | 163 |
| |
24 | 164 |
| |
| |||
210 | 350 |
| |
211 | 351 |
| |
212 | 352 |
| |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
213 | 369 |
| |
214 | 370 |
| |
215 | 371 |
| |
| |||
222 | 378 |
| |
223 | 379 |
| |
224 | 380 |
| |
| 381 | + | |
| 382 | + | |
225 | 383 |
| |
226 | 384 |
| |
227 | 385 |
| |
|
paddle/fluid/pir/dialect/distributed/ir/dist_tools.h
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/distributed/ir/dist_tools.h+7Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 |
| |
25 | 32 |
| |
26 | 33 |
| |
|
paddle/fluid/pir/dialect/op_generator/op_infermeta_func_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/op_generator/op_infermeta_func_gen.py+11-1Lines changed: 11 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
789 | 789 |
| |
790 | 790 |
| |
791 | 791 |
| |
| 792 | + | |
792 | 793 |
| |
793 | 794 |
| |
794 | 795 |
| |
| |||
799 | 800 |
| |
800 | 801 |
| |
801 | 802 |
| |
802 |
| - | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
803 | 812 |
| |
804 | 813 |
| |
805 | 814 |
| |
| |||
844 | 853 |
| |
845 | 854 |
| |
846 | 855 |
| |
| 856 | + | |
847 | 857 |
| |
848 | 858 |
| |
849 | 859 |
| |
|
paddle/fluid/pir/dialect/op_generator/ops_api_gen.py
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/op_generator/ops_api_gen.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
| 96 | + | |
| 97 | + | |
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
| |||
161 | 163 |
| |
162 | 164 |
| |
163 | 165 |
| |
164 |
| - | |
165 |
| - | |
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
|
paddle/fluid/pir/dialect/operator/utils/utils.cc
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/utils/utils.cc+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
| 55 | + | |
55 | 56 |
| |
56 | 57 |
| |
57 | 58 |
| |
|
paddle/phi/api/lib/api_gen_utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/api/lib/api_gen_utils.cc+10-3Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
677 | 677 |
| |
678 | 678 |
| |
679 | 679 |
| |
680 |
| - | |
681 |
| - | |
| 680 | + | |
| 681 | + | |
682 | 682 |
| |
683 | 683 |
| |
684 | 684 |
| |
685 |
| - | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
686 | 693 |
| |
687 | 694 |
| |
688 | 695 |
| |
|
paddle/phi/api/lib/data_transform.cc
Copy file name to clipboardExpand all lines: paddle/phi/api/lib/data_transform.cc+6-2Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
747 | 747 |
| |
748 | 748 |
| |
749 | 749 |
| |
| 750 | + | |
| 751 | + | |
| 752 | + | |
750 | 753 |
| |
751 | 754 |
| |
752 | 755 |
| |
| |||
806 | 809 |
| |
807 | 810 |
| |
808 | 811 |
| |
809 |
| - | |
| 812 | + | |
810 | 813 |
| |
811 | 814 |
| |
812 | 815 |
| |
| |||
856 | 859 |
| |
857 | 860 |
| |
858 | 861 |
| |
859 |
| - | |
| 862 | + | |
| 863 | + | |
860 | 864 |
| |
861 | 865 |
| |
862 | 866 |
| |
|
paddle/phi/core/distributed/auto_parallel/dist_tensor.h
Copy file name to clipboardExpand all lines: paddle/phi/core/distributed/auto_parallel/dist_tensor.h+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
130 | 130 |
| |
131 | 131 |
| |
132 | 132 |
| |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
133 | 137 |
| |
134 | 138 |
| |
135 | 139 |
| |
|
paddle/phi/infermeta/spmd_rules/amp_ops.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/spmd_rules/amp_ops.cc+10-1Lines changed: 10 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| 20 | + | |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
| |||
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| 30 | + | |
| 31 | + | |
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
34 | 42 |
| |
35 | 43 |
| |
36 |
| - | |
| 44 | + | |
37 | 45 |
| |
38 | 46 |
| |
39 | 47 |
| |
| |||
62 | 70 |
| |
63 | 71 |
| |
64 | 72 |
| |
| 73 | + | |
65 | 74 |
| |
66 | 75 |
| |
67 | 76 |
| |
|
You can’t perform that action at this time.
0 commit comments