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

extract get_latest_checkpoint_path to a single rank function #936

Closed
wants to merge 1 commit into from

Conversation

JKSenthil
Copy link
Contributor

Summary:

Context

get_latest_checkpoint_path broadcasts the path from rank 0 to other ranks. However, there may be scenario where an operation involving checkpoint read + other actions is only done on rank 0, in which case the broadcast will hang as other ranks never enter that logic

This Diff

Write a _get_latest_checkpoint_path which is torch.distributed unaware

Reviewed By: anshulverma

Differential Revision: D64282217

Summary:
# Context
`get_latest_checkpoint_path` broadcasts the path from rank 0 to other ranks. However, there may be scenario where an operation involving checkpoint read + other actions is only done on rank 0, in which case the broadcast will hang as other ranks never enter that logic

# This Diff
Write a `_get_latest_checkpoint_path` which is torch.distributed unaware

Reviewed By: anshulverma

Differential Revision: D64282217
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D64282217

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.

2 participants