pub enum StateKind {
Recurrent,
PagedKv,
PrefixSnapshot,
RingSnapshot,
CarryStash,
CarryTable,
VerifyTable,
AcceptStash,
HiddenCapture,
PromptLookupIndex,
TokenTreeMask,
DraftTokens,
}Expand description
2026-09-30: What a state is.
Variants§
Recurrent
2026-09-30: A recurrent state, one unit per sequence slot (GatedDeltaNet and Mamba2
h, their conv windows).
PagedKv
2026-09-30: One side of a paged KV cache, one unit per token.
PrefixSnapshot
2026-10-02: A prefix-cache (Marconi) snapshot of a recurrent state (of), or of the
last-token hidden row, one unit per snapshot slot.
RingSnapshot
2026-10-02: The decode-rollback ring’s copy of a recurrent state (of), one unit per ring
slot per sequence slot.
CarryStash
2026-10-02: The carried-state verify’s per-slot stash of a recurrent layer, one unit per verify slot (the dummy included).
CarryTable
2026-10-02: The carried-state verify’s per-layer pointer and flag tables, one unit per carry-table row.
VerifyTable
2026-10-02: A verify’s per-layer WY pointer tables, one unit per verify-table row.
AcceptStash
2026-10-02: The hidden rows of accepted drafts a verify stashes for the next propose, one unit per verify-table row.
HiddenCapture
2026-10-02: Hidden rows captured for the draft head (the prompt’s, for the drafter prefill; DFlash’s per-step capture), one unit per captured row.
PromptLookupIndex
2026-10-02: Host: a sequence’s prompt-lookup n-gram index, one entry per history token
(sized by the hash table law in memory::caches).
TokenTreeMask
2026-10-02: A token tree’s attention mask, one unit per (tree node, tree node) pair of a verify slot.
DraftTokens
2026-10-02: A speculative step’s drafted tokens and their scores, one unit per draft position of a verify slot (tree nodes under a token tree).
Implementations§
Source§impl StateKind
impl StateKind
Sourcepub fn is_cache(self) -> bool
pub fn is_cache(self) -> bool
2026-10-02: A cache: a kind no layer node touches, sized by memory::caches from the
cache inputs, never by StatePlan. It may copy another state of its block (of).
Sourcepub fn copies_a_state(self) -> bool
pub fn copies_a_state(self) -> bool
2026-10-02: The kinds whose unit copies a declared state (of).
Trait Implementations§
Source§impl Ord for StateKind
impl Ord for StateKind
Source§impl PartialOrd for StateKind
impl PartialOrd for StateKind
impl Copy for StateKind
impl Eq for StateKind
impl StructuralPartialEq for StateKind
Auto Trait Implementations§
impl Freeze for StateKind
impl RefUnwindSafe for StateKind
impl Send for StateKind
impl Sync for StateKind
impl Unpin for StateKind
impl UnwindSafe for StateKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.