# How can I download my private model?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998%3E%5C
**Category:** 🤗Transformers\
**Created:** [December 29, 2020, 11:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998 "2020-12-29T23:09:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kykim](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kykim/32/2976_2.png) [@kykim](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkykim)%5C
**Post date:** [December 29, 2020, 11:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998%2F1 "2020-12-29T23:09:37Z")

</div>

I subscribe huggingface for private model repository.  
I upload my model but how can I use my model?

I can`t use it because when I use it with model name(eg, kykim/bert-kor-large) for fine-tuning, command line shows that this is not listed in [huggingface.co/models](http://huggingface.co/models).

Thanks.

---

<div class="post-metadata">

**Author:** ![valhalla](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/valhalla/32/4179_2.png) [@valhalla](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fvalhalla)%5C
**Post date:** [December 30, 2020, 8:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998%2F2 "2020-12-30T08:02:15Z")

</div>

cc @julien-c

---

<div class="post-metadata">

**Author:** ![julien-c](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/julien-c/32/41937_2.png) [@julien-c](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjulien-c)%5C
**Post date:** [December 30, 2020, 9:24am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998%2F3 "2020-12-30T09:24:53Z")

</div>

@kykim Thanks for your question/feedback, this is helpful!

Can you copy the command you’re launching here?

To instantiate a private model from `transformers` you need to add a `use_auth_token=True` param (should be mentioned when clicking the “Use in transformers” button on the model page):

```python
tokenizer = AutoTokenizer.from_pretrained("username/model_name", use_auth_token=True)

model = AutoModelForMaskedLM.from_pretrained("username/model_name", use_auth_token=True)

```

If you’re using a fine-tuning script, for now you will have to modify it to add this parameter yourself (to all the `from_pretrained()` calls).

We’ll make sure to update the code in the repo in the coming weeks too (cc @sgugger)

---

<div class="post-metadata">

**Author:** ![thomwolf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thomwolf/32/2198_2.png) [@thomwolf](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fthomwolf)%5C
**Post date:** [December 30, 2020, 10:01pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998%2F4 "2020-12-30T22:01:13Z")

</div>

> [@julien-c](#):
>
> `use_auth_token=True`

Should we try to use the auth\_token by default when the user is logged in?

---

<div class="post-metadata">

**Author:** ![kykim](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kykim/32/2976_2.png) [@kykim](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkykim)%5C
**Post date:** [January 5, 2021, 8:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-can-i-download-my-private-model%2F2998%2F5 "2021-01-05T08:01:25Z")

</div>

It works.  
I also use `AutoConfig.from_pretrained(model_name)`, which also needs `use_auth_token`.

Thanks a lot!
