Skip to main content

cache_summary

Function cache_summary 

Source
pub fn cache_summary() -> Result<Vec<CachedModelSummary>, FetchError>
Expand description

Scans the entire HF cache and returns a summary for each cached model.

This is a local-only operation (no API calls). It lists all models--* directories and counts files + sizes in each snapshot.

§Errors

Returns FetchError::Io if the cache directory cannot be read.