-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix loading sharded checkpoints from subfolder #8798
Conversation
currently we are not able to load shared checkpoints from a subfolder, e.g. cannot load lavender #8796 (comment) I just added a commit to make it work, feel free to take this over and make it better @sayakpaul |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
@@ -221,7 +221,7 @@ def _fetch_index_file( | |||
local_files_only=local_files_only, | |||
token=token, | |||
revision=revision, | |||
subfolder=subfolder, | |||
subfolder=None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why should this be None
, though?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is because subfolder
is already determined here:
index_file_in_repo = Path( |
@yiyixuxu thanks! I added two commits:
I think the PR should be good to merge after you review it. |
* fix load sharded checkpoints from subfolder{ * style * os.path.join * add a small test --------- Co-authored-by: sayakpaul <spsayakpaul@gmail.com>
needed for this #8796