-
Notifications
You must be signed in to change notification settings - Fork 357
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
AttributeError: 'TFBertEmbeddings' object has no attribute 'word_embeddings' #522
Comments
I believe the issue is your transformers version. We pin to 4.1.1 for our demos. See https://github.com/PAIR-code/lit/blob/main/environment.yml for the conda environment and package versions we run these demos with. |
Yes, I was hoping it wasn't that. So now my issue is different. I'm pretty new with this stuff, so I don't know if this can be solved... This is my model spec:
And this is my dataset specs,
And the data can be downloaded from here http://tass.sepln.org/2020/?page_id=74 , it's the first task :) Thank you for the quick answer! |
Thanks for all the info. So seems like you'll need to use a newer transformers version and update our glue_models.py code to work with that updated version. Per AndreasMadsen/python-textualheatmap#5, you could try replacing ".word_embeddings" with ".weights" on line 339 in glue_models.py and see if that helps (though there may be other incompatibilities once you get beyond that) |
Tried that advice, but ran into some unaligned vectors error afterwards:
Are plan to update the dependencies? |
Not that we pin to transformers 4.1.1 just for our demos, due to us having that same version internally as well. If you want to use LIT with your own model code as opposed to the code in our examples/ dir then you can depend on a more recent version of transformers without issue. |
I'm having this issue running the quick-start for classification and regression
python -m lit_nlp.examples.glue_demo --port=5432 --quickstart
I've tried downgrading pytorch to version 0.4.1, but then I get another error, saying BoolTensors are not defined, so i'm guessing it must be used with pytorch > 1.x.
These are my installed packages in the environment:
lit-nlp.txt
Any help will be very much appreciated!
The text was updated successfully, but these errors were encountered: