pub struct Glm52DecoderLayerWeights {
pub attn_norm_weight: Vec<f32>,
pub attn: Glm52AttnWeights,
pub ffn_norm_weight: Vec<f32>,
pub ffn: Glm52LayerFfn,
pub is_full_indexer_layer: bool,
}Fields§
§attn_norm_weight: Vec<f32>§attn: Glm52AttnWeights§ffn_norm_weight: Vec<f32>§ffn: Glm52LayerFfn§is_full_indexer_layer: boolWhether this layer’s indexer is “full” (computes its own top-k)
or “shared” (reuses the nearest preceding “full” layer’s top-k)
– real per-layer indexer_types array, see glm_dsa’s module
doc comment point 1. The very first layer processed must always
be true (the real architecture guarantees this).
Auto Trait Implementations§
impl Freeze for Glm52DecoderLayerWeights
impl RefUnwindSafe for Glm52DecoderLayerWeights
impl Send for Glm52DecoderLayerWeights
impl Sync for Glm52DecoderLayerWeights
impl Unpin for Glm52DecoderLayerWeights
impl UnsafeUnpin for Glm52DecoderLayerWeights
impl UnwindSafe for Glm52DecoderLayerWeights
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