Enum candle_transformers::generation::Sampling
source · pub enum Sampling {
ArgMax,
All {
temperature: f64,
},
TopK {
k: usize,
temperature: f64,
},
TopP {
p: f64,
temperature: f64,
},
TopKThenTopP {
k: usize,
p: f64,
temperature: f64,
},
}
Variants§
Trait Implementations§
source§impl PartialEq for Sampling
impl PartialEq for Sampling
impl StructuralPartialEq for Sampling
Auto Trait Implementations§
impl Freeze for Sampling
impl RefUnwindSafe for Sampling
impl Send for Sampling
impl Sync for Sampling
impl Unpin for Sampling
impl UnwindSafe for Sampling
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