pub struct CatalogueEntry {Show 14 fields
pub variant: String,
pub display_name: String,
pub family: String,
pub params: Option<u64>,
pub license: Option<License>,
pub languages: Vec<String>,
pub capabilities: Capabilities,
pub headline_benchmark: Option<HeadlineBenchmark>,
pub published_repo: Option<String>,
pub downloads: Vec<Download>,
pub speed_benchmarks: Vec<SpeedRow>,
pub accuracy_benchmarks: Vec<AccuracyRow>,
pub kind: EntryKind,
pub download_count: Option<u64>,
}Expand description
One variant’s catalogue entry.
Fields§
§variant: String§display_name: StringMissing falls back to the variant itself.
family: String§params: Option<u64>Parameter count of the upstream checkpoint, absent when the source
publishes none - the Hub’s listing does not carry one. A count of
zero is not a fact, and a row printing 0M params claims one.
license: Option<License>§languages: Vec<String>§capabilities: Capabilities§headline_benchmark: Option<HeadlineBenchmark>§published_repo: Option<String>The feed’s published Hugging Face repo for this variant
(owner/name), which is where its README’s own download table lives
when the docs tree has no per-variant page.
downloads: Vec<Download>§speed_benchmarks: Vec<SpeedRow>§accuracy_benchmarks: Vec<AccuracyRow>§kind: EntryKindWhat this entry is for. The speech feed’s documents never spell it - they are all speech models - and the Hub’s feed sets it for every entry it builds.
download_count: Option<u64>How many times the Hub has served the repo. The only pre-run signal
a cleanup candidate has - the feed publishes no speed and no error
for a normalizer - so it is what orders a sweep. The speech feed
carries no count and leaves this None.
Implementations§
Source§impl CatalogueEntry
impl CatalogueEntry
Sourcepub fn download_for(&self, filename: &str) -> Option<&Download>
pub fn download_for(&self, filename: &str) -> Option<&Download>
The download carrying this exact file name, which is how a pinned model is joined to its entry.
Sourcepub fn m4_metal_speed_row(&self) -> Option<&SpeedRow>
pub fn m4_metal_speed_row(&self) -> Option<&SpeedRow>
The m4-max Metal row carrying the best wall-clock realtime factor, so the machine, backend and quant cross beside the number.
Sourcepub fn m4_metal_xrt_wall(&self) -> Option<f64>
pub fn m4_metal_xrt_wall(&self) -> Option<f64>
The best m4-max Metal wall-clock realtime factor across the
quantised speed rows. None when the feed carries no such row.
Sourcepub fn fleurs_en_wer(&self) -> Option<f64>
pub fn fleurs_en_wer(&self) -> Option<f64>
Word error rate on FLEURS English at the reference quant.
Sourcepub fn headline_wer(&self) -> Option<f64>
pub fn headline_wer(&self) -> Option<f64>
Word error rate on the entry’s own headline benchmark.