-
Notifications
You must be signed in to change notification settings - Fork 114
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
TypeError: 'NoneType' object is not subscriptable #75
Comments
Me too... python 3.8 on Linux. Maybe this is related to the latest release? It worked fine before. |
As a quick fix for this. On version 0.5.0, I was able to get around this error by commenting out line Replace: I'm unsure if this fix will have repercussions later down the line, however, for the time being it seems to be working. |
thank you, this work for me as well! |
As a workaround, the
(Other versions between the latest release and |
Hey all, thanks for raising this and good to see there's a workaround! We will look into this asap! |
Hey everyone, pinned the transformers version to 4.22.1 as a quick fix for now as we investigate this problem further, everything should hopefully work as expected if you reinstall the package/upgrade the transformers version! |
It is working for me with version 4.24.0, the next version however raises this error. However, it's not clear for me if this is an expected behavior on tranformers' side or if they introduced a bug |
It is apparently a bug on transformers side, and it should be fixed in next release with this PR: huggingface/transformers#21542 If you need a solution right now, you can also install transformers from their main branch directly, the PR is merged already |
I am having this error while trying to load the model.
pip install information:
additional information
python 3.9.13 haa1d7c7_2
on linux
The text was updated successfully, but these errors were encountered: