Skip to main content

ModelDownloader

Trait ModelDownloader 

Source
pub trait ModelDownloader {
    // Required method
    fn download_model(
        &self,
        spec: &HuggingFaceModelSpec,
    ) -> Result<DownloadedModel>;
}
Expand description

Minimal downloader seam for bundle resolution tests and alternate materializers.

Required Methods§

Source

fn download_model(&self, spec: &HuggingFaceModelSpec) -> Result<DownloadedModel>

Downloads or otherwise stages the requested model files.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§