pub enum LoopNorm {
Output,
Weightless,
}Expand description
A model whose logical layers are n_loops passes over n_phys
physical ones. Only ever constructed with n_loops >= 2: a file
declaring 1 (or nothing) is a plain model and carries None.
The norm a pass boundary applies to the residual, if any.
Variants§
Output
output_norm, the model’s own weighted final norm
(nanbeige.cpp:167-175).
Weightless
A WEIGHTLESS RMS: hrm-text.cpp:162 closes every stack with
build_norm(cur, nullptr, nullptr, LLM_NORM_RMS, ...), and the
architecture has no output_norm tensor at all – the last
stack’s norm IS the final one.
Trait Implementations§
impl Copy for LoopNorm
impl Eq for LoopNorm
impl StructuralPartialEq for LoopNorm
Auto Trait Implementations§
impl Freeze for LoopNorm
impl RefUnwindSafe for LoopNorm
impl Send for LoopNorm
impl Sync for LoopNorm
impl Unpin for LoopNorm
impl UnsafeUnpin for LoopNorm
impl UnwindSafe for LoopNorm
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