pub struct SpecSamplerCfg {
pub temperature: f32,
pub top_p: f32,
pub top_k: usize,
pub seed: u64,
}Expand description
Vendor-default sampling config for the SAMPLED spec run (the serving law’s probe shape): temp 1.0 / top_p 0.95 / top_k 20 on qwen4_exp. Greedy (None) stays the byte-identity instrument.
Fields§
§temperature: f32§top_p: f32§top_k: usize§seed: u64Trait Implementations§
Source§impl Clone for SpecSamplerCfg
impl Clone for SpecSamplerCfg
Source§fn clone(&self) -> SpecSamplerCfg
fn clone(&self) -> SpecSamplerCfg
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 SpecSamplerCfg
Auto Trait Implementations§
impl Freeze for SpecSamplerCfg
impl RefUnwindSafe for SpecSamplerCfg
impl Send for SpecSamplerCfg
impl Sync for SpecSamplerCfg
impl Unpin for SpecSamplerCfg
impl UnsafeUnpin for SpecSamplerCfg
impl UnwindSafe for SpecSamplerCfg
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