#[repr(C, align(64))]pub struct P64HParams {Show 15 fields
pub n_layer: u32,
pub n_embd: u32,
pub n_head: u32,
pub n_kv_head: u32,
pub vocab_size: u32,
pub rope_freq_base: f32,
pub rope_scale: f32,
pub head_dim: u32,
pub head_dim_swa: u32,
pub sliding_window: u32,
pub shared_kv_layers: u32,
pub logit_softcap: f32,
pub architecture: u32,
pub arch_flags: u32,
pub reserved: [u8; 8],
}Fields§
§n_layer: u32§n_embd: u32§n_head: u32§n_kv_head: u32§vocab_size: u32§rope_freq_base: f32§rope_scale: f32§head_dim: u32Explicit head dim (0 = derive n_embd/n_head). Occupies former reserved[0..4].
head_dim_swa: u32§sliding_window: u32§logit_softcap: f32§architecture: u32§arch_flags: u32§reserved: [u8; 8]Trait Implementations§
Source§impl Clone for P64HParams
impl Clone for P64HParams
Source§fn clone(&self) -> P64HParams
fn clone(&self) -> P64HParams
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 moreSource§impl Debug for P64HParams
impl Debug for P64HParams
impl Copy for P64HParams
Auto Trait Implementations§
impl Freeze for P64HParams
impl RefUnwindSafe for P64HParams
impl Send for P64HParams
impl Sync for P64HParams
impl Unpin for P64HParams
impl UnsafeUnpin for P64HParams
impl UnwindSafe for P64HParams
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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