pub struct GraphHyIndexer<'a> {}Expand description
Hy4-flash’s compressed indexer (hy4::select_groups / pool_group): the
index query over q_a’s normed rows, the head weights and the token key
over the layer input, the token key’s norm, the pooling’s value and gate
projections over the token keys, the pooled key’s norm, the groups’
position embedding; rotary on the last rope channels of each id-wide
head (index query at its position, a group’s key at its first).
Fields§
§q: GraphW<'a>[ih·id, q_rank].
hw: &'a [f32][ih, hidden], [id, hidden] f32.
tk: &'a [f32]§tk_norm: &'a [f32]§kv: &'a [f32][id, id] f32.
kg: &'a [f32]§k_norm: &'a [f32]§ape: &'a [f32][ratio, id].
ih: usize§id: usize§ratio: usize§group_topk: usize§kv_b: &'a [f32]kv_b [nh·(nope + v), lora] in f32, for the absorbed attention.
Auto Trait Implementations§
impl<'a> Forget for GraphHyIndexer<'a>
impl<'a> Freeze for GraphHyIndexer<'a>
impl<'a> Move for GraphHyIndexer<'a>
impl<'a> RefUnwindSafe for GraphHyIndexer<'a>
impl<'a> Send for GraphHyIndexer<'a>
impl<'a> Sync for GraphHyIndexer<'a>
impl<'a> Unpin for GraphHyIndexer<'a>
impl<'a> UnsafeUnpin for GraphHyIndexer<'a>
impl<'a> UnwindSafe for GraphHyIndexer<'a>
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