pub struct DsparkState {
pub win: Vec<Vec<f32>>,
pub filled: Vec<usize>,
pub main_hidden: Vec<f32>,
pub have_hidden: bool,
}Expand description
Per-sequence state of the draft: one KV ring per stage, and the trunk hidden states the block’s input is projected from.
Fields§
§win: Vec<Vec<f32>>[stage][window * kv_width], written at pos % window.
filled: Vec<usize>How many real positions each ring holds, capped at window.
The trunk’s captured hidden, dim * n_targets, refreshed every token.
True once main_hidden holds this position’s capture.
Implementations§
Auto Trait Implementations§
impl Freeze for DsparkState
impl RefUnwindSafe for DsparkState
impl Send for DsparkState
impl Sync for DsparkState
impl Unpin for DsparkState
impl UnsafeUnpin for DsparkState
impl UnwindSafe for DsparkState
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