pub struct TypicalConfig {
pub tau: f64,
pub temperature: f64,
pub min_tokens: usize,
}Expand description
Configuration for typical_sample and typical_sample_batch.
Fields§
§tau: f64Typical-decoding cumulative mass threshold, in (0, 1].
temperature: f64Softmax temperature (> 0).
min_tokens: usizeMinimum number of tokens to keep (≥ 1).
Trait Implementations§
Source§impl Clone for TypicalConfig
impl Clone for TypicalConfig
Source§fn clone(&self) -> TypicalConfig
fn clone(&self) -> TypicalConfig
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 moreimpl Copy for TypicalConfig
Source§impl Debug for TypicalConfig
impl Debug for TypicalConfig
Auto Trait Implementations§
impl Freeze for TypicalConfig
impl RefUnwindSafe for TypicalConfig
impl Send for TypicalConfig
impl Sync for TypicalConfig
impl Unpin for TypicalConfig
impl UnsafeUnpin for TypicalConfig
impl UnwindSafe for TypicalConfig
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