pub struct ExpertWeight {
pub gate_proj: QuantizedWeight,
pub up_proj: QuantizedWeight,
pub down_proj: QuantizedWeight,
}Expand description
MoE expert weights (shared across all 512 experts per layer).
Fields§
§gate_proj: QuantizedWeight§up_proj: QuantizedWeight§down_proj: QuantizedWeightImplementations§
Source§impl ExpertWeight
impl ExpertWeight
Trait Implementations§
Source§impl Clone for ExpertWeight
impl Clone for ExpertWeight
Source§fn clone(&self) -> ExpertWeight
fn clone(&self) -> ExpertWeight
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 ExpertWeight
impl Debug for ExpertWeight
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.
impl Copy for ExpertWeight
Auto Trait Implementations§
impl Freeze for ExpertWeight
impl RefUnwindSafe for ExpertWeight
impl Send for ExpertWeight
impl Sync for ExpertWeight
impl Unpin for ExpertWeight
impl UnwindSafe for ExpertWeight
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