pub struct AttnLayerState {
pub qsa: Option<QsaSeqState>,
}Expand description
2026-09-25: Per-sequence state of a Qwen3 attention layer. The KV cache lives outside it; the one field is the QSA indexer carry, created on first use and only on a layer that has a QSA indexer.
Fields§
§qsa: Option<QsaSeqState>Trait Implementations§
Source§impl Default for AttnLayerState
impl Default for AttnLayerState
Source§fn default() -> AttnLayerState
fn default() -> AttnLayerState
Returns the “default value” for a type. Read more
Source§impl LayerState for AttnLayerState
impl LayerState for AttnLayerState
Auto Trait Implementations§
impl Freeze for AttnLayerState
impl RefUnwindSafe for AttnLayerState
impl Send for AttnLayerState
impl Sync for AttnLayerState
impl Unpin for AttnLayerState
impl UnwindSafe for AttnLayerState
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