pub struct QuantTraits {
pub name: &'static str,
pub ggml_name: &'static str,
pub blck_size: u32,
pub type_size: u32,
pub family: GgmlFamily,
}Expand description
What one ggml tensor type weighs, and what to call it.
blck_size and type_size are ggml’s own field names, and ggml’s own
values: type_size bytes hold exactly blck_size elements. Both are 0 for
a removed id.
Fields§
§name: &'static strThe upstream ENUM name without its GGML_TYPE_ prefix — "Q4_K",
"IQ2_XXS", "BF16". This is the GGUF-facing spelling and what
GgmlType::as_str returns.
ggml_name: &'static strThe name ggml_type_name() returns — "q4_K", "iq2_xxs", "bf16".
Differs from Self::name in case only, which the fixture test asserts.
blck_size: u32Elements per block. 1 for the unquantized types, 0 for a removed id.
type_size: u32Bytes per block. 0 for a removed id.
family: GgmlFamilyaprender’s family classification (see GgmlFamily).
Trait Implementations§
Source§impl Clone for QuantTraits
impl Clone for QuantTraits
impl Copy for QuantTraits
Source§impl Debug for QuantTraits
impl Debug for QuantTraits
impl Eq for QuantTraits
Source§impl PartialEq for QuantTraits
impl PartialEq for QuantTraits
impl StructuralPartialEq for QuantTraits
Auto Trait Implementations§
impl Forget for QuantTraits
impl Freeze for QuantTraits
impl Move for QuantTraits
impl RefUnwindSafe for QuantTraits
impl Send for QuantTraits
impl Sync for QuantTraits
impl Unpin for QuantTraits
impl UnsafeUnpin for QuantTraits
impl UnwindSafe for QuantTraits
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