-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Fix loading sharded checkpoints when we have variants #9061
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
Conversation
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. |
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.
Thank you! Just left a comment.
@yiyixuxu could you give this another look? Important to get in I believe. |
…ers into shard-loading-variant
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.
thank you @SunMarc !
* Fix loading sharded checkpoint when we have variant * add test * remote print --------- Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
What does this PR do ?
This PR fixes an issue with loading variants. We pass the
index_file
instead of the directory when we have a sharded checkpoint. Passing the directory entrust accelerate to find the right file. It will be better for the future to pass the right file directly! This enables us to load variants within a same repository.Fixes huggingface/accelerate#2946