pub enum Calibration {
MinMax,
AbsMean,
}Expand description
Calibration method used to compute the quantization range mapping.
Variants§
MinMax
Computes quantization range mapping based on the min and max values.
AbsMean
Absolute-mean calibration for BitNet b1.58-style {-1, 0, +1} weight quantization.
The range is [-γ, +γ] where γ = mean(|W|) per tensor or per block (BitNet b1.58
§3.1). Use with QuantValue::Q2S and QuantStore::PackedU32 for 2-bit packed storage.
Auto Trait Implementations§
impl Freeze for Calibration
impl RefUnwindSafe for Calibration
impl Send for Calibration
impl Sync for Calibration
impl Unpin for Calibration
impl UnsafeUnpin for Calibration
impl UnwindSafe for Calibration
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