pub struct DryParams {
pub multiplier: f32,
pub base: f32,
pub allowed_length: i32,
pub penalty_last_n: i32,
pub seq_breakers: Vec<String>,
}Expand description
Parameters for the DRY (“Don’t Repeat Yourself”) sampler.
DRY penalizes tokens that would extend a repeated sequence. See https://github.com/oobabooga/text-generation-webui/pull/5677.
Fields§
§multiplier: f32Penalty strength. 0.0 disables DRY.
base: f32Exponential base for the length-scaled penalty (llama.cpp default 1.75).
allowed_length: i32Minimum repeated-sequence length before a penalty applies (default 2).
penalty_last_n: i32How many recent tokens to scan. -1 = the whole context, 0 = disabled.
seq_breakers: Vec<String>Strings that reset the repetition scan (e.g. newlines, quotes).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DryParams
impl RefUnwindSafe for DryParams
impl Send for DryParams
impl Sync for DryParams
impl Unpin for DryParams
impl UnsafeUnpin for DryParams
impl UnwindSafe for DryParams
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