Models take all ubuntu free space

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!

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

1 Like

thanks!
wow, 180GB got free.

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.

typically distill models also outperform full models in resource constrained environments

1 Like