Cannot import newly uploaded model
Hi, I imported a new model athttps://huggingface.co/microsoft/SportsBERTbut I can’t import the model. I used the below commandsfrom transformers import AutoTokenizer, AutoModel, BertTokenizer, BertModeltokenizerinp = 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 fileKindly let me know how I could resolve this issue.
2020-11-20T13:38:52Z
prithvisrinivasan:from transformers import AutoTokenizer, AutoModel, BertTokenizer, BertModeltokenizerinp = AutoTokenizer.from_pretrained(“microsoft/SportsBERT”)modelinp = AutoModel.from_pretrained(“microsoft/SportsBERT”)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 ?