pub struct SamplerConfig {
pub temperature: f32,
pub top_k: usize,
pub top_p: f32,
pub min_p: f32,
pub penalty_last_n: usize,
pub penalty_repeat: f32,
pub penalty_freq: f32,
pub penalty_present: f32,
pub seed: u64,
}Expand description
Sampler configuration. Defaults = greedy (temp 0). Order of application matches llama.cpp.
Fields§
§temperature: f32§top_k: usize§top_p: f32§min_p: f32§penalty_last_n: usize§penalty_repeat: f32§penalty_freq: f32§penalty_present: f32§seed: u64Trait Implementations§
Source§impl Clone for SamplerConfig
impl Clone for SamplerConfig
Source§fn clone(&self) -> SamplerConfig
fn clone(&self) -> SamplerConfig
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 moreSource§impl Debug for SamplerConfig
impl Debug for SamplerConfig
Auto Trait Implementations§
impl Freeze for SamplerConfig
impl RefUnwindSafe for SamplerConfig
impl Send for SamplerConfig
impl Sync for SamplerConfig
impl Unpin for SamplerConfig
impl UnsafeUnpin for SamplerConfig
impl UnwindSafe for SamplerConfig
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