pub struct ResolvedRopeParams {
pub rope_theta: f64,
pub partial_rotary_factor: f64,
pub scale_factor: f64,
pub is_proportional: bool,
}Expand description
Resolved RoPE configuration for a specific attention layer type.
Fields§
§rope_theta: f64Inverse frequency base (rope_theta).
partial_rotary_factor: f64Fraction of head dimensions rotated ((0.0, 1.0]).
scale_factor: f64Frequency scaling divisor (factor, 1.0 when unscaled).
is_proportional: boolWhether rope_type == "proportional" (full head_dim denominator in frequencies).
Trait Implementations§
Source§impl Clone for ResolvedRopeParams
impl Clone for ResolvedRopeParams
impl Copy for ResolvedRopeParams
Source§impl Debug for ResolvedRopeParams
impl Debug for ResolvedRopeParams
Source§impl PartialEq for ResolvedRopeParams
impl PartialEq for ResolvedRopeParams
impl StructuralPartialEq for ResolvedRopeParams
Auto Trait Implementations§
impl Freeze for ResolvedRopeParams
impl RefUnwindSafe for ResolvedRopeParams
impl Send for ResolvedRopeParams
impl Sync for ResolvedRopeParams
impl Unpin for ResolvedRopeParams
impl UnsafeUnpin for ResolvedRopeParams
impl UnwindSafe for ResolvedRopeParams
Blanket Implementations§
impl<T> Boilerplate for T
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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