Skip to main content

is_model_cached

Function is_model_cached 

Source
pub fn is_model_cached(model: EmbeddingModel, cache_dir: &Path) -> bool
Expand description

Check if model weights exist in the HuggingFace cache directory.

Uses the models--{org}--{repo} folder naming convention that hf-hub employs when caching model artefacts on disk.