Skip to main content

TrimAdapt

Struct TrimAdapt 

Source
pub struct TrimAdapt { /* private fields */ }
Expand description

Serve-time adaptive trim (MEMRA_GEMMA_TRIM_ADAPT=): the static FR trim’s whole loss is coverage escapes — tokens the base emits that the trim can’t propose (guaranteed rejections; the oracle control that injected the exact escapees flipped a -17% cell to +2% at identical acceptance, jsonl 2026-07-19). Every escape self-identifies at serve time: it arrives as a verify CORRECTION token (and its cousins ride in with the prompt), so the head keeps n_spare extra rows and learns them — prompt ids up front, corrections as they land. First miss pays one rejected round; every recurrence after is proposable. Rows are written into the existing device buffers (no realloc — captured graphs keep their baked addresses).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.