pub struct NoSafety;Expand description
SafetyMode::Off — a no-op steerer.
Trait Implementations§
Source§impl SafetySteerer for NoSafety
impl SafetySteerer for NoSafety
fn adjust(&self, _recent: &[u32]) -> LogitAdjustment
fn mode(&self) -> SafetyMode
Source§fn adjust_with_logits(
&self,
recent_tokens: &[u32],
_base_logits: &[i32],
) -> LogitAdjustment
fn adjust_with_logits( &self, recent_tokens: &[u32], _base_logits: &[i32], ) -> LogitAdjustment
Logit-aware steering (ADR-013). Given the base model’s next-token logits
for this step, return the adjustment to apply (still after the grammar
mask, before sampling — the ADR-005 order is unchanged). Read more
Auto Trait Implementations§
impl Freeze for NoSafety
impl RefUnwindSafe for NoSafety
impl Send for NoSafety
impl Sync for NoSafety
impl Unpin for NoSafety
impl UnsafeUnpin for NoSafety
impl UnwindSafe for NoSafety
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