pub enum IsqBits {
Two,
Three,
Four,
Five,
Six,
Eight,
}Expand description
Target bit width for automatic ISQ quantization.
On Metal, these select AFQ variants; on CUDA/CPU, they select Q*K variants.
Variants§
Two
2-bit quantization (AFQ2 on Metal, Q2K otherwise).
Three
3-bit quantization (AFQ3 on Metal, Q3K otherwise).
Four
4-bit quantization (AFQ4 on Metal, Q4K otherwise).
Five
5-bit quantization (Q5K on all platforms).
Six
6-bit quantization (AFQ6 on Metal, Q6K otherwise).
Eight
8-bit quantization (AFQ8 on Metal, Q8_0 otherwise).
Implementations§
Trait Implementations§
impl Copy for IsqBits
impl Eq for IsqBits
impl StructuralPartialEq for IsqBits
Auto Trait Implementations§
impl Freeze for IsqBits
impl RefUnwindSafe for IsqBits
impl Send for IsqBits
impl Sync for IsqBits
impl Unpin for IsqBits
impl UnsafeUnpin for IsqBits
impl UnwindSafe for IsqBits
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
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more