pub enum LayerWeights {
FullAttention {
input_norm: DenseWeight,
attn: AttentionWeights,
post_attn_norm: DenseWeight,
moe: MoeWeights,
},
LinearAttention {
input_norm: DenseWeight,
ssm: SsmWeights,
post_attn_norm: DenseWeight,
moe: MoeWeights,
},
}Expand description
All weights for one transformer layer.
Variants§
Auto Trait Implementations§
impl Freeze for LayerWeights
impl RefUnwindSafe for LayerWeights
impl Send for LayerWeights
impl Sync for LayerWeights
impl Unpin for LayerWeights
impl UnwindSafe for LayerWeights
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