pub struct ParallelDenseFfn {
pub arch: &'static str,
pub presence: DensePresence,
pub sum_scale: Option<f32>,
pub lines: &'static str,
}Expand description
One architecture whose routed layers sum a dense FFN with the experts.
Fields§
§arch: &'static str§presence: DensePresence§sum_scale: Option<f32>The factor on ffn_out + moe_out, or None for a plain sum.
lines: &'static strTrait Implementations§
Source§impl Clone for ParallelDenseFfn
impl Clone for ParallelDenseFfn
impl Copy for ParallelDenseFfn
Auto Trait Implementations§
impl Freeze for ParallelDenseFfn
impl RefUnwindSafe for ParallelDenseFfn
impl Send for ParallelDenseFfn
impl Sync for ParallelDenseFfn
impl Unpin for ParallelDenseFfn
impl UnsafeUnpin for ParallelDenseFfn
impl UnwindSafe for ParallelDenseFfn
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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