Skip to main content

download_model

Function download_model 

Source
pub async fn download_model(
    repo_id: &str,
    hf_token: Option<&str>,
    model_dir: &Path,
) -> Result<ModelFiles>
Expand description

Download (or locate from cache) config.json + model.safetensors[.index.json] for repo_id into model_dir.