Skip to main content

find_cached_model

Function find_cached_model 

Source
pub fn find_cached_model(
    cache_dir: &Path,
    model_id: &str,
) -> Option<ResolvedModelSource>
Expand description

Look up model_id in the HF cache (hub/models--owner--repo/snapshots/<rev>). Returns the resolved snapshot path + detected format, or None if not cached.