pub struct StageSamplingConfig {
pub flags: u32,
pub seed: u32,
pub temperature: f32,
pub top_p: f32,
pub top_k: i32,
pub min_p: f32,
pub presence_penalty: f32,
pub frequency_penalty: f32,
pub repeat_penalty: f32,
pub penalty_last_n: i32,
pub logit_bias: Vec<StageLogitBias>,
}Fields§
§flags: u32§seed: u32§temperature: f32§top_p: f32§top_k: i32§min_p: f32§presence_penalty: f32§frequency_penalty: f32§repeat_penalty: f32§penalty_last_n: i32§logit_bias: Vec<StageLogitBias>Implementations§
Trait Implementations§
Source§impl Clone for StageSamplingConfig
impl Clone for StageSamplingConfig
Source§fn clone(&self) -> StageSamplingConfig
fn clone(&self) -> StageSamplingConfig
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 StageSamplingConfig
impl Debug for StageSamplingConfig
Source§impl Default for StageSamplingConfig
impl Default for StageSamplingConfig
Source§impl PartialEq for StageSamplingConfig
impl PartialEq for StageSamplingConfig
impl StructuralPartialEq for StageSamplingConfig
Auto Trait Implementations§
impl Freeze for StageSamplingConfig
impl RefUnwindSafe for StageSamplingConfig
impl Send for StageSamplingConfig
impl Sync for StageSamplingConfig
impl Unpin for StageSamplingConfig
impl UnsafeUnpin for StageSamplingConfig
impl UnwindSafe for StageSamplingConfig
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