pub struct Layer {
pub sliding: bool,
pub attn_query: Option<Vec<f32>>,
pub mlp_query: Vec<f32>,
pub in_norm: [Vec<f32>; 3],
pub post_norm: Vec<f32>,
pub attn: Attn,
pub post_attn_conv: Conv,
pub post_mlp_conv: Conv,
pub moe: Moe,
pub gates: Option<[Gate; 4]>,
}Fields§
§sliding: bool§attn_query: Option<Vec<f32>>[1 | 3, hidden]; None on layer 0.
mlp_query: Vec<f32>§in_norm: [Vec<f32>; 3]input_layernorm (sliding) or the q, k, v input norms (full).
post_norm: Vec<f32>§attn: Attn§post_attn_conv: Conv§post_mlp_conv: Conv§moe: Moe§gates: Option<[Gate; 4]>The q, k, v and MLP message gates of a loop layer.
Auto Trait Implementations§
impl Forget for Layer
impl Freeze for Layer
impl Move for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnsafeUnpin for Layer
impl UnwindSafe for Layer
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