pub struct QuantExpertWeight {
pub gate_proj: QuantWeight,
pub up_proj: QuantWeight,
pub down_proj: QuantWeight,
}Expand description
Per-expert weights in any supported quant format.
Replaces the separate ExpertWeight (NVFP4) and Fp8ExpertWeight (FP8)
types with a single unified type.
Fields§
§gate_proj: QuantWeight§up_proj: QuantWeight§down_proj: QuantWeightImplementations§
Trait Implementations§
Source§impl Clone for QuantExpertWeight
impl Clone for QuantExpertWeight
Source§fn clone(&self) -> QuantExpertWeight
fn clone(&self) -> QuantExpertWeight
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 QuantExpertWeight
impl Debug for QuantExpertWeight
Source§impl From<ExpertWeight> for QuantExpertWeight
impl From<ExpertWeight> for QuantExpertWeight
Source§fn from(w: ExpertWeight) -> Self
fn from(w: ExpertWeight) -> Self
Converts to this type from the input type.
Source§impl From<Fp8ExpertWeight> for QuantExpertWeight
impl From<Fp8ExpertWeight> for QuantExpertWeight
Source§fn from(w: Fp8ExpertWeight) -> Self
fn from(w: Fp8ExpertWeight) -> Self
Converts to this type from the input type.
impl Copy for QuantExpertWeight
Auto Trait Implementations§
impl Freeze for QuantExpertWeight
impl RefUnwindSafe for QuantExpertWeight
impl Send for QuantExpertWeight
impl Sync for QuantExpertWeight
impl Unpin for QuantExpertWeight
impl UnwindSafe for QuantExpertWeight
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