adymaharana / curriculum_learning

9 stars 3 forks source link

AttributeError for gridsearch-script #1

Open LucWeber opened 1 year ago

LucWeber commented 1 year ago

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 1 year ago

I fixed it by using: from transformers import (BERT_PRETRAINED_CONFIG_ARCHIVE_MAP, XLNET_PRETRAINED_CONFIG_ARCHIVE_MAP, ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP) instead