# Models take all ubuntu free space

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodels-take-all-ubuntu-free-space%2F6134%3E%5C
**Category:** Beginners\
**Created:** [May 12, 2021, 12:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodels-take-all-ubuntu-free-space%2F6134 "2021-05-12T12:55:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srulikbdd](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Srulikbdd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSrulikbdd)%5C
**Post date:** [May 12, 2021, 12:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodels-take-all-ubuntu-free-space%2F6134%2F1 "2021-05-12T12:55:32Z")

</div>

I use ubuntu 20.04, and it seems that after I’m using some models, the free space is just disappear. (250 GB)  
where does the models cache are saved to?  
is there some command to clean them?

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:** [May 12, 2021, 12:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodels-take-all-ubuntu-free-space%2F6134%2F2 "2021-05-12T12:59:48Z")

</div>

Models are cached in the `~/.cache/huggingface/transformers` directory (from your home directory)

---

<div class="post-metadata">

**Author:** ![Srulikbdd](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Srulikbdd](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FSrulikbdd)%5C
**Post date:** [May 13, 2021, 6:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodels-take-all-ubuntu-free-space%2F6134%2F3 "2021-05-13T06:55:01Z")

</div>

thanks!  
wow, 180GB got free.

---

<div class="post-metadata">

**Author:** ![raveenb](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/raveenb/32/987_2.png) [@raveenb](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fraveenb)%5C
**Post date:** [May 17, 2021, 11:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodels-take-all-ubuntu-free-space%2F6134%2F4 "2021-05-17T11:40:40Z")

</div>

If its not strictly required, try the distill versions of models, they are typically smaller and you can use them interchangeably in **most cases.**

You can select for them in the models’ page like this [Hugging Face – The AI community building the future.](https://huggingface.co/models?search=distil)

typically distill models also outperform full models in resource constrained environments
