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§
Sourcefn download_model(&self, spec: &HuggingFaceModelSpec) -> Result<DownloadedModel>
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".