pub struct Dry {
pub multiplier: f32,
pub base: f32,
pub allowed_length: i32,
pub last_n: i32,
pub breakers: Vec<Vec<u32>>,
}Expand description
Applies sequence-extension penalties using recent token repetitions.
Fields§
§multiplier: f32Penalty multiplier.
base: f32Exponential penalty base.
allowed_length: i32Repetition length allowed before penalties begin.
last_n: i32Number of recent history tokens to inspect.
breakers: Vec<Vec<u32>>Token sequences that reset repetition matching.
Trait Implementations§
impl StructuralPartialEq for Dry
Auto Trait Implementations§
impl Freeze for Dry
impl RefUnwindSafe for Dry
impl Send for Dry
impl Sync for Dry
impl Unpin for Dry
impl UnsafeUnpin for Dry
impl UnwindSafe for Dry
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