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
Error Loading Model RuntimeError: Error(s) in loading state_dict for GPT2LMHeadModel: #3
Comments
install transformers = 2.9.0 |
Hey I am having the same problem, but at line 96, where it loads from the fluency_news_bs32.bin. I tried multiple versions of the transformer, 2.9.0, 2.8.0, 2.9.1. It didn't resolve the issue. Any idea why? Thank you. |
Hi, I can confirm that the issue persists even with multiple version of transformers. |
I'm also facing the same issue. I've also tried multiple version (from 2.8.0 - 3.2.0) of transformers but it seems like changing version won't help. |
Add
Since there are no such keys in state_dict, just let the model ignore it. |
I solved the issue by adding strict=False as a parameter. Thanks man |
@s103321048 thanks man, it solved my issue |
The text was updated successfully, but these errors were encountered: