# Cannot import newly uploaded model

**URL:** <https://discuss.huggingface.co/t/cannot-import-newly-uploaded-model/2140>\
**Category:** Models\
**Created:** [November 20, 2020, 1:26am UTC](https://discuss.huggingface.co/t/cannot-import-newly-uploaded-model/2140 "2020-11-20T01:26:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prithvisrinivasan](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/prithvisrinivasan/32/620_2.png) [@prithvisrinivasan](https://discuss.huggingface.co/u/prithvisrinivasan)\
**Post date:** [November 20, 2020, 1:26am UTC](https://discuss.huggingface.co/t/cannot-import-newly-uploaded-model/2140/1 "2020-11-20T01:26:06Z")

</div>

Hi, I imported a new model at [https://huggingface.co/microsoft/SportsBERT](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](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.

---

<div class="post-metadata">

**Author:** ![Narsil](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/narsil/32/40029_2.png) [@Narsil](https://discuss.huggingface.co/u/Narsil)\
**Post date:** [November 20, 2020, 1:38pm UTC](https://discuss.huggingface.co/t/cannot-import-newly-uploaded-model/2140/2 "2020-11-20T13:38:52Z")

</div>

> [@prithvisrinivasan](#):
>
> from transformers import AutoTokenizer, AutoModel, BertTokenizer, BertModel  
> tokenizerinp = 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 ?
