-
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 even after transformer==2.9.1 #35
Comments
Having the same error too :) |
Hey, still waiting on a solution and trying different things. You wanna have a discussion about AI, and the future? |
Having the same issues, do you have the solution for it yet? |
I am having the exact same issue. |
was anyone able to resolve this issue yet? |
No luck on my side :( I think it might be related to #36 (running on macs M1). Also tried running it via docker without luck too. |
I confirm that set |
@AryanGold can you give informations about you current setup (OS etc)? |
My Host: Ubuntu 20.04, Docker version 20.10.22 I think important to run this repository in isolated Docker container or Python Virtual Environment. Also if you change some version in requirements.txt then need reinstall all pip packages without any cache etc. I also attache sample of my Docker file. |
I also ran into the same error and using |
Make sure that your python version is 3.7.3 and the following package is transformers==2.9.1. |
replace
with
|
I get the following error after trying to run
Error:
I have tried
transformers==2.9.1
in requirements.txt, still receiving the same error.Thanks for your help.
The text was updated successfully, but these errors were encountered: