pub struct GreedyRepetitionPenalty { /* private fields */ }Expand description
Sparse repetition-penalty metadata for model-side greedy argmax.
The token list is request-local and de-duplicated. Applying the penalty
before GPU argmax avoids downloading full [batch, vocab] logits for the
common greedy chat path while preserving repeat avoidance.
Implementations§
Trait Implementations§
Source§impl Clone for GreedyRepetitionPenalty
impl Clone for GreedyRepetitionPenalty
Source§fn clone(&self) -> GreedyRepetitionPenalty
fn clone(&self) -> GreedyRepetitionPenalty
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 moreAuto Trait Implementations§
impl Freeze for GreedyRepetitionPenalty
impl RefUnwindSafe for GreedyRepetitionPenalty
impl Send for GreedyRepetitionPenalty
impl Sync for GreedyRepetitionPenalty
impl Unpin for GreedyRepetitionPenalty
impl UnsafeUnpin for GreedyRepetitionPenalty
impl UnwindSafe for GreedyRepetitionPenalty
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