Hi, I imported a new model at https://huggingface.co/microsoft/SportsBERT but I can’t import the model. I used the below commands
from transformers import AutoTokenizer, AutoModel, BertTokenizer, BertModel
tokenizerinp = AutoTokenizer.from_pretrained(“microsoft/SportsBERT”)
modelinp = AutoModel.from_pretrained(“microsoft/SportsBERT”)
and received the below error.
OSError: Can’t load config for ‘microsoft/SportsBERT’. Make sure that:
- ‘microsoft/SportsBERT’ is a correct model identifier listed on ‘https://huggingface.co/models’
- or ‘microsoft/SportsBERT’ is the correct path to a directory containing a config.json file
Kindly let me know how I could resolve this issue.