ferrotorch-hub
Pretrained model registry, download, and caching for ferrotorch.
What it provides
list_models-- browse all registered pretrained model architecturesget_model_info-- query metadata (name, description, parameter count, weights format)load_pretrained-- load pretrained state dicts from the local cachedownload_weights-- fetch model weights from a URL and cache locallyHubCache-- manage the on-disk cache directory (~/.cache/ferrotorch/hub)
Mirrors the workflow of torch.hub and torchvision.models with pretrained weight support.
Quick start
use ;
// Browse available models.
for model in list_models
// Load pretrained weights (requires cached weights on disk).
let state_dict = .unwrap;
Note: a handful of entries in the registry (e.g., the placeholder
unet,maskrcnn_resnet50_fpn, anddeeplabv3_resnet50rows) ship with an all-zeroweights_sha256because no authoritative public mirror has been pinned yet.load_pretrainedanddownload_weightsdeliberately fail-fast on those entries withInvalidArgumentrather than silently skipping verification — seeregistry.rsfor the per-entry rationale.
Part of ferrotorch
This crate is one component of the ferrotorch workspace. See the workspace README for full documentation.
License
MIT OR Apache-2.0