Skip to content

[simplefsdp auto-bucketing] ir node runtime estimation - #157572

Closed
ruisizhang123 wants to merge 19 commits into
gh/ruisizhang123/1/basefrom
gh/ruisizhang123/1/head
Closed

ruisizhang123 wants to merge 19 commits into
gh/ruisizhang123/1/basefrom
gh/ruisizhang123/1/head

Conversation

@ruisizhang123

@ruisizhang123 ruisizhang123 commented Jul 3, 2025 •

Copy link
Copy Markdown
Contributor

Computation Estimation:

  • BaseSchedulerNode/FusedSchedulerNode: Get the generated triton code and use do_bench mode to benchmark the runtime.
  • ExternKernelSchedulerNode: Realize faketensor into realtensor, and log the cuda event time.

Communication Estimation:

  • NCCL estimation: estimate communication using NCCL's ncclGroupSimulateEnd API from this PR.
  • Profiling-based estimation: Realize faketensor into realtensor, and log the cuda event time for performing the communication.

Note: By default, I use Profiling-based estimation to estimate communication. The reason is it gives better estimation performance in multi-node settings.

At the end, it aggregates the estimated runtime from all ranks, and take the median runtime as the final estimated results.

Stack from ghstack (oldest at bottom):

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben

[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Jul 3, 2025
ghstack-source-id: 31163dc
Pull-Request: #157572
@pytorch-bot

pytorch-bot Bot commented Jul 3, 2025 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/157572

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit dc5f2bc with merge base 5dad5b4 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@github-actions

github-actions Bot commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@ruisizhang123 ruisizhang123 changed the title add estimation code [simplefsdp auto-bucketing] ir node runtime estimation Jul 3, 2025
@ruisizhang123
ruisizhang123 marked this pull request as draft July 3, 2025 17:26
[ghstack-poisoned]
[ghstack-poisoned]
ruisizhang123 added a commit that referenced this pull request Jul 7, 2025
ghstack-source-id: d7b6a66
Pull-Request: #157572
process_group = c10d.distributed_c10d._get_default_group()

tensor_input = create_real_tensor(inputs.data.get_size(), inputs.data.get_dtype(), inputs.data.get_device())
tensor_output = create_real_tensor(kernel.layout.size, kernel.layout.dtype, kernel.layout.device)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one downside to allocating real tensors at compile time to do the comms estimation is that if we are already close to peak memory at the time that we do the estimation, we risk compile causing an OOM. IIRC we've seen similar problems before with inductor, since it allocates tensors to do autotuning.

Mostly just calling this out as a potential downside. Although maybe this is still the best option, given that your work showed this is noticeably more accurate than other forms of comms estimation? Runtime PGO is another option but it is a much bigger lift to set up. Or just brainstorming: maybe we can also avoid these allocations being problematic by either offloading other tensors to CPU, or e.g. doing the runtime estimation with small tensor shapes, and having a way to accurately estimate the runtime for larger shapes.

@ruisizhang123 ruisizhang123 Jul 7, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tensors are deleted immediately in L126 with del tensor_input, tensor_output. Do you think there might be potential memory overhead even after they are deleted? 👀

end_evt.record()
end_evt.synchronize()

torch.cuda.synchronize()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: doing cuda sync / event sync should not be necessary to get timings from the event. I think i'd suggest just removing them.

@ruisizhang123 ruisizhang123 Jul 8, 2025 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need end_evt.synchronize() to ensure the end_event has finished before calculating the runtime in start_evt.elapsed_time(end_evt). Otherwise, it will throw error. I think torch.cuda.synchronize() is not necessary here tho.

[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 2, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 2, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 3, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 3, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 3, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 4, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 8, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta ezyang msaroufim voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 8, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta ezyang msaroufim voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 8, 2025
…stimator; mm only benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta ezyang msaroufim voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
IvanKobzarev added a commit that referenced this pull request Sep 8, 2025
…y benchmark mode"



During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`




cc H-Huang awgu wanchaol fegin fduwjj wz337 wconstab d4l3k pragupta ezyang msaroufim voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx ipiszy chenyang78 kadeng muchulee8 amjames chauhang aakhundov coconutruben

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)

[ghstack-poisoned]
pytorchmergebot pushed a commit that referenced this pull request Sep 8, 2025
… mode (#161405)

During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp #157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)
Pull Request resolved: #161405
Approved by: https://github.com/eellison
markc-614 pushed a commit to markc-614/pytorch that referenced this pull request Sep 17, 2025
… mode (pytorch#161405)

During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp pytorch#157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)
Pull Request resolved: pytorch#161405
Approved by: https://github.com/eellison
mansiag05 pushed a commit to mansiag05/pytorch that referenced this pull request Sep 22, 2025
… mode (pytorch#161405)

During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp pytorch#157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)
Pull Request resolved: pytorch#161405
Approved by: https://github.com/eellison
cleonard530 pushed a commit to cleonard530/pytorch that referenced this pull request Sep 22, 2025
… mode (pytorch#161405)

During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp pytorch#157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)
Pull Request resolved: pytorch#161405
Approved by: https://github.com/eellison
dsashidh pushed a commit to dsashidh/pytorch that referenced this pull request Sep 26, 2025
… mode (pytorch#161405)

During comms reordering , sink wait iterative observed previous runtime estimations pretty off for collectives and mms.

Adding optional usage of:
- c10d.time_estimator for collectives, which is based on NCCL estimator

Benchmark mode only for matmuls, as they are highly dependent on mm backend

- The logic mostly copied from Ruisi's PRs for inductor simple_fsdp pytorch#157572

This estimations corrections are in default `BaseSchedulerNode.estimate_runtime()`

Differential Revision: [D81152294](https://our.internmc.facebook.com/intern/diff/D81152294)
Pull Request resolved: pytorch#161405
Approved by: https://github.com/eellison
@github-actions

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label Oct 19, 2025
Khanaksahu pushed a commit to Khanaksahu/pytorch that referenced this pull request Nov 17, 2025
ghstack-source-id: 2be1aac
Pull-Request: pytorch/pytorch#157572
@github-actions github-actions Bot closed this Nov 18, 2025
@github-actions
github-actions Bot deleted the gh/ruisizhang123/1/head branch December 19, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants