#[non_exhaustive]pub enum WeightTransformationPlan {
PreserveCheckpoint,
Affine {
bits: i32,
group_size: i32,
},
MxFp4,
}Expand description
Optional load-time transformation applied to checkpoint weights.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PreserveCheckpoint
Preserve checkpoint-native weight encodings.
Affine
Convert eligible weights to grouped affine quantization while loading.
Fields
MxFp4
Convert eligible weights to MXFP4 while loading.
Trait Implementations§
Source§impl Clone for WeightTransformationPlan
impl Clone for WeightTransformationPlan
Source§fn clone(&self) -> WeightTransformationPlan
fn clone(&self) -> WeightTransformationPlan
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 WeightTransformationPlan
Source§impl Debug for WeightTransformationPlan
impl Debug for WeightTransformationPlan
Source§impl<'de> Deserialize<'de> for WeightTransformationPlan
impl<'de> Deserialize<'de> for WeightTransformationPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WeightTransformationPlan
Source§impl PartialEq for WeightTransformationPlan
impl PartialEq for WeightTransformationPlan
Source§impl Serialize for WeightTransformationPlan
impl Serialize for WeightTransformationPlan
impl StructuralPartialEq for WeightTransformationPlan
Auto Trait Implementations§
impl Freeze for WeightTransformationPlan
impl RefUnwindSafe for WeightTransformationPlan
impl Send for WeightTransformationPlan
impl Sync for WeightTransformationPlan
impl Unpin for WeightTransformationPlan
impl UnsafeUnpin for WeightTransformationPlan
impl UnwindSafe for WeightTransformationPlan
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