pub struct ModelInfo {
pub model_type: ModelType,
pub format_version: (u8, u8),
pub metadata: Metadata,
pub payload_size: usize,
pub uncompressed_size: usize,
pub encrypted: bool,
pub signed: bool,
pub streaming: bool,
pub licensed: bool,
pub trueno_native: bool,
pub quantized: bool,
pub has_model_card: bool,
}Expand description
Model information (from inspection).
Fields§
§model_type: ModelTypeModel type
format_version: (u8, u8)Format version
metadata: MetadataMetadata
payload_size: usizeCompressed payload size
uncompressed_size: usizeUncompressed payload size
encrypted: boolIs encrypted
signed: boolIs signed
streaming: boolIs streaming
licensed: boolHas commercial license block
trueno_native: boolUses trueno-native 64-byte aligned tensors
quantized: boolContains quantized tensors
has_model_card: boolHas model card metadata (spec §11)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelInfo
impl RefUnwindSafe for ModelInfo
impl Send for ModelInfo
impl Sync for ModelInfo
impl Unpin for ModelInfo
impl UnsafeUnpin for ModelInfo
impl UnwindSafe for ModelInfo
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