Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR #18773: [ReduceScatterCombiner] Provide option to not combine within while loop bodies. #19139

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

copybara-service[bot]
Copy link

PR #18773: [ReduceScatterCombiner] Provide option to not combine within while loop bodies.

Imported from GitHub PR #18773

Same as #18772 but for reduce-scatters. Copying from #18772

This PR provides an option to disable combining reduce-scatters inside while loop bodies.
It is set to true, so existing behavior is maintained.

This option is provided as some strategies for FSDP may only want to coalesce collectives that are outside of a while loop. Collectives inside while loop are not coalesced, as we assume there is sufficient compute to overlap.
Copybara import of the project:

--
9a7d247 by ptoulme-aws [email protected]:

[ReduceScatterCombiner] Provide option to not combine within while loop bodies.

Merging this change closes #18773

FUTURE_COPYBARA_INTEGRATE_REVIEW=#18773 from ptoulme-aws:reduce_scatter_combine_while 9a7d247

@copybara-service copybara-service bot force-pushed the test_694004933 branch 5 times, most recently from 00f33b9 to 1063fb5 Compare November 8, 2024 18:00
…in while loop bodies.

Imported from GitHub PR #18773

Same as #18772 but for reduce-scatters. Copying from #18772

This PR provides an option to disable combining reduce-scatters inside while loop bodies.
It is set to true, so existing behavior is maintained.

This option is provided as some strategies for FSDP may only want to coalesce collectives that are outside of a while loop. Collectives inside while loop are not coalesced, as we assume there is sufficient compute to overlap.
Copybara import of the project:

--
9a7d247 by ptoulme-aws <[email protected]>:

[ReduceScatterCombiner] Provide option to not combine within while loop bodies.

Merging this change closes #18773

COPYBARA_INTEGRATE_REVIEW=#18773 from ptoulme-aws:reduce_scatter_combine_while 9a7d247
PiperOrigin-RevId: 694566690
@copybara-service copybara-service bot merged commit 22c2e04 into main Nov 8, 2024
@copybara-service copybara-service bot deleted the test_694004933 branch November 8, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant