pub struct Llama3 {
pub factor: f32,
pub low_freq_factor: f32,
pub high_freq_factor: f32,
pub original_max_position_embeddings: f32,
}Expand description
RopeScaling::Llama3’s parameters (mlx-lm’s defaults).
Fields§
§factor: f32Scale of low frequencies.
low_freq_factor: f32Wavelength bound (in original contexts) of scaled low frequencies.
high_freq_factor: f32Wavelength bound of unscaled high frequencies.
original_max_position_embeddings: f32The context length the model was trained with.
Trait Implementations§
impl Copy for Llama3
Source§impl Static for Llama3
impl Static for Llama3
Source§fn hash_static(&self, __h: &mut dyn Hasher)
fn hash_static(&self, __h: &mut dyn Hasher)
Feeds the value to
h.impl StructuralPartialEq for Llama3
Auto Trait Implementations§
impl Freeze for Llama3
impl RefUnwindSafe for Llama3
impl Send for Llama3
impl Sync for Llama3
impl Unpin for Llama3
impl UnsafeUnpin for Llama3
impl UnwindSafe for Llama3
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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,
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