Hugging Face
Cache Commands
Manage the local Hugging Face cache. Scan for cached models, clean up unused files, and configure cache location for disk space optimization.
6 commands
Pro Tips
Run 'huggingface-cli scan-cache' regularly to identify large cached models.
Set HF_HOME environment variable to move cache to a larger disk.
Use '--delete-revisions' to remove specific versions while keeping latest.
Common Mistakes
Cache can grow to hundreds of GB - monitor disk usage regularly.
Deleting cache requires re-downloading if models are needed again.