What is the .cache/huggingface folder on my Mac?

It belongs to Hugging Face tools (transformers, diffusers, hf CLI). Here’s what’s inside and the right way to deal with it.

Short answer

~/.cache/huggingface/hub stores models and datasets downloaded by Python libraries like transformers and diffusers. Everything there can be downloaded again. The Hugging Face CLI lists and removes cached models for you; run hf cache --help to see the commands in your version.

Location: ~/.cache/huggingface/hub

What’s inside

  • models--publisher--name folders
  • datasets
  • shared blobs
TidyMac label: Your choice. You downloaded this on purpose. Remove it if you don’t use it; you can download it again.

See and clean it

hf cache --help

The cache commands were renamed between versions, so check the help output. Older installs use huggingface-cli scan-cache and huggingface-cli delete-cache.

Find every folder like this on your Mac

TidyMac lists big folders outside its library, checks which app owns each one and whether that app is still installed, and explains it.

Frequently asked questions

Can I delete .cache/huggingface?

Your choice: You downloaded this on purpose. Remove it if you don’t use it; you can download it again. ~/.cache/huggingface/hub stores models and datasets downloaded by Python libraries like transformers and diffusers. Everything there can be downloaded again. The Hugging Face CLI lists and removes cached models for you; run hf cache --help to see the commands in your version.

Where is .cache/huggingface on my Mac?

~/.cache/huggingface/hub. In Finder choose Go › Go to Folder and paste the path.

How big does .cache/huggingface get?

Usually 2 – 200 GB.

Keep reading