Cannot import newly uploaded model

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.

Which version of transformers are you using ? With 3.5.0 The default place for models and url resolving was changed (to enable faster iteration on you models which are now git repositories with LFS for the models). If you used an earlier version, then we backport the models but with a batching job that runs every hour. It could explain the behavior you saw.

Is that it ?