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

Check ckpt dir exists before checking for metadata file in legacy sharding check #2835

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

eracah
Copy link
Contributor

@eracah eracah commented Jan 11, 2024

What does this PR do?

Bug where if user misspecified load_path and it did not exist, then .metadata file would not exist and then composer would think it was legacy sharded checkpoint.

This fix checks existence of dir/prefix in object store first and then fails fast

@eracah eracah requested a review from mvpatel2000 March 6, 2024 21:40
Copy link
Contributor

@mvpatel2000 mvpatel2000 left a comment

Choose a reason for hiding this comment

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

Add a test otherwise LGTM?

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