How to List the Models in Your Hugging Face Cache with hf cache ls
· 6 min read
Every model, dataset and file you download from the Hugging Face Hub is kept in a cache on your computer, so the next run doesn't download it again. Over time that cache can grow to many gigabytes. hf cache ls lists what's in it. This guide downloads two small files and lists them, with huggingface_hub 2.5.0.
