[BUGFIX] Save dist_checkpointing metadata on all nodes for multi-node training#1531
Closed
Pranaykarvi wants to merge 2 commits into
Closed
[BUGFIX] Save dist_checkpointing metadata on all nodes for multi-node training#1531Pranaykarvi wants to merge 2 commits into
Pranaykarvi wants to merge 2 commits into
Conversation
|
Thanks Pranaykarvi for the quick fix and testing! I also want to learn more from Megatron team what's the design assumption about this metadata,
|
Contributor
|
Marking as stale. No activity in 60 days. |
Contributor
|
This PR was closed because it has been inactive for 7 days since being marked as stale. |
|
@sbhavani can we merge this fix? we're also running into this |
|
bump here! would also like this to be merged |
Member
|
/ok to test 9a638ba |
Member
|
/ok to test 1296a81 |
Contributor
|
Hi, thanks for the contribution. Not sure if we want to have this change, we have never experienced similar issue. |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This ensures
metadata.jsonis saved on each node (local rank 0), allowing successful checkpoint loading across all nodes.Testing
Run
dist_cp_save_load.pywithtorchrunon 2+ nodes:metadata.jsonCheckpointingExceptionoccursLoaded the disk checkpoint.Fixes #1530