pub struct MultiModuleMtpState {
pub per_module: Vec<MtpProposerState>,
pub last_num_drafted: usize,
}Expand description
Per-sequence state for MultiModuleMtpHead.
One inner MtpProposerState per module — each tracks its own
block table and seq_len, since the modules do not share KV cache.
Fields§
§per_module: Vec<MtpProposerState>per_module[i] belongs to MultiModuleMtpHead::modules[i].
Length invariant: matches the parent head’s modules.len().
last_num_drafted: usizeNumber of drafts produced by the last propose() call.
after_verify() trims that many entries from KV cache.
Trait Implementations§
Source§impl ProposerState for MultiModuleMtpState
impl ProposerState for MultiModuleMtpState
Auto Trait Implementations§
impl Freeze for MultiModuleMtpState
impl RefUnwindSafe for MultiModuleMtpState
impl Send for MultiModuleMtpState
impl Sync for MultiModuleMtpState
impl Unpin for MultiModuleMtpState
impl UnwindSafe for MultiModuleMtpState
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