Skip to content

Conversation

@SunMarc
Copy link
Member

@SunMarc SunMarc commented Aug 2, 2024

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

@SunMarc SunMarc requested a review from sayakpaul August 2, 2024 12:50
@HuggingFaceDocBuilderDev

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.

Copy link
Member

@sayakpaul sayakpaul left a 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.

@sayakpaul
Copy link
Member

@yiyixuxu could you give this another look? Important to get in I believe.

@sayakpaul sayakpaul requested a review from yiyixuxu August 6, 2024 17:22
Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thank you @SunMarc !

@yiyixuxu yiyixuxu merged commit e432560 into main Aug 6, 2024
@yiyixuxu yiyixuxu deleted the shard-loading-variant branch August 6, 2024 23:38
sayakpaul added a commit that referenced this pull request Dec 23, 2024
* Fix loading sharded checkpoint when we have variant

* add test

* remote print

---------

Co-authored-by: Sayak Paul <[email protected]>
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.

Unable to load sharded checkpoints containing variants

5 participants