-
Notifications
You must be signed in to change notification settings - Fork 549
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
RunTimeError: Error(s) in loading state_dict for RobertaForSequenceClassification #28
Comments
Hi, it's our bad that we didn't properly specify the dependency versions. Could you try with |
Thank you @jongwook ! Changing, in the |
Following your advice I installed
|
@BelowzeroA Did you manage to resolve this? The fix worked for me on Google Colab, but I encountered your issue when I tried the same fix on a fresh anaconda environment on a Windows 10 device. Edit: scratch that, I had a typo in the component name. Fixing that resolved my problem. |
Made it work with Python 3.8, transformers 2.9.1, and tokenizers 0.7.0. FYI I'm using poetry and had to run the following:
My
|
I am also facing the same issue can someone please kindly address this. |
transformers==4.24.0 and tokenizers==0.13.2 solves the issue. |
I get the following error after trying to run
Error:
I'm not sure if there was a change between the google version of the Roberta weights or the azure version of the weights.
Thanks for the help!
The text was updated successfully, but these errors were encountered: