pub struct DeclaredTemperature {
pub scale: Option<f32>,
pub length: Option<u64>,
pub n_ctx_orig_yarn: Option<u64>,
}Expand description
What the file declares, gathered by the loader.
Fields§
§scale: Option<f32>{arch}.attention.temperature_scale.
length: Option<u64>{arch}.attention.temperature_length.
n_ctx_orig_yarn: Option<u64>hparams.n_ctx_orig_yarn as llama.cpp resolves it: the YaRN
original-context key, else context_length.
Trait Implementations§
Source§impl Clone for DeclaredTemperature
impl Clone for DeclaredTemperature
impl Copy for DeclaredTemperature
Source§impl Debug for DeclaredTemperature
impl Debug for DeclaredTemperature
Source§impl PartialEq for DeclaredTemperature
impl PartialEq for DeclaredTemperature
impl StructuralPartialEq for DeclaredTemperature
Auto Trait Implementations§
impl Freeze for DeclaredTemperature
impl RefUnwindSafe for DeclaredTemperature
impl Send for DeclaredTemperature
impl Sync for DeclaredTemperature
impl Unpin for DeclaredTemperature
impl UnsafeUnpin for DeclaredTemperature
impl UnwindSafe for DeclaredTemperature
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> 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