pub struct Penalties {
pub last_n: i32,
pub repeat: f32,
pub freq: f32,
pub presence: f32,
}Expand description
Applies repetition, frequency, and presence penalties over recent history.
Fields§
§last_n: i32Number of recent tokens to count. Non-positive values disable history.
repeat: f32Sign-aware repetition multiplier.
freq: f32Penalty multiplied by token frequency.
presence: f32Penalty applied once to each present token.
Trait Implementations§
impl Copy for Penalties
impl StructuralPartialEq for Penalties
Auto Trait Implementations§
impl Freeze for Penalties
impl RefUnwindSafe for Penalties
impl Send for Penalties
impl Sync for Penalties
impl Unpin for Penalties
impl UnsafeUnpin for Penalties
impl UnwindSafe for Penalties
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