pub fn resolve_model_dir(
model_id_or_path: &str,
cache_dir: Option<&Path>,
token: Option<&str>,
local_files_only: bool,
) -> Result<PathBuf>Expand description
Resolve a local directory or download a model repository snapshot from Hugging Face Hub.
ยงErrors
Returns an error if the Hub client cannot be built or snapshot download fails.