pub struct HfRepoInfo {
pub model_id: String,
pub name: String,
pub author: Option<String>,
pub downloads: u64,
pub likes: u64,
pub parameters_b: Option<f64>,
pub description: Option<String>,
pub last_modified: Option<String>,
pub chat_template: Option<String>,
pub tags: Vec<String>,
}Expand description
Information about a HuggingFace repository/model.
Fields§
§model_id: StringFull model ID (e.g., “TheBloke/Llama-2-7B-GGUF”)
name: StringModel name (derived from ID)
Author/organization
downloads: u64Total download count
likes: u64Like count
parameters_b: Option<f64>Parameter count in billions (if known)
description: Option<String>Short description
last_modified: Option<String>Last modified timestamp (ISO 8601)
chat_template: Option<String>Chat template (from config.chat_template or cardData)
Model tags
Trait Implementations§
Source§impl Clone for HfRepoInfo
impl Clone for HfRepoInfo
Source§fn clone(&self) -> HfRepoInfo
fn clone(&self) -> HfRepoInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HfRepoInfo
impl Debug for HfRepoInfo
Source§impl<'de> Deserialize<'de> for HfRepoInfo
impl<'de> Deserialize<'de> for HfRepoInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HfRepoInfo
impl RefUnwindSafe for HfRepoInfo
impl Send for HfRepoInfo
impl Sync for HfRepoInfo
impl Unpin for HfRepoInfo
impl UnwindSafe for HfRepoInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more