Skip to content
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

[Dependency bug]: Transformers 4.31.0 not supported (Unexpected key(s) in state_dict: "language_encoder.embeddings.position_ids".) #12

Open
ZnS-oscar opened this issue Oct 24, 2023 · 0 comments

Comments

@ZnS-oscar
Copy link

To reproduce the bug(Bug description):
Use the pretrained weight of bert in thispage, and run pip install transformers , which will download the newest version of transformers(version 4.34.1). when trying to test the model, the Error occurs: RuntimeError: Error(s) in loading state_dict for ReferIt3DNet_transformer: Unexpected key(s) in state_dict: "language_encoder.embeddings.position_ids".
Bug explanation:
Because the pretrained weight of bert does not support the newest version of transformers(version 4.34.1) (this issue is written on 2023-Oct-24)
Solution:
pip install transformers==4.30.2 to go back to an early version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant