pub struct MlaMoeFfn {
pub router: WeightMatrix,
pub experts: Vec<ExpertWeights>,
pub shared_expert: ExpertWeights,
pub exp_probs_bias: Option<Vec<f32>>,
}Fields§
§router: WeightMatrix§experts: Vec<ExpertWeights>§exp_probs_bias: Option<Vec<f32>>Optional aux-loss-free bias (ffn_exp_probs_b.bias).
Auto Trait Implementations§
impl Freeze for MlaMoeFfn
impl RefUnwindSafe for MlaMoeFfn
impl Send for MlaMoeFfn
impl Sync for MlaMoeFfn
impl Unpin for MlaMoeFfn
impl UnsafeUnpin for MlaMoeFfn
impl UnwindSafe for MlaMoeFfn
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more