pub struct Dsv41State {
pub pos: usize,
pub window: Vec<Vec<f32>>,
pub packed: Dsv41PackedKvCache,
pub pending_kv: Vec<Vec<f32>>,
pub pending_score: Vec<Vec<f32>>,
pub topk: Vec<usize>,
pub topk_ready: bool,
pub candidates: Vec<bool>,
pub hash: Option<EngramHash>,
}Expand description
Sequence state. compressed and index_k are keyed by source index,
rather than by every consumer layer; this is the CSA2 memory bound.
Fields§
§pos: usize§window: Vec<Vec<f32>>§packed: Dsv41PackedKvCacheCompact global main KV and indexer-K streams keyed by CSA2 source. Rows are decoded only into bounded caller-owned scratch.
pending_kv: Vec<Vec<f32>>§pending_score: Vec<Vec<f32>>§topk: Vec<usize>§topk_ready: boolWhether an index-source layer has published the shared sparse positions for the current sequence. An empty published list means “attend no compressed rows”; it must not be confused with the pre-indexer state, where the reference has no list yet and consumers use every visible row.
candidates: Vec<bool>§hash: Option<EngramHash>Implementations§
Source§impl Dsv41State
impl Dsv41State
Auto Trait Implementations§
impl Freeze for Dsv41State
impl RefUnwindSafe for Dsv41State
impl Send for Dsv41State
impl Sync for Dsv41State
impl Unpin for Dsv41State
impl UnsafeUnpin for Dsv41State
impl UnwindSafe for Dsv41State
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