# Uploading a large trained model

**URL:** <https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473>\
**Category:** Spaces\
**Created:** [January 24, 2024, 8:52pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473 "2024-01-24T20:52:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pjsturtevant](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pjsturtevant/32/23284_2.png) [@pjsturtevant](https://discuss.huggingface.co/u/pjsturtevant)\
**Post date:** [January 24, 2024, 8:52pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/1 "2024-01-24T20:52:13Z")

</div>

Hello! I am building a streamlit space that assess journal entries based upon Stoic virtues. I trained and saved my model to my desktop repositiry, but it is big 268 MB and compressed Brotli 37MB. It is too large to push from my desktop repository using the Github Desktop App to my space. The space won’t function without the trained model. Will signing up for the PRO (9 dollar a month) plan on Hugging Face allow me to upload my large trained model?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 24, 2024, 9:30pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/2 "2024-01-24T21:30:21Z")

</div>

Hi @pjsturtevant,  
Yes, you can upload models to Hugging Face; at present, hosting the models is free of charge.

> **[Uploading models](https://huggingface.co/docs/hub/models-uploading)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![pjsturtevant](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pjsturtevant/32/23284_2.png) [@pjsturtevant](https://discuss.huggingface.co/u/pjsturtevant)\
**Post date:** [January 24, 2024, 10:10pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/3 "2024-01-24T22:10:47Z")

</div>

Thanks for the reply! My issue is the size of the trained model. It is 268 MB. When I try to push it from the repository, I get an error message that it is too large. I was wondering if opting into the Pro plan would allow me to push a trained model of that size to the space.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 24, 2024, 11:06pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/4 "2024-01-24T23:06:10Z")

</div>

The file size is not the limitation; there’s likely another underlying issue.

For instance, multiple ~9GB and ~5GB files on this model repo

> **[mistralai/Mistral-7B-Instruct-v0.1 at main](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1/tree/main)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![pjsturtevant](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pjsturtevant/32/23284_2.png) [@pjsturtevant](https://discuss.huggingface.co/u/pjsturtevant)\
**Post date:** [January 24, 2024, 11:39pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/5 "2024-01-24T23:39:02Z")

</div>

Thank you for that angle. I will investigate that tomorrow.

---

<div class="post-metadata">

**Author:** ![pjsturtevant](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pjsturtevant/32/23284_2.png) [@pjsturtevant](https://discuss.huggingface.co/u/pjsturtevant)\
**Post date:** [January 25, 2024, 12:42pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/6 "2024-01-25T12:42:13Z")

</div>

Here is the message that I am getting:

 ![Screen Shot 2024-01-25 at 7.37.36 AM.png](https://us1.discourse-cdn.com/hellohellohello/original/3X/9/9/99f32711d7736ade5779630e8a9aac7af43a14fd.png)

---

<div class="post-metadata">

**Author:** ![Kallz02](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/kallz02/32/26993_2.png) [@Kallz02](https://discuss.huggingface.co/u/Kallz02)\
**Post date:** [May 15, 2024, 1:55pm UTC](https://discuss.huggingface.co/t/uploading-a-large-trained-model/70473/7 "2024-05-15T13:55:17Z")

</div>

im not sure if your problem is solved but you can use git lfs for larger files

do this in your local huggingface repo

```auto
git lfs install
git lfs track "Name of you model.tf"
git add .
git commit -m "your message here"

```
