# New Model sharing and uploading is extremely slow

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnew-model-sharing-and-uploading-is-extremely-slow%2F2067%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 14, 2020, 9:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnew-model-sharing-and-uploading-is-extremely-slow%2F2067 "2020-11-14T21:34:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agemagician](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@agemagician](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fagemagician)%5C
**Post date:** [November 14, 2020, 9:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnew-model-sharing-and-uploading-is-extremely-slow%2F2067%2F1 "2020-11-14T21:34:39Z")

</div>

Hello,

The new “Model sharing and uploading” using git is a great idea.  
However, I tried to update one of my models “t5-3b” which is “11G”, and it is taking too much time for “git add --all” command.  
I had to cancel it at the end.  
This is because the nature of git for large files while calculating the diff.

Is there any solution for this problem or workaround ?

---

<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:** [November 16, 2020, 9:42am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnew-model-sharing-and-uploading-is-extremely-slow%2F2067%2F2 "2020-11-16T09:42:53Z")

</div>

To have an idea of which steps take time, you can add the following env variables to your git commands:  
`GIT_CURL_VERBOSE=1 GIT_TRACE=1`

Also make sure you actually have git-lfs activated: `git lfs install`. (We’re in the process of adding it everywhere in the documentation as it was easy to miss).

On the hashing overhead part: for me hashing (w/ sha256) a 42GB file takes 2’30sec (on a beefy computer) so the hashing overhead is not too huge, and of course gives the benefit of security/reproducibility.

And finally in your precise use case, uploading files larger than 5GB is currently not supported out of the box, though we’ll support it in the next 2-3 weeks. Issue to follow is at [https://github.com/huggingface/transformers/issues/8480#issuecomment-726731046](https://github.com/huggingface/transformers/issues/8480#issuecomment-726731046)

---

<div class="post-metadata">

**Author:** ![agemagician](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@agemagician](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fagemagician)%5C
**Post date:** [November 16, 2020, 1:14pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fnew-model-sharing-and-uploading-is-extremely-slow%2F2067%2F3 "2020-11-16T13:14:27Z")

</div>

Thanks @julien-c , the issei’s was indeed on “git lsf”. After reinstalling it, it worked much faster.
