pub struct RepetitionPenaltyProcessor {
pub penalty: f32,
}Expand description
Repetition penalty processor
Fields§
§penalty: f32Implementations§
Source§impl RepetitionPenaltyProcessor
impl RepetitionPenaltyProcessor
pub fn new(penalty: f32) -> RepetitionPenaltyProcessor
Trait Implementations§
Source§impl LogitsProcessor for RepetitionPenaltyProcessor
impl LogitsProcessor for RepetitionPenaltyProcessor
Source§fn process(&self, ctx: &mut SamplingContext<'_>) -> Result<(), FerrumError>
fn process(&self, ctx: &mut SamplingContext<'_>) -> Result<(), FerrumError>
Process logits in-place
Source§fn priority(&self) -> ProcessorPriority
fn priority(&self) -> ProcessorPriority
Whether this processor should be applied before others
Auto Trait Implementations§
impl Freeze for RepetitionPenaltyProcessor
impl RefUnwindSafe for RepetitionPenaltyProcessor
impl Send for RepetitionPenaltyProcessor
impl Sync for RepetitionPenaltyProcessor
impl Unpin for RepetitionPenaltyProcessor
impl UnsafeUnpin for RepetitionPenaltyProcessor
impl UnwindSafe for RepetitionPenaltyProcessor
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