pub struct Sam3TextBlock {Show 16 fields
pub ln1_w: Vec<f32>,
pub ln1_b: Vec<f32>,
pub qkv_w_t: Vec<f32>,
pub qkv_b: Vec<f32>,
pub proj_w_t: Vec<f32>,
pub proj_b: Vec<f32>,
pub ln2_w: Vec<f32>,
pub ln2_b: Vec<f32>,
pub mlp_fc_w_t: Vec<f32>,
pub mlp_fc_b: Vec<f32>,
pub mlp_proj_w_t: Vec<f32>,
pub mlp_proj_b: Vec<f32>,
pub qkv_gguf_key: Option<String>,
pub proj_gguf_key: Option<String>,
pub mlp_fc_gguf_key: Option<String>,
pub mlp_proj_gguf_key: Option<String>,
}Fields§
§ln1_w: Vec<f32>§ln1_b: Vec<f32>§qkv_w_t: Vec<f32>§qkv_b: Vec<f32>§proj_w_t: Vec<f32>§proj_b: Vec<f32>§ln2_w: Vec<f32>§ln2_b: Vec<f32>§mlp_fc_w_t: Vec<f32>§mlp_fc_b: Vec<f32>§mlp_proj_w_t: Vec<f32>§mlp_proj_b: Vec<f32>§qkv_gguf_key: Option<String>§proj_gguf_key: Option<String>§mlp_fc_gguf_key: Option<String>§mlp_proj_gguf_key: Option<String>Trait Implementations§
Source§impl Clone for Sam3TextBlock
impl Clone for Sam3TextBlock
Source§fn clone(&self) -> Sam3TextBlock
fn clone(&self) -> Sam3TextBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Sam3TextBlock
impl RefUnwindSafe for Sam3TextBlock
impl Send for Sam3TextBlock
impl Sync for Sam3TextBlock
impl Unpin for Sam3TextBlock
impl UnsafeUnpin for Sam3TextBlock
impl UnwindSafe for Sam3TextBlock
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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