# Model hub: Can't load tokenizer using from\_pretrained

**URL:** <https://discuss.huggingface.co/t/model-hub-cant-load-tokenizer-using-from-pretrained/13359>\
**Category:** 🤗Hub\
**Created:** [January 4, 2022, 9:18am UTC](https://discuss.huggingface.co/t/model-hub-cant-load-tokenizer-using-from-pretrained/13359 "2022-01-04T09:18:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierreguillou](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierreguillou/32/19626_2.png) [@pierreguillou](https://discuss.huggingface.co/u/pierreguillou)\
**Post date:** [January 4, 2022, 9:18am UTC](https://discuss.huggingface.co/t/model-hub-cant-load-tokenizer-using-from-pretrained/13359/1 "2022-01-04T09:18:45Z")

</div>

Hi,

Until today (I just tested) my 2 NER models (BERT base and large) have been working well on the HF model hub:

- NER with BERT base: [pierreguillou/ner-bert-base-cased-pt-lenerbr · Hugging Face](https://huggingface.co/pierreguillou/ner-bert-base-cased-pt-lenerbr)
- NER with BERT large: [pierreguillou/ner-bert-large-cased-pt-lenerbr · Hugging Face](https://huggingface.co/pierreguillou/ner-bert-large-cased-pt-lenerbr)

Now, when I start a `compute` in the widget, I get this error:  
`Can't load tokenizer using from_pretrained, please update its configuration: missing field `direction` at line 1 column 85`

See as well this screenshot:

 ![nererror](https://us1.discourse-cdn.com/hellohellohello/original/2X/6/6dcb23cf5b6d550176d92bfd9619b8d9215b131f.png)

Coming from the new version of transformers?

Another point: I use these 2 models in a Spaces App and there’s no problem:

> **[Ner Bert Pt Lenerbr - a Hugging Face Space by pierreguillou](https://huggingface.co/spaces/pierreguillou/ner-bert-pt-lenerbr)**
>
> Discover amazing ML apps made by the community

Strange, no?

cc @lysandre

---

<div class="post-metadata">

**Author:** ![lysandre](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lysandre/32/20820_2.png) [@lysandre](https://discuss.huggingface.co/u/lysandre)\
**Post date:** [January 5, 2022, 7:59am UTC](https://discuss.huggingface.co/t/model-hub-cant-load-tokenizer-using-from-pretrained/13359/2 "2022-01-05T07:59:54Z")

</div>

Hey @pierreguillou, if I’m not mistaken these were temporary errors as I can click on “compute” without any issues.

Does it work for you too? Really cool models, by the way!

---

<div class="post-metadata">

**Author:** ![pierreguillou](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierreguillou/32/19626_2.png) [@pierreguillou](https://discuss.huggingface.co/u/pierreguillou)\
**Post date:** [January 5, 2022, 9:34am UTC](https://discuss.huggingface.co/t/model-hub-cant-load-tokenizer-using-from-pretrained/13359/3 "2022-01-05T09:34:28Z")

</div>

Yes, it works well now. Thank you @lysandre.
