pub struct KdaAttnWeights {Show 14 fields
pub q_proj: WeightMatrix,
pub k_proj: WeightMatrix,
pub v_proj: WeightMatrix,
pub q_conv_weight: Vec<f32>,
pub k_conv_weight: Vec<f32>,
pub v_conv_weight: Vec<f32>,
pub a_log: Vec<f32>,
pub f_a_proj: WeightMatrix,
pub f_b_proj: WeightMatrix,
pub dt_bias: Vec<f32>,
pub b_proj: WeightMatrix,
pub g_proj: WeightMatrix,
pub o_norm_weight: Vec<f32>,
pub o_proj: WeightMatrix,
}Fields§
§q_proj: WeightMatrix§k_proj: WeightMatrix§v_proj: WeightMatrix§q_conv_weight: Vec<f32>Depthwise causal conv taps, row-major [n_heads*head_dim, short_conv_kernel_size] — one independent kernel per channel.
k_conv_weight: Vec<f32>§v_conv_weight: Vec<f32>§a_log: Vec<f32>§f_a_proj: WeightMatrix§f_b_proj: WeightMatrix§dt_bias: Vec<f32>§b_proj: WeightMatrix§g_proj: WeightMatrix§o_norm_weight: Vec<f32>§o_proj: WeightMatrixAuto Trait Implementations§
impl Freeze for KdaAttnWeights
impl RefUnwindSafe for KdaAttnWeights
impl Send for KdaAttnWeights
impl Sync for KdaAttnWeights
impl Unpin for KdaAttnWeights
impl UnsafeUnpin for KdaAttnWeights
impl UnwindSafe for KdaAttnWeights
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