# Push trained model to private repo

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-trained-model-to-private-repo%2F19396%3E%5C
**Category:** 🤗Transformers\
**Created:** [June 20, 2022, 8:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-trained-model-to-private-repo%2F19396 "2022-06-20T20:53:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![carted-ml](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/carted-ml/32/4381_2.png) [@carted-ml](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcarted-ml)%5C
**Post date:** [June 20, 2022, 8:53pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-trained-model-to-private-repo%2F19396%2F1 "2022-06-20T20:53:40Z")

</div>

Hi,

We are able to push a trained model and the trainer to HuggingFace Hub. What we would want to know, is, if there is a way to make the push to a private repo directly.

Thanks!

---

<div class="post-metadata">

**Author:** ![sgugger](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/sgugger/32/2291_2.png) [@sgugger](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsgugger)%5C
**Post date:** [June 21, 2022, 1:31pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-trained-model-to-private-repo%2F19396%2F2 "2022-06-21T13:31:56Z")

</div>

Creating the repo in private mode via the Trainer is not supported, but you can create the repo manually before launching the training in private mode.

---

<div class="post-metadata">

**Author:** ![carted-ml](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/carted-ml/32/4381_2.png) [@carted-ml](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcarted-ml)%5C
**Post date:** [June 22, 2022, 1:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-trained-model-to-private-repo%2F19396%2F3 "2022-06-22T13:25:45Z")

</div>

Thank you for the suggestion! Appreciate it 🙂

---

<div class="post-metadata">

**Author:** ![hzSSS](https://avatars.discourse-cdn.com/v4/letter/h/b2d939/32.png) [@hzSSS](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FhzSSS)%5C
**Post date:** [April 5, 2023, 4:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpush-trained-model-to-private-repo%2F19396%2F4 "2023-04-05T16:33:31Z")

</div>

Could we know the motivation of not allowing this?

Why is creating private repo only possible with models but not with the Trainer?
