PABEE icon indicating copy to clipboard operation
PABEE copied to clipboard

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

Open huajng opened this issue 3 years ago • 6 comments

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

huajng avatar Nov 29 '21 01:11 huajng

Please use an earlier version of HF Transformer.

JetRunner avatar Nov 29 '21 01:11 JetRunner

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

JetRunner avatar Nov 29 '21 01:11 JetRunner

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

OK, I use transformers==2.5.1

huajng avatar Nov 30 '21 05:11 huajng

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

hemangjoshi37a avatar Sep 11 '22 12:09 hemangjoshi37a

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

hemangjoshi37a avatar Sep 11 '22 12:09 hemangjoshi37a

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

pranavbhat12 avatar Jun 05 '23 11:06 pranavbhat12