pub struct Quantizer5Bit {
pub scales: Vec<f32>,
pub block_size: usize,
pub per_channel: bool,
}Expand description
5-bit quantizer for streaming embeddings
Uses signed int8 container with values in -16..15. Per-channel or per-block scale for stable streaming updates.
Fields§
§scales: Vec<f32>Per-block scale factors
block_size: usizeBlock size
per_channel: boolUse per-channel scaling (instead of per-block)
Implementations§
Source§impl Quantizer5Bit
impl Quantizer5Bit
Trait Implementations§
Source§impl Clone for Quantizer5Bit
impl Clone for Quantizer5Bit
Source§fn clone(&self) -> Quantizer5Bit
fn clone(&self) -> Quantizer5Bit
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Quantizer5Bit
impl RefUnwindSafe for Quantizer5Bit
impl Send for Quantizer5Bit
impl Sync for Quantizer5Bit
impl Unpin for Quantizer5Bit
impl UnwindSafe for Quantizer5Bit
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