pub struct MtpDraftState {
pub committed: usize,
/* private fields */
}Expand description
The MTP draft’s persistent state: its own QSA KV rows + indexer raw-key cache + a
dedicated step workspace. DRAFT CACHE ROW i HOLDS TARGET POSITION i + 1 (position 0
never enters the draft — its first input pairs token x_1 with trunk hidden h_0), so
every spec-loop forward runs at pos_off = 1; the reference-parity gate runs at
pos_off = 0 to match the reference executor’s row-indexed positions.
Fields§
§committed: usizeRows whose inputs were TRUE trunk hidden states (survive a round). The spec loop truncates to here and replays accepted tokens with verify-produced hiddens.
Implementations§
Auto Trait Implementations§
impl Freeze for MtpDraftState
impl RefUnwindSafe for MtpDraftState
impl Send for MtpDraftState
impl Sync for MtpDraftState
impl Unpin for MtpDraftState
impl UnsafeUnpin for MtpDraftState
impl UnwindSafe for MtpDraftState
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