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

Unshard without passing checkpointer type #603

Merged
merged 5 commits into from
May 31, 2024

Conversation

2015aroras
Copy link
Collaborator

@2015aroras 2015aroras commented May 31, 2024

The unsharding script currently requires us to pass in the checkpoint type, but this is not necessary since it can be read from config. Passing in the type has been a nuisance in the past, so this PR changes the script to default to the checkpoint type in the config. It changes the unsharder to use build_sharded_checkpointer, so that we don't need to duplicate that logic in the unsharding script.

Currently untested.

@2015aroras 2015aroras requested a review from epwalsh May 31, 2024 01:37
Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

Nice

@2015aroras
Copy link
Collaborator Author

This worked fine for a checkpoint created with the local checkpointer.

@2015aroras 2015aroras merged commit 02a8a58 into main May 31, 2024
11 of 12 checks passed
@2015aroras 2015aroras deleted the shanea/unshard-without-passing-type branch May 31, 2024 17:03
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