-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Avoid passing process group to enable FSDP's hybrid-shard #18583
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -203,12 +202,9 @@ def num_processes(self) -> int: | |||
|
|||
@property | |||
def process_group(self) -> Optional[ProcessGroup]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest removing this property, since we don't use it and it'll be a problem if we ever finish the collectives refactor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's easy to avoid the breaking change here the way I did, and so I would like to avoid it unless absolutely necessary. If we need to remove it in the future, we can always do it with the justification needed at that time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you still think the property should be removed, could you make the PR for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #18592
What does this PR do?
Alternative approach to #18562.
Fixes #18552
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--18583.org.readthedocs.build/en/18583/
cc @Borda @carmocca @justusschock @awaelchli