-
Notifications
You must be signed in to change notification settings - Fork 26.2k
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
ValueError: transformers.models.auto.__spec__ is None. causing import errors #15212
Comments
Having the same issue too! Exact same reproducible code + transformers version. |
Same issue with |
I have the same issue :( |
Installing |
Seems like this PR needs to be copied for this line of code. |
On G.Colab I had the same issue with Solved by installing Thank you |
Environment info
transformers
version: 4.15.0Who can help
@LysandreJik
Information
Hello, this code was working last week but today I am getting a 'ValueError: transformers.models.auto.spec is None' error which is causing errors when trying to import other Libraries. I noted a similar issue #12904 but this has been resolved and closed last year.
Model I am using (Bert, XLNet ...): BERT
The problem arises when using: Transformers
My code:
The Output:
To reproduce
Steps to reproduce the behavior:
Expected behavior
This code ran perfectly and all Libraries were imported last week. I made no changes to this code since but it produced the above error today.
The text was updated successfully, but these errors were encountered: