CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 10:46:25 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/"78b6cea73f7b30a15d41afc8a0fb6880"
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=1kfhlRQ%2FF%2B0U%2Bl%2FcfPx9XdtcKLgH8G33%2BNtbccwrKQfAaiPi%2FXietI0T0MEqfRFa16B314N7qOSfQ%2BSgM%2FKISw483U0%2Fa5UqnkOaiV0KNo1RCtNsUFtGpi01IGwbAOwSzZtFoR82hTmtc%2Bo3YprMM3F9dvHlN%2FCoIC0Vkcywr2iJMVQpvdVsl6QNvin6y8cANbMoWRQ45uoo0OPivbncUROdulaDKP95URLnRSssOqXISgF0FZJFOVmf1epcZzjG4UluLFd%2BJG4B%2FOTgimHtUQ%3D%3D--LLodYjb2%2B5VM5ifG--fzBQYdqvQiYjcnkkAifLig%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.2009703567.1753440384; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 10:46:24 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 10:46:24 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B894:2EEC20:775203:8D2EBF:68836080
[Auto-Parallel] Reshard API & Hybrid Parallel Unitest for dy2static m… · PaddlePaddle/Paddle@70c4d21 · GitHub
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/api.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/static/completion.py
Copy file name to clipboardExpand all lines: test/auto_parallel/CMakeLists.txt
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/semi_auto_llama.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/semi_auto_parallel_llama_model.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/test_semi_auto_parallel_hybrid_strategy.py
Copy file name to clipboardExpand all lines: test/auto_parallel/semi_auto_parallel_dist_to_static_api.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit 70c4d21
[Auto-Parallel] Reshard API & Hybrid Parallel Unitest for dy2static mode (#59856)
* stsatic_decorate v0.1
* update static_decorate as comments
* add unit tests and adapt placement api
* add docs for the api
* remove useless print and comments
* first commit
* stsatic_decorate v0.1
* update static_decorate as comments
* add unit tests and adapt placement api
* add docs for the api
* remove useless print and comments
* add unit execution code
* fix sample code for static_decorate
* add get_program interface in DistModel
* modify as suggested
* move the init parameters part to helper.py
* fix unittest name in CMakeList
* add api
* add unitest
* typoes
* add dy2static test case for llama
* static dist model pp
* bug fixed
* enable all test
* fix typoes
---------
Co-authored-by: Yichen Zhang <zhangyichen03@baidu.com>1 parent 5be87ba commit 70c4d21Copy full SHA for 70c4d21
File tree
Expand file treeCollapse file tree
10 files changed
+593
-28
lines changedFilter options
- python/paddle/distributed/auto_parallel
- static
- test/auto_parallel
- hybrid_strategy
Expand file treeCollapse file tree
10 files changed
+593
-28
lines changedpython/paddle/distributed/auto_parallel/api.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/api.py+74-8Lines changed: 74 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 |
| |
22 | 27 |
| |
23 | 28 |
| |
24 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
25 | 40 |
| |
26 | 41 |
| |
27 | 42 |
| |
| |||
131 | 146 |
| |
132 | 147 |
| |
133 | 148 |
| |
| 149 | + | |
134 | 150 |
| |
135 | 151 |
| |
136 | 152 |
| |
| |||
268 | 284 |
| |
269 | 285 |
| |
270 | 286 |
| |
| 287 | + | |
271 | 288 |
| |
272 |
| - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
273 | 293 |
| |
274 |
| - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
275 | 298 |
| |
276 | 299 |
| |
277 | 300 |
| |
278 |
| - | |
279 |
| - | |
280 | 301 |
| |
281 | 302 |
| |
282 | 303 |
| |
| |||
566 | 587 |
| |
567 | 588 |
| |
568 | 589 |
| |
569 |
| - | |
570 |
| - | |
571 |
| - | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
572 | 626 |
| |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
573 | 639 |
| |
574 | 640 |
| |
575 | 641 |
| |
|
python/paddle/distributed/auto_parallel/static/completion.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/static/completion.py+26-1Lines changed: 26 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| 25 | + | |
24 | 26 |
| |
25 | 27 |
| |
26 | 28 |
| |
| |||
53 | 55 |
| |
54 | 56 |
| |
55 | 57 |
| |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
56 | 76 |
| |
57 | 77 |
| |
58 | 78 |
| |
| |||
218 | 238 |
| |
219 | 239 |
| |
220 | 240 |
| |
| 241 | + | |
221 | 242 |
| |
222 | 243 |
| |
223 | 244 |
| |
| |||
255 | 276 |
| |
256 | 277 |
| |
257 | 278 |
| |
| 279 | + | |
258 | 280 |
| |
259 | 281 |
| |
260 | 282 |
| |
| |||
293 | 315 |
| |
294 | 316 |
| |
295 | 317 |
| |
296 |
| - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
297 | 322 |
| |
298 | 323 |
| |
299 | 324 |
| |
|
test/auto_parallel/CMakeLists.txt
Copy file name to clipboardExpand all lines: test/auto_parallel/CMakeLists.txt+4Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
181 | 185 |
| |
182 | 186 |
| |
183 | 187 |
| |
|
test/auto_parallel/hybrid_strategy/semi_auto_llama.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/semi_auto_llama.py+54-3Lines changed: 54 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
20 | 24 |
| |
21 | 25 |
| |
22 | 26 |
| |
| |||
104 | 108 |
| |
105 | 109 |
| |
106 | 110 |
| |
107 |
| - | |
| 111 | + | |
108 | 112 |
| |
| 113 | + | |
109 | 114 |
| |
110 | 115 |
| |
111 | 116 |
| |
| |||
133 | 138 |
| |
134 | 139 |
| |
135 | 140 |
| |
136 |
| - | |
| 141 | + | |
| 142 | + | |
137 | 143 |
| |
138 | 144 |
| |
139 | 145 |
| |
| |||
154 | 160 |
| |
155 | 161 |
| |
156 | 162 |
| |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
157 | 208 |
| |
158 | 209 |
| |
159 | 210 |
|
test/auto_parallel/hybrid_strategy/semi_auto_parallel_llama_model.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/semi_auto_parallel_llama_model.py+20-15Lines changed: 20 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
251 | 251 |
| |
252 | 252 |
| |
253 | 253 |
| |
254 |
| - | |
| 254 | + | |
255 | 255 |
| |
256 | 256 |
| |
257 | 257 |
| |
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
504 |
| - | |
| 504 | + | |
505 | 505 |
| |
506 | 506 |
| |
507 | 507 |
| |
| |||
582 | 582 |
| |
583 | 583 |
| |
584 | 584 |
| |
585 |
| - | |
| 585 | + | |
586 | 586 |
| |
587 | 587 |
| |
588 | 588 |
| |
| |||
607 | 607 |
| |
608 | 608 |
| |
609 | 609 |
| |
610 |
| - | |
| 610 | + | |
611 | 611 |
| |
612 | 612 |
| |
613 | 613 |
| |
| |||
708 | 708 |
| |
709 | 709 |
| |
710 | 710 |
| |
| 711 | + | |
| 712 | + | |
| 713 | + | |
711 | 714 |
| |
712 | 715 |
| |
713 | 716 |
| |
| |||
732 | 735 |
| |
733 | 736 |
| |
734 | 737 |
| |
735 |
| - | |
| 738 | + | |
736 | 739 |
| |
737 | 740 |
| |
738 | 741 |
| |
| |||
770 | 773 |
| |
771 | 774 |
| |
772 | 775 |
| |
| 776 | + | |
773 | 777 |
| |
774 | 778 |
| |
775 | 779 |
| |
776 | 780 |
| |
777 | 781 |
| |
778 | 782 |
| |
779 |
| - | |
| 783 | + | |
780 | 784 |
| |
781 | 785 |
| |
782 |
| - | |
783 |
| - | |
784 |
| - | |
785 |
| - | |
786 |
| - | |
787 |
| - | |
788 |
| - | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
789 | 793 |
| |
790 |
| - | |
791 |
| - | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
792 | 797 |
| |
793 | 798 |
| |
794 | 799 |
| |
|
test/auto_parallel/hybrid_strategy/test_semi_auto_parallel_hybrid_strategy.py
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/test_semi_auto_parallel_hybrid_strategy.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
164 | 164 |
| |
165 | 165 |
| |
166 | 166 |
| |
167 |
| - | |
| 167 | + | |
168 | 168 |
| |
169 | 169 |
| |
170 | 170 |
| |
|
test/auto_parallel/semi_auto_parallel_dist_to_static_api.py
Copy file name to clipboardExpand all lines: test/auto_parallel/semi_auto_parallel_dist_to_static_api.py+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
200 | 200 |
| |
201 | 201 |
| |
202 | 202 |
| |
| 203 | + | |
203 | 204 |
| |
204 | 205 |
| |
205 | 206 |
| |
|
You can’t perform that action at this time.
0 commit comments