Skip to main content

model_cache_path

Function model_cache_path 

Source
pub fn model_cache_path(model_id: &str) -> Option<PathBuf>
Expand description

Return the cache sub-directory path for a given model ID.

E.g. for "bartowski/Qwen2.5-1.5B-Instruct-GGUF" the cache directory is <hf_cache>/models--bartowski--Qwen2.5-1.5B-Instruct-GGUF.