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

AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map' #4

Open
huajng opened this issue Nov 29, 2021 · 6 comments

Comments

@huajng
Copy link

huajng commented Nov 29, 2021

AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map',
and how to solve it?

@JetRunner
Copy link
Owner

Please use an earlier version of HF Transformer.

@JetRunner
Copy link
Owner

I don't remember what the version is exactly. Maybe before 3.x?

@huajng
Copy link
Author

huajng commented Nov 30, 2021

I don't remember what the version is exactly. Maybe before 3.x?

OK, I use transformers==2.5.1

@hemangjoshi37a
Copy link

If anyone has already solved the issue please let me know. I am having same issue.
https://hjlabs.in

@hemangjoshi37a
Copy link

$from transformers import ALBERT_PRETRAINED_CONFIG_ARCHIVE_MAP
this solved my issue. Thank you everyone for support. you are great.
https://hjlabs.in

@pranavbhat12
Copy link

I am also facing the same error.Any workaround available for this?

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

4 participants