CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 20:03:42 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/"1cf0f09c4f1b5fe7278345ccec991804"
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=G4dhuYOL99zfOO3HLvCxy58vt31%2Bug0syB99MzKs1B4ouAUFYAkBiPyAizg8%2BwIqAYzcrnTR9kCamp4%2FetsmWAiL8EcmOOk5C88WgzsFhGdEUG6O%2FPZNB2N7AyU5gpTbvMgTCVeDf92tocsHpiPKGzUOq%2FH65uQOs1kH7y9VQLdn388S9HuLSA3%2BxSPN%2F00Secu7w6l56d2PT7JoI9Gr9znOZVne7cr8ev0AyOLQ43jFlgkOS%2BFjVEOdhO4l5WBNdXvTwOJOv1XHZ6n4Dqz%2FQg%3D%3D--yMZkwtWzkMAhRTri--wGl0MG5C0z36W4tUSz3XUg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.249611878.1753646621; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 20:03:41 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Jul 2026 20:03:41 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B4BC:93466:7F83E2:A72A35:6886861C
[Dist Dialect] Simple MoE training in PIR (#66750) · PaddlePaddle/Paddle@d84c06f · GitHub
Copy file name to clipboardExpand all lines: paddle/fluid/pir/dialect/operator/utils/utils.cc
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/ops.yaml
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/engine.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/static/pir_pass.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit d84c06f
[Dist Dialect] Simple MoE training in PIR (#66750)
* refine and rename the MoE apis
* add error test in ut
* add pass and unit test for pir moe model
add sub_to_global_reshard function, the loss of PIR MoE demo is equal to dygraph auto parallel
refine and rename the MoE apis
* adapt arg type in shard_dataloader
* adapt grad_clip and CBroadcastOp in pir
* refine moe api to support multi-dimension process mesh
* refine moe api
* add spmd rule for ont_hot and cumsum in yaml
* revert shard_dataloader
* add unit test for reshape_grad with resharding x_grad
* fix bug in unit test
* revert shard_dataloader api args typing
* add
* add
---------
Co-authored-by: zhangbo9674 <zhangbo54@baidu.com>1 parent 2c3d98b commit d84c06fCopy full SHA for d84c06f
File tree
Expand file treeCollapse file tree
15 files changed
+359
-64
lines changedFilter options
- paddle
- fluid/pir/dialect/operator/utils
- phi/ops/yaml
- python/paddle
- distributed/auto_parallel
- static
- reshard_funcs
- nn
- test/auto_parallel
- pir
Expand file treeCollapse file tree
15 files changed
+359
-64
lines changedpaddle/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 | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
|
paddle/phi/ops/yaml/ops.yaml
Copy file name to clipboardExpand all lines: paddle/phi/ops/yaml/ops.yaml+2Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1201 | 1201 |
| |
1202 | 1202 |
| |
1203 | 1203 |
| |
| 1204 | + | |
1204 | 1205 |
| |
1205 | 1206 |
| |
1206 | 1207 |
| |
| |||
3511 | 3512 |
| |
3512 | 3513 |
| |
3513 | 3514 |
| |
| 3515 | + | |
3514 | 3516 |
| |
3515 | 3517 |
| |
3516 | 3518 |
| |
|
python/paddle/distributed/auto_parallel/api.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/api.py+74-48Lines changed: 74 additions & 48 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
329 | 329 |
| |
330 | 330 |
| |
331 | 331 |
| |
| 332 | + | |
332 | 333 |
| |
333 | 334 |
| |
334 | 335 |
| |
| |||
338 | 339 |
| |
339 | 340 |
| |
340 | 341 |
| |
341 |
| - | |
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 |
| - | |
346 | 345 |
| |
347 | 346 |
| |
348 | 347 |
| |
349 | 348 |
| |
350 | 349 |
| |
351 |
| - | |
| 350 | + | |
352 | 351 |
| |
353 | 352 |
| |
354 | 353 |
| |
| |||
360 | 359 |
| |
361 | 360 |
| |
362 | 361 |
| |
363 |
| - | |
| 362 | + | |
364 | 363 |
| |
365 | 364 |
| |
366 | 365 |
| |
| |||
377 | 376 |
| |
378 | 377 |
| |
379 | 378 |
| |
380 |
| - | |
| 379 | + | |
381 | 380 |
| |
382 | 381 |
| |
383 | 382 |
| |
384 | 383 |
| |
385 | 384 |
| |
386 | 385 |
| |
387 | 386 |
| |
388 |
| - | |
389 |
| - | |
390 |
| - | |
391 |
| - | |
392 |
| - | |
393 |
| - | |
394 |
| - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
395 | 392 |
| |
396 |
| - | |
397 |
| - | |
398 |
| - | |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 | 393 |
| |
408 |
| - | |
| 394 | + | |
409 | 395 |
| |
| 396 | + | |
| 397 | + | |
410 | 398 |
| |
411 | 399 |
| |
412 | 400 |
| |
413 |
| - | |
| 401 | + | |
414 | 402 |
| |
415 |
| - | |
416 |
| - | |
417 |
| - | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
418 | 420 |
| |
419 |
| - | |
420 |
| - | |
421 |
| - | |
422 |
| - | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
423 | 437 |
| |
424 | 438 |
| |
425 | 439 |
| |
426 | 440 |
| |
427 | 441 |
| |
428 |
| - | |
429 |
| - | |
| 442 | + | |
430 | 443 |
| |
431 | 444 |
| |
432 |
| - | |
433 |
| - | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
434 | 449 |
| |
435 |
| - | |
436 |
| - | |
437 |
| - | |
438 |
| - | |
439 |
| - | |
440 |
| - | |
441 | 450 |
| |
442 | 451 |
| |
| 452 | + | |
| 453 | + | |
| 454 | + | |
443 | 455 |
| |
444 | 456 |
| |
445 | 457 |
| |
446 | 458 |
| |
447 |
| - | |
| 459 | + | |
448 | 460 |
| |
449 | 461 |
| |
450 | 462 |
| |
451 | 463 |
| |
452 | 464 |
| |
| 465 | + | |
| 466 | + | |
| 467 | + | |
453 | 468 |
| |
454 | 469 |
| |
455 | 470 |
| |
456 | 471 |
| |
457 | 472 |
| |
458 | 473 |
| |
| 474 | + | |
459 | 475 |
| |
460 | 476 |
| |
461 | 477 |
| |
462 | 478 |
| |
463 | 479 |
| |
464 | 480 |
| |
| 481 | + | |
| 482 | + | |
| 483 | + | |
465 | 484 |
| |
466 | 485 |
| |
467 | 486 |
| |
| |||
487 | 506 |
| |
488 | 507 |
| |
489 | 508 |
| |
| 509 | + | |
490 | 510 |
| |
491 | 511 |
| |
492 | 512 |
| |
493 | 513 |
| |
494 | 514 |
| |
| 515 | + | |
495 | 516 |
| |
496 | 517 |
| |
497 | 518 |
| |
| |||
532 | 553 |
| |
533 | 554 |
| |
534 | 555 |
| |
535 |
| - | |
| 556 | + | |
536 | 557 |
| |
537 | 558 |
| |
538 | 559 |
| |
539 | 560 |
| |
540 | 561 |
| |
541 | 562 |
| |
542 | 563 |
| |
543 |
| - | |
544 |
| - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
545 | 570 |
| |
546 | 571 |
| |
547 | 572 |
| |
548 |
| - | |
| 573 | + | |
549 | 574 |
| |
550 | 575 |
| |
551 | 576 |
| |
| |||
558 | 583 |
| |
559 | 584 |
| |
560 | 585 |
| |
561 |
| - | |
| 586 | + | |
562 | 587 |
| |
563 | 588 |
| |
564 | 589 |
| |
| |||
567 | 592 |
| |
568 | 593 |
| |
569 | 594 |
| |
| 595 | + | |
570 | 596 |
| |
571 | 597 |
| |
572 | 598 |
| |
|
python/paddle/distributed/auto_parallel/static/engine.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/static/engine.py+1-2Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
769 | 769 |
| |
770 | 770 |
| |
771 | 771 |
| |
772 |
| - | |
773 | 772 |
| |
774 | 773 |
| |
775 | 774 |
| |
| |||
791 | 790 |
| |
792 | 791 |
| |
793 | 792 |
| |
794 |
| - | |
| 793 | + | |
795 | 794 |
| |
796 | 795 |
| |
797 | 796 |
| |
|
python/paddle/distributed/auto_parallel/static/pir_pass.py
Copy file name to clipboardExpand all lines: python/paddle/distributed/auto_parallel/static/pir_pass.py+88Lines changed: 88 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
284 | 284 |
| |
285 | 285 |
| |
286 | 286 |
| |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 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 | + | |
287 | 369 |
| |
288 | 370 |
| |
289 | 371 |
| |
| |||
298 | 380 |
| |
299 | 381 |
| |
300 | 382 |
| |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
301 | 389 |
| |
302 | 390 |
| |
303 | 391 |
| |
|
You can’t perform that action at this time.
0 commit comments