pub struct DeepseekV4MtpProposerState {
pub block_table: Vec<u32>,
pub seq_len: usize,
pub last_num_drafted: usize,
pub body_state: Box<dyn LayerState>,
}Expand description
Per-sequence state for the DeepSeek-V4 MTP proposer.
Fields§
§block_table: Vec<u32>Block table for the MTP module’s OWN KV cache.
seq_len: usizeCurrent sequence length in the MTP KV cache.
last_num_drafted: usizeDrafts produced by the last propose() (for after_verify trimming).
body_state: Box<dyn LayerState>Per-layer state for the reused V4 body. MLA attention layers use
EmptyLayerState, but we allocate it via body.alloc_state so any
future stateful body type is handled correctly (no hard-coded assumption).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeepseekV4MtpProposerState
impl !RefUnwindSafe for DeepseekV4MtpProposerState
impl Send for DeepseekV4MtpProposerState
impl Sync for DeepseekV4MtpProposerState
impl Unpin for DeepseekV4MtpProposerState
impl !UnwindSafe for DeepseekV4MtpProposerState
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