pub struct MoeWeights<'a> {
pub gate_w: &'a [f32],
pub gate_bias: &'a [f32],
pub experts: Vec<(&'a [f32], &'a [f32], &'a [f32])>,
pub shared: (&'a [f32], &'a [f32], &'a [f32]),
}Expand description
The routed experts’ parameters, experts[i] = (w1, w2, w3).
Fields§
§gate_w: &'a [f32]§gate_bias: &'a [f32]§experts: Vec<(&'a [f32], &'a [f32], &'a [f32])>Auto Trait Implementations§
impl<'a> Freeze for MoeWeights<'a>
impl<'a> RefUnwindSafe for MoeWeights<'a>
impl<'a> Send for MoeWeights<'a>
impl<'a> Sync for MoeWeights<'a>
impl<'a> Unpin for MoeWeights<'a>
impl<'a> UnwindSafe for MoeWeights<'a>
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