CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 07:06:49 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/"62051144e0bbf1890ba0a6f8b98bc788"
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=41c%2BG%2BGjxEcQLzUxGMuCuKceZFSbah%2FpWUHbjAytGr1GGAfUmhJAb6VLUD1udGMUbvX0eG1ApogAdhLYohHPjq3p4Jy3yQB0N1wpRVvf1YevWTEnhrFBs0TiRj7xkxIdsp%2BXOkSdVlqFQiIQPR2OdLarAQRS9b%2BS00xA3S0Uz4Pig3VWZK%2FowDhoQ2lsVTAq16LfuUCRtdVHrM9JBJCnoCCEqBrnfYMGREN5U6%2FjCzQsQt%2F8XQacq1qKx6DkOVix7U6k28xxSd82PXU3ybHvNg%3D%3D--P6eZ%2FDYQm%2Bv60GM2--mUfMnWI9EqVK8TBwPpdJCg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.41912746.1753427208; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 07:06:48 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 07:06:48 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E834:DBBD4:411038:50127A:68832D08
[Auto Parallel] Add Strategy api for configuring the distributed trai… · PaddlePaddle/Paddle@99a281b · GitHub
Copy file name to clipboardExpand all lines: python/paddle/distributed/__init__.py
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/strategy.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/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 99a281b
authored
[Auto Parallel] Add Strategy api for configuring the distributed training with static graph (#59862)
* move strategy to api.py
* add Strategy api
* fix sample code
* add detailed comments for the configs in dist.Strategy
* add an error case in unit test
* add the unit test to CMakeLists1 parent a339e8b commit 99a281bCopy full SHA for 99a281b
File tree
Expand file treeCollapse file tree
8 files changed
+372
-24
lines changedFilter options
- python/paddle/distributed
- auto_parallel
- test/auto_parallel
- hybrid_strategy
Expand file treeCollapse file tree
8 files changed
+372
-24
lines changedpython/paddle/distributed/__init__.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/__init__.py+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
85 | 85 |
| |
86 | 86 |
| |
87 | 87 |
| |
| 88 | + | |
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
| |||
165 | 166 |
| |
166 | 167 |
| |
167 | 168 |
| |
| 169 | + | |
168 | 170 |
|
python/paddle/distributed/auto_parallel/api.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/api.py+249-20Lines changed: 249 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
26 |
| - | |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
108 | 109 |
| |
109 | 110 |
| |
110 | 111 |
| |
111 |
| - | |
112 |
| - | |
113 |
| - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
114 | 117 |
| |
115 | 118 |
| |
116 | 119 |
| |
| |||
127 | 130 |
| |
128 | 131 |
| |
129 | 132 |
| |
130 |
| - | |
131 |
| - | |
| 133 | + | |
| 134 | + | |
132 | 135 |
| |
133 | 136 |
| |
134 | 137 |
| |
| |||
141 | 144 |
| |
142 | 145 |
| |
143 | 146 |
| |
| 147 | + | |
144 | 148 |
| |
145 |
| - | |
| 149 | + | |
146 | 150 |
| |
147 | 151 |
| |
148 | 152 |
| |
| |||
271 | 275 |
| |
272 | 276 |
| |
273 | 277 |
| |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
274 | 299 |
| |
275 | 300 |
| |
276 | 301 |
| |
| |||
298 | 323 |
| |
299 | 324 |
| |
300 | 325 |
| |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
301 | 529 |
| |
302 | 530 |
| |
303 | 531 |
| |
| |||
306 | 534 |
| |
307 | 535 |
| |
308 | 536 |
| |
309 |
| - | |
310 |
| - | |
311 |
| - | |
312 |
| - | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
313 | 542 |
| |
314 | 543 |
| |
315 |
| - | |
316 |
| - | |
317 |
| - | |
318 |
| - | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
319 | 548 |
| |
320 | 549 |
| |
321 | 550 |
| |
322 | 551 |
| |
323 | 552 |
| |
324 |
| - | |
325 |
| - | |
326 |
| - | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
327 | 556 |
| |
328 | 557 |
| |
329 | 558 |
| |
330 |
| - | |
331 |
| - | |
| 559 | + | |
| 560 | + | |
332 | 561 |
| |
333 | 562 |
| |
334 | 563 |
| |
|
python/paddle/distributed/auto_parallel/strategy.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/strategy.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
156 | 156 |
| |
157 | 157 |
| |
158 | 158 |
| |
159 |
| - | |
| 159 | + | |
160 | 160 |
| |
161 | 161 |
| |
162 | 162 |
| |
|
test/auto_parallel/CMakeLists.txt
Copy file name to clipboardExpand all lines: test/auto_parallel/CMakeLists.txt+1Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
269 | 269 |
| |
270 | 270 |
| |
271 | 271 |
| |
| 272 | + | |
272 | 273 |
| |
273 | 274 |
| |
274 | 275 |
| |
|
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+8-1Lines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
191 | 198 |
| |
192 |
| - | |
| 199 | + | |
193 | 200 |
| |
194 | 201 |
| |
195 | 202 |
| |
|
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 | |
---|---|---|---|
| |||
212 | 212 |
| |
213 | 213 |
| |
214 | 214 |
| |
215 |
| - | |
| 215 | + | |
216 | 216 |
| |
217 | 217 |
| |
218 | 218 |
| |
|
You can’t perform that action at this time.
0 commit comments