pub enum ParallelWhen {
Always,
FfnNormAbsent,
ParallelResidualKey,
}Expand description
How a graph decides that a layer is parallel.
Variants§
Always
Every layer, unconditionally.
FfnNormAbsent
blk.N.ffn_norm.weight is absent (stablelm.cpp:129).
ParallelResidualKey
{arch}.use_parallel_residual is true (gptneox.cpp:5,143).
Trait Implementations§
Source§impl Clone for ParallelWhen
impl Clone for ParallelWhen
impl Copy for ParallelWhen
Source§impl Debug for ParallelWhen
impl Debug for ParallelWhen
impl Eq for ParallelWhen
Source§impl PartialEq for ParallelWhen
impl PartialEq for ParallelWhen
impl StructuralPartialEq for ParallelWhen
Auto Trait Implementations§
impl Freeze for ParallelWhen
impl RefUnwindSafe for ParallelWhen
impl Send for ParallelWhen
impl Sync for ParallelWhen
impl Unpin for ParallelWhen
impl UnsafeUnpin for ParallelWhen
impl UnwindSafe for ParallelWhen
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