-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Loading sharded model in tf
from pytorch checkpoints
#17537
Comments
Indeed, nice catch! Putting @sgugger in the loop |
Simple reproducer: from transformers import TFBertModel
model = TFBertModel.from_pretrained("sgugger/bert-sharded") |
Putting it on my TODO (might take a few weeks as I have more urgent items, and we don't have a good solution on the TF side for large models right now anyway). |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Fixing this 😄 |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
Who can help?
@LysandreJik I am not sure who to ping on that 😅
Loading a big model from the hub in tensorflow is impossible if the model is sharded.
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
The following script has to be used in order to convert the weights:
Expected behavior
The text was updated successfully, but these errors were encountered: