CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 02:39:58 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/"9c5a8a648044d453702a4b35965882d4"
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=cF7%2BT0KDHdcNcRc6OkM4rsilOWx%2BLvTiaxPE4uqNN1AMXQwrIIa2HWWRpjxvJkSXiF484s6YDBObnI5EroTuWmPHi4%2BN6e6eA4sx3SMRsXkBwFCyLe7mjSu7aYqwmp0SB2MX1JGvOdDi4Dnk07m52pkTg7p%2F1Hpyc%2B6m0k3iXcb1Vlo6c5BgIgaAAFgmKncqCLsnm2dTrnsDUeHoSDfR9gnphFBh9y3d0rj6z%2BepjtcEVopT0zYPTEbZ01duIroh2woIkj4OyX21oF%2BzQrm89A%3D%3D--zPGSd5YlR8kW%2BZI4--ozcFfgNemFMswWQQaZCjHA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.470631335.1753670397; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 02:39:57 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 02:39:57 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9CEC:3240E6:12C53BF:18F3E09:6886E2FD
[AutoParallel] Add sequence parallel for llama (#59822) · PaddlePaddle/Paddle@be090bd · GitHub
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/tensor_utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/core/distributed/auto_parallel/reshard/s_to_r_reshard_function.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/spmd_rules/utils.cc
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/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
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit be090bd
[AutoParallel] Add sequence parallel for llama (#59822)
* [AutoParallel] Fix problems of sequence parallel in dynamic mode.
* Polish code.
* Remove TODO in transpose.cc
* Polish code.
* Remove useless modification.
* Polish code.
* Polish code.
* Remove useless modification.
* Allow partial status flow
* add 3D auto_parallel test.
* add 3d test and fix reshard bug.
* Add sequence parallel for llama.
* Polish code according to review comments.
* Fix bug of backward set in_grad dist_attr.
* Polish.
* Change place where sp call reshard
---------
Co-authored-by: wuhuachaocoding <huachaowu_ck@163.com>1 parent 1e3761d commit be090bdCopy full SHA for be090bd
File tree
Expand file treeCollapse file tree
8 files changed
+110
-24
lines changedFilter options
- paddle/phi
- api/lib
- core/distributed/auto_parallel/reshard
- infermeta/spmd_rules
- test/auto_parallel/hybrid_strategy
Expand file treeCollapse file tree
8 files changed
+110
-24
lines changedpaddle/phi/api/lib/api_gen_utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/api/lib/api_gen_utils.cc+3-5Lines changed: 3 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
649 | 649 |
| |
650 | 650 |
| |
651 | 651 |
| |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
657 | 655 |
| |
658 | 656 |
| |
659 | 657 |
| |
|
paddle/phi/api/lib/tensor_utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/api/lib/tensor_utils.cc+3-4Lines changed: 3 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
141 | 140 |
| |
142 | 141 |
| |
143 | 142 |
| |
|
paddle/phi/core/distributed/auto_parallel/reshard/s_to_r_reshard_function.cc
Copy file name to clipboardExpand all lines: paddle/phi/core/distributed/auto_parallel/reshard/s_to_r_reshard_function.cc+5-3Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
132 |
| - | |
133 |
| - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
134 | 136 |
| |
135 | 137 |
| |
136 | 138 |
| |
|
paddle/phi/infermeta/spmd_rules/utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/infermeta/spmd_rules/utils.cc+34-4Lines changed: 34 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
509 | 509 |
| |
510 | 510 |
| |
511 | 511 |
| |
512 |
| - | |
513 |
| - | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
514 | 529 |
| |
515 | 530 |
| |
516 | 531 |
| |
517 | 532 |
| |
518 |
| - | |
519 |
| - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
520 | 550 |
| |
521 | 551 |
| |
522 | 552 |
| |
|
test/auto_parallel/hybrid_strategy/CMakeLists.txt
Copy file name to clipboardExpand all lines: test/auto_parallel/hybrid_strategy/CMakeLists.txt+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
|
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+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
| 39 | + | |
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
80 | 81 |
| |
81 | 82 |
| |
82 | 83 |
| |
| 84 | + | |
| 85 | + | |
83 | 86 |
| |
84 | 87 |
| |
85 | 88 |
| |
|
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+52-4Lines changed: 52 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
182 | 182 |
| |
183 | 183 |
| |
184 | 184 |
| |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
185 | 192 |
| |
186 | 193 |
| |
187 | 194 |
| |
| |||
192 | 199 |
| |
193 | 200 |
| |
194 | 201 |
| |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
195 | 207 |
| |
196 | 208 |
| |
197 | 209 |
| |
| |||
240 | 252 |
| |
241 | 253 |
| |
242 | 254 |
| |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
243 | 261 |
| |
244 | 262 |
| |
245 | 263 |
| |
| |||
386 | 404 |
| |
387 | 405 |
| |
388 | 406 |
| |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
389 | 414 |
| |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
390 | 423 |
| |
391 | 424 |
| |
392 | 425 |
| |
| |||
443 | 476 |
| |
444 | 477 |
| |
445 | 478 |
| |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
446 | 485 |
| |
447 | 486 |
| |
448 | 487 |
| |
| |||
546 | 585 |
| |
547 | 586 |
| |
548 | 587 |
| |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
549 | 592 |
| |
550 | 593 |
| |
551 | 594 |
| |
| |||
557 | 600 |
| |
558 | 601 |
| |
559 | 602 |
| |
560 |
| - | |
561 |
| - | |
562 |
| - | |
| 603 | + | |
563 | 604 |
| |
564 | 605 |
| |
565 | 606 |
| |
| |||
580 | 621 |
| |
581 | 622 |
| |
582 | 623 |
| |
583 |
| - | |
| 624 | + | |
584 | 625 |
| |
585 | 626 |
| |
586 | 627 |
| |
| |||
729 | 770 |
| |
730 | 771 |
| |
731 | 772 |
| |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
732 | 779 |
| |
733 | 780 |
| |
| 781 | + | |
734 | 782 |
| |
735 | 783 |
| |
736 | 784 |
| |
|
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+9-3Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
147 |
| - | |
148 |
| - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
149 | 152 |
| |
150 | 153 |
| |
151 | 154 |
| |
| |||
162 | 165 |
| |
163 | 166 |
| |
164 | 167 |
| |
165 |
| - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
166 | 172 |
| |
167 | 173 |
| |
168 | 174 |
| |
|
You can’t perform that action at this time.
0 commit comments