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

manager: expose participating_rank #94

Merged
merged 1 commit into from
Feb 3, 2025
Merged

Conversation

d4l3k
Copy link
Member

@d4l3k d4l3k commented Feb 3, 2025

This exposes the participating_rank() field so users of Manager can figure out which replica rank they currently are.

This allows for things like only having the rank 0 replica group checkpoint for efficiency reasons.

Test plan:

pytest torchft/manager_test.py

@d4l3k d4l3k requested a review from fegin February 3, 2025 19:43
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Feb 3, 2025
@d4l3k d4l3k merged commit 87290f5 into main Feb 3, 2025
6 checks passed
@d4l3k d4l3k deleted the d4l3k/participanting_rank branch February 3, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants