pub struct MlaAttnWeights {
pub q_a_proj: WeightMatrix,
pub q_a_layernorm: Vec<f32>,
pub q_b_proj: WeightMatrix,
pub kv_a_proj_with_mqa: WeightMatrix,
pub kv_a_layernorm: Vec<f32>,
pub kv_b_proj: WeightMatrix,
pub o_proj: WeightMatrix,
pub g_proj: Option<WeightMatrix>,
}Fields§
§q_a_proj: WeightMatrix§q_a_layernorm: Vec<f32>§q_b_proj: WeightMatrix§kv_a_proj_with_mqa: WeightMatrix§kv_a_layernorm: Vec<f32>§kv_b_proj: WeightMatrix§o_proj: WeightMatrix§g_proj: Option<WeightMatrix>Present iff MlaConfig::use_output_gate.
Auto Trait Implementations§
impl Freeze for MlaAttnWeights
impl RefUnwindSafe for MlaAttnWeights
impl Send for MlaAttnWeights
impl Sync for MlaAttnWeights
impl Unpin for MlaAttnWeights
impl UnsafeUnpin for MlaAttnWeights
impl UnwindSafe for MlaAttnWeights
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