pub struct MlxQuantConfig {
pub bits: u32,
pub group_size: u32,
}Expand description
2026-09-25: Quantization metadata from the model’s config.json.
Fields§
§bits: u32§group_size: u32Implementations§
Source§impl MlxQuantConfig
impl MlxQuantConfig
Sourcepub fn from_config(config: &JsonValue) -> Option<Self>
pub fn from_config(config: &JsonValue) -> Option<Self>
2026-09-25: Read bits and group_size from the top-level quantization
block, or from quantization_config when quantization is absent. None
when the block or either key is missing or not an unsigned integer.
Trait Implementations§
Source§impl Clone for MlxQuantConfig
impl Clone for MlxQuantConfig
Source§fn clone(&self) -> MlxQuantConfig
fn clone(&self) -> MlxQuantConfig
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 moreSource§impl Debug for MlxQuantConfig
impl Debug for MlxQuantConfig
impl Copy for MlxQuantConfig
Auto Trait Implementations§
impl Freeze for MlxQuantConfig
impl RefUnwindSafe for MlxQuantConfig
impl Send for MlxQuantConfig
impl Sync for MlxQuantConfig
impl Unpin for MlxQuantConfig
impl UnwindSafe for MlxQuantConfig
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