Skip to main content

resolve_local

Function resolve_local 

Source
pub fn resolve_local(file: &WeightFile) -> Option<PathBuf>
Expand description

Find an already-present copy of file without downloading, honoring the $QSM_MODEL_DIR override first, then the cache. Returns None if absent.

This is std-only and works even without the download feature, so a host can supply bring-your-own-weights for pending or gated models.