Expand description
Hugging Face helpers for model downloads with unified progress bar.
use asimov_huggingface::{ensure_file, ensure_snapshot};
let file = ensure_file("facebook/dinov2-base", "pytorch_model.bin").unwrap();
let dir = ensure_snapshot("julien-c/dummy-unknown", None).unwrap();Structs§
Enums§
Functions§
- ensure_file 
- Ensures that the specified file from a Hugging Face repository is available locally.
- ensure_snapshot 
- Ensures that a complete snapshot of a Hugging Face repository is present locally and returns the snapshot directory path.