pub enum QuantFormat {
Q4_0,
Q5_0,
Q8_0,
Q4K,
Q5K,
Q6K,
}Expand description
GGUF quant formats with a native device kernel (see combs-models).
Variants§
Q4_0
32-value blocks, f16 scale + 16 nibble bytes (18 B).
Q5_0
32-value blocks, f16 scale + u32 high bits + 16 nibble bytes (22 B).
Q8_0
32-value blocks, f16 scale + 32 i8 values (34 B).
Q4K
256-value superblocks, 6-bit sub-scales + 4-bit quants (144 B).
Q5K
256-value superblocks, 6-bit sub-scales + 5-bit quants (176 B).
Q6K
256-value superblocks, i8 sub-scales + 6-bit quants (210 B).
Trait Implementations§
Source§impl Clone for QuantFormat
impl Clone for QuantFormat
Source§fn clone(&self) -> QuantFormat
fn clone(&self) -> QuantFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QuantFormat
Source§impl Debug for QuantFormat
impl Debug for QuantFormat
impl Eq for QuantFormat
Source§impl PartialEq for QuantFormat
impl PartialEq for QuantFormat
impl StructuralPartialEq for QuantFormat
Auto Trait Implementations§
impl Freeze for QuantFormat
impl RefUnwindSafe for QuantFormat
impl Send for QuantFormat
impl Sync for QuantFormat
impl Unpin for QuantFormat
impl UnsafeUnpin for QuantFormat
impl UnwindSafe for QuantFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.