pub enum TextSamplingStrategy {
Standard,
MirostatV2 {
tau: f32,
eta: f32,
},
}Expand description
Backend-neutral token-sampling strategy for one text-generation session.
Variants§
Standard
Apply the resolved top-k, top-p, min-p, and penalty controls.
MirostatV2
Adapt the surprise cutoff toward tau bits at rate eta.
Trait Implementations§
Source§impl Clone for TextSamplingStrategy
impl Clone for TextSamplingStrategy
Source§fn clone(&self) -> TextSamplingStrategy
fn clone(&self) -> TextSamplingStrategy
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 TextSamplingStrategy
Source§impl Debug for TextSamplingStrategy
impl Debug for TextSamplingStrategy
Source§impl Default for TextSamplingStrategy
impl Default for TextSamplingStrategy
Source§fn default() -> TextSamplingStrategy
fn default() -> TextSamplingStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for TextSamplingStrategy
impl PartialEq for TextSamplingStrategy
impl StructuralPartialEq for TextSamplingStrategy
Auto Trait Implementations§
impl Freeze for TextSamplingStrategy
impl RefUnwindSafe for TextSamplingStrategy
impl Send for TextSamplingStrategy
impl Sync for TextSamplingStrategy
impl Unpin for TextSamplingStrategy
impl UnsafeUnpin for TextSamplingStrategy
impl UnwindSafe for TextSamplingStrategy
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