Skip to content

Sharded checkpoint support #93

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

Closed
wants to merge 4 commits into from

Conversation

JimAllanson
Copy link

Description of changes:

In version 4.18.0 of Transformers, support for sharded checkpoints was added: huggingface/transformers#16343
Models using this sharded format now exist in the wild, for example in Blip2 (PyTorch) or ESM-2 (TensorFlow+PyTorch)

These models currently fail to load in the AWS Deep Learning Containers with huggingface support, as the model files are filtered out during the initial cache population stage.

This change adds support for matching model files with filenames in the sharded format, as well as the sharded model index files that list the parts.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@philschmid
Copy link
Collaborator

Hey @BaiqingL, this PR #104 should have fixed that.

@philschmid philschmid closed this Apr 29, 2024
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