# Availability of models pushed to Hub

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Favailability-of-models-pushed-to-hub%2F10200%3E%5C
**Category:** 🤗Hub\
**Created:** [September 22, 2021, 12:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Favailability-of-models-pushed-to-hub%2F10200 "2021-09-22T00:53:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zyl1024](https://avatars.discourse-cdn.com/v4/letter/z/22d042/32.png) [@zyl1024](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fzyl1024)%5C
**Post date:** [September 22, 2021, 12:53am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Favailability-of-models-pushed-to-hub%2F10200%2F1 "2021-09-22T00:53:59Z")

</div>

I pushed my first model to the hub using `push_to_hub` function around an hour ago. I can see it up on the Hub website at [https://huggingface.co/zyl1024/bert-base-cased-finetuned-qqp](https://huggingface.co/zyl1024/bert-base-cased-finetuned-qqp). However, when I try to use it in transformer, by following the instruction on that page,

```auto
from transformers import AutoTokenizer, AutoModelForSequenceClassification  
tokenizer = AutoTokenizer.from_pretrained("zyl1024/bert-base-cased-finetuned-qqp")
model = AutoModelForSequenceClassification.from_pretrained("zyl1024/bert-base-cased-finetuned-qqp")

```

I get an error saying

```auto
OSError: Can't load tokenizer for 'zyl1024/bert-base-cased-finetuned-qqp'. Make sure that:
- 'zyl1024/bert-base-cased-finetuned-qqp' is a correct model identifier listed on 'https://huggingface.co/models'
- or 'zyl1024/bert-base-cased-finetuned-qqp' is the correct path to a directory containing relevant tokenizer files

```

Do I need do something else or just wait for a while (if so, how long?) for it to become available for download?

---

<div class="post-metadata">

**Author:** ![nielsr](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nielsr/32/39617_2.png) [@nielsr](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnielsr)%5C
**Post date:** [September 22, 2021, 9:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Favailability-of-models-pushed-to-hub%2F10200%2F2 "2021-09-22T09:47:03Z")

</div>

> Do I need do something else or just wait for a while (if so, how long?) for it to become available for download?

No, normally it should be directly accessible.

However, I see why it doesn’t work: your model repository only contains modeling files (`config.json` and `pytorch_model.bin`), but no tokenizer files (such as `vocab.txt`). Hence, only loading the model will work. You can easily save the files of a tokenizer as follows:

`tokenizer.save_pretrained("path_to_directory")`

You can then upload those files to your repo on the hub.

---

<div class="post-metadata">

**Author:** ![zyl1024](https://avatars.discourse-cdn.com/v4/letter/z/22d042/32.png) [@zyl1024](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fzyl1024)%5C
**Post date:** [September 22, 2021, 2:13pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Favailability-of-models-pushed-to-hub%2F10200%2F3 "2021-09-22T14:13:13Z")

</div>

Ah yes. I thought the model pushing takes care of the tokenizer automatically. After I ran `tokenizer.push_to_hub()`, it works perfectly. Thanks very much!
