pub struct SweepSpec {
pub temperature: Vec<f32>,
pub top_p: Vec<f32>,
pub top_k: Vec<i32>,
pub min_p: Vec<f32>,
pub repeat_penalty: Vec<f32>,
}Expand description
Sampling-parameter values to sweep.
Each field is a list of candidate values for that dimension. The full candidate grid is the cartesian product of all non-empty dimensions; an empty list means “don’t vary this dimension” (the resolved default from the normal inference-config fallback chain is used instead).
Fields§
§temperature: Vec<f32>Candidate temperature values.
top_p: Vec<f32>Candidate top-p (nucleus sampling) values.
top_k: Vec<i32>Candidate top-k values.
min_p: Vec<f32>Candidate min-p values.
repeat_penalty: Vec<f32>Candidate repeat-penalty values.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SweepSpec
impl<'de> Deserialize<'de> for SweepSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SweepSpec
impl RefUnwindSafe for SweepSpec
impl Send for SweepSpec
impl Sync for SweepSpec
impl Unpin for SweepSpec
impl UnsafeUnpin for SweepSpec
impl UnwindSafe for SweepSpec
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