Expand description
HuggingFace cache directory resolution, model family scanning, and disk usage.
hf_cache_dir() locates the local HF cache. list_cached_families()
scans downloaded models and groups them by model_type.
cache_summary() provides per-repo size totals, and
cache_repo_usage() returns per-file disk usage for a single repo.
Structs§
- Cache
File Usage - Per-file disk usage entry within a cached repository.
- Cached
Model Summary - Summary of a single cached model (local-only, no API calls).
- Repo
Status - Cache status report for a repository.
Enums§
- File
Status - Status of a single file in the cache.
Functions§
- cache_
repo_ usage - Returns per-file disk usage for a specific cached repository.
- cache_
summary - Scans the entire HF cache and returns a summary for each cached model.
- hf_
cache_ dir - Returns the
HuggingFaceHub cache directory. - list_
cached_ families - Scans the local HF cache for downloaded models and groups them by
model_type. - read_
ref - Reads the commit hash from a refs file, if it exists.
- repo_
status - Inspects the local cache for a repository and compares against the remote file list.