pub struct GgufMetadata {
pub name: Option<String>,
pub architecture: Option<String>,
pub quantization: Option<String>,
pub param_count_b: Option<f64>,
pub context_length: Option<u64>,
pub metadata: HashMap<String, String>,
}Expand description
Parsed metadata from a GGUF file.
This is the domain-facing type used by services and ports.
Parsing logic that produces this type lives in gglib-gguf.
Fields§
§name: Option<String>Model name from general.name metadata or filename.
architecture: Option<String>Model architecture (e.g., “llama”, “mistral”).
quantization: Option<String>Quantization type (e.g., “Q4_K_M”, “Q8_0”).
param_count_b: Option<f64>Number of parameters in billions.
context_length: Option<u64>Maximum context length.
metadata: HashMap<String, String>Additional key-value metadata from the file (string representation).
Trait Implementations§
Source§impl Clone for GgufMetadata
impl Clone for GgufMetadata
Source§fn clone(&self) -> GgufMetadata
fn clone(&self) -> GgufMetadata
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 GgufMetadata
impl Debug for GgufMetadata
Source§impl Default for GgufMetadata
impl Default for GgufMetadata
Source§fn default() -> GgufMetadata
fn default() -> GgufMetadata
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GgufMetadata
impl RefUnwindSafe for GgufMetadata
impl Send for GgufMetadata
impl Sync for GgufMetadata
impl Unpin for GgufMetadata
impl UnwindSafe for GgufMetadata
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