pub struct MtpProposerState {
pub block_table: Vec<u32>,
pub seq_len: usize,
pub last_num_drafted: usize,
pub last_pair_key: Option<usize>,
pub last_drafts: Vec<u32>,
pub pending_catchup: Vec<u32>,
}Expand description
2026-09-25: Per-sequence MTP proposer state.
Fields§
§block_table: Vec<u32>2026-09-25: Block table in the head’s own KV cache.
seq_len: usize2026-09-25: Drafter rows written in the head’s KV cache.
last_num_drafted: usize2026-09-25: Drafts produced by the last propose; after_verify trims from it.
last_pair_key: Option<usize>2026-09-25: Sequence-space pair key of the newest drafter row: a forward_one
at RoPE position p writes key p - 1. seq_len counts rows, which need
not match sequence positions. None until a row is written.
last_drafts: Vec<u32>2026-09-25: The drafts the last propose returned, in order.
pending_catchup: Vec<u32>Trait Implementations§
Source§impl ProposerState for MtpProposerState
impl ProposerState for MtpProposerState
Auto Trait Implementations§
impl Freeze for MtpProposerState
impl RefUnwindSafe for MtpProposerState
impl Send for MtpProposerState
impl Sync for MtpProposerState
impl Unpin for MtpProposerState
impl UnwindSafe for MtpProposerState
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