pub struct SparseIndexEntry {
pub task_id: u32,
pub layer_idx: usize,
pub active_ffn_groups: Vec<u16>,
pub active_heads: Vec<u8>,
}Expand description
Sparse index entry — precomputed per-task per-layer active group IDs.
Fields§
§task_id: u32§layer_idx: usize§active_ffn_groups: Vec<u16>Active quant-group indices for FFN (sorted, group = 32 neurons).
active_heads: Vec<u8>Active head indices for attention (sorted).
Trait Implementations§
Source§impl Clone for SparseIndexEntry
impl Clone for SparseIndexEntry
Source§fn clone(&self) -> SparseIndexEntry
fn clone(&self) -> SparseIndexEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparseIndexEntry
impl Debug for SparseIndexEntry
Source§impl<'de> Deserialize<'de> for SparseIndexEntry
impl<'de> Deserialize<'de> for SparseIndexEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SparseIndexEntry
Source§impl PartialEq for SparseIndexEntry
impl PartialEq for SparseIndexEntry
Source§fn eq(&self, other: &SparseIndexEntry) -> bool
fn eq(&self, other: &SparseIndexEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SparseIndexEntry
impl Serialize for SparseIndexEntry
impl StructuralPartialEq for SparseIndexEntry
Auto Trait Implementations§
impl Freeze for SparseIndexEntry
impl RefUnwindSafe for SparseIndexEntry
impl Send for SparseIndexEntry
impl Sync for SparseIndexEntry
impl Unpin for SparseIndexEntry
impl UnsafeUnpin for SparseIndexEntry
impl UnwindSafe for SparseIndexEntry
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