Skip to main content

hf_hub_cache_dir

Function hf_hub_cache_dir 

Source
pub fn hf_hub_cache_dir() -> Option<PathBuf>
Expand description

Resolve the Hugging Face Hub cache directory.

Precedence:

  1. HF_HUB_CACHE
  2. HF_HOME/hub
  3. ~/.cache/huggingface/hub