Skip to main content

try_recast_from_cache

Function try_recast_from_cache 

Source
pub fn try_recast_from_cache(
    canonical: &Path,
    output: &Path,
    dtype: GGMLType,
    redownload: bool,
) -> Result<bool>
Expand description

Return the canonical cache path, recasting from cache when present.

Returns true when the caller can return early (cache hit already recast to output), false when the caller must download + convert. Thin wrapper over zsfm_hub::try_recast_from_cache so CLI + Python share one implementation.