AttributeError for gridsearch-script
Opened this issue · 1 comments
LucWeber commented
Hey,
Using the recommended version of transformers (4.3.2), I get an AttributeError for gridsearch-script (roberta/grid_search_hyperparams_roberta_cosmosqa.py):
AttributeError: type object 'BertConfig' has no attribute 'pretrained_config_archive_map'
I think this should be resolvable by downgrading the transformers package (?)
Best,
Lucas
LucWeber commented
I fixed it by using:
from transformers import (BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, XLNET_PRETRAINED_CONFIG_ARCHIVE_MAP, ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP)
instead