You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It gives an error while loading gpt2
File "/home/debanjan/anaconda3/envs/py_3/lib/python3.7/site-packages/lm_scorer/models/gpt2.py", line 84, in _supported_model_names
return GPT2LMHeadModel.pretrained_model_archive_map.keys()
AttributeError: type object 'GPT2LMHeadModel' has no attribute 'pretrained_model_archive_map'
can you kindly check?
The text was updated successfully, but these errors were encountered:
I did a quick fix, just import GPT2_PRETRAINED_CONFIG_ARCHIVE_MAP and return GPT2_PRETRAINED_CONFIG_ARCHIVE_MAP.keys() instead of GPT2LMHeadModel.pretrained_model_archive_map.keys()
It gives an error while loading gpt2
File "/home/debanjan/anaconda3/envs/py_3/lib/python3.7/site-packages/lm_scorer/models/gpt2.py", line 84, in _supported_model_names
return GPT2LMHeadModel.pretrained_model_archive_map.keys()
AttributeError: type object 'GPT2LMHeadModel' has no attribute 'pretrained_model_archive_map'
can you kindly check?
The text was updated successfully, but these errors were encountered: