pub struct V3Layer {Show 15 fields
pub norm_in: Vec<f32>,
pub q_proj: CqWeight,
pub k_proj: CqWeight,
pub v_proj: CqWeight,
pub q_taps: Vec<f32>,
pub k_taps: Vec<f32>,
pub v_taps: Vec<f32>,
pub q_norm: Vec<f32>,
pub k_norm: Vec<f32>,
pub gate_proj: CqWeight,
pub out_proj: CqWeight,
pub post_norm: Vec<f32>,
pub attn_gate: f32,
pub pre_hada: Vec<f32>,
pub mlp: HadaMlp,
}Expand description
One transformer layer’s weights.
Fields§
§norm_in: Vec<f32>§q_proj: CqWeight§k_proj: CqWeight§v_proj: CqWeight§q_taps: Vec<f32>(taps, dim) each; empty when the model declares no conv.
k_taps: Vec<f32>§v_taps: Vec<f32>§q_norm: Vec<f32>Per-head-dim ZCRMSNorm scales, qk_head_dim long.
k_norm: Vec<f32>§gate_proj: CqWeight§out_proj: CqWeight§post_norm: Vec<f32>§attn_gate: f32Stored pre-sigmoid, as upstream stores it.
pre_hada: Vec<f32>§mlp: HadaMlpAuto Trait Implementations§
impl Freeze for V3Layer
impl RefUnwindSafe for V3Layer
impl Send for V3Layer
impl Sync for V3Layer
impl Unpin for V3Layer
impl UnsafeUnpin for V3Layer
impl UnwindSafe for V3Layer
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