pub struct SamplingFallback {
pub temperature: f32,
pub repeat_penalty: f32,
pub top_p: f32,
pub top_k: u32,
pub min_p: f32,
pub frequency_penalty_as_repeat: bool,
}Expand description
An embedding’s defaults, below request and operator values: temperature and repetition replace the model’s; truncation applies only when the model publishes none.
Fields§
§temperature: f32§repeat_penalty: f32§top_p: f32§top_k: u32§min_p: f32§frequency_penalty_as_repeat: boolInterpret a lone frequency_penalty as multiplicative (1 + value). An explicit presence_penalty or repeat_penalty retains additive frequency semantics; presence_penalty alone disables fallback repeat.
Trait Implementations§
Source§impl Clone for SamplingFallback
impl Clone for SamplingFallback
impl Copy for SamplingFallback
Source§impl Debug for SamplingFallback
impl Debug for SamplingFallback
Source§impl PartialEq for SamplingFallback
impl PartialEq for SamplingFallback
impl StructuralPartialEq for SamplingFallback
Auto Trait Implementations§
impl Freeze for SamplingFallback
impl RefUnwindSafe for SamplingFallback
impl Send for SamplingFallback
impl Sync for SamplingFallback
impl Unpin for SamplingFallback
impl UnsafeUnpin for SamplingFallback
impl UnwindSafe for SamplingFallback
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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