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

Feat call maybe reinit diloco #37

Merged
merged 2 commits into from
Oct 4, 2024
Merged

Conversation

samsja
Copy link
Collaborator

@samsja samsja commented Oct 4, 2024

No description provided.

@samsja samsja marked this pull request as ready for review October 4, 2024 04:16
@samsja samsja requested a review from Jackmin801 October 4, 2024 04:17
Copy link
Member

@Jackmin801 Jackmin801 left a comment

Choose a reason for hiding this comment

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

nice! lfgtm!

Comment on lines +273 to +277

if self.world_info.global_world_size == 1:
# no op if we only have one node
return

Copy link
Member

Choose a reason for hiding this comment

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

There's an edge case that we probably dont care about rn. Which is what if the starting number of nodes is 1? I think atm its fine to not cover this case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yes very good point. Nice to keep in mind ideed

@samsja samsja merged commit be1f8ac into main Oct 4, 2024
1 check passed
samsja pushed a commit that referenced this pull request Jan 10, 2025
Summary: Pull Request resolved: facebookresearch/optimizers#37

Reviewed By: anana10c

Differential Revision: D65546537

Pulled By: tsunghsienlee

fbshipit-source-id: 0eaf18d0c732101d5634c693e45fd5511e349fa5
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.

2 participants