pub struct AttnRun {
pub q: Vec<f32>,
pub kv_rows: Vec<f32>,
pub idx: Vec<i32>,
pub topk: usize,
pub o: Vec<f32>,
pub out: Vec<f32>,
}Expand description
Every intermediate the golden captured, plus the output. o is sparse_attn’s result
BEFORE the inverse rotation, which is where the golden samples it.
Fields§
§q: Vec<f32>§kv_rows: Vec<f32>§idx: Vec<i32>§topk: usize§o: Vec<f32>§out: Vec<f32>Auto Trait Implementations§
impl Freeze for AttnRun
impl RefUnwindSafe for AttnRun
impl Send for AttnRun
impl Sync for AttnRun
impl Unpin for AttnRun
impl UnwindSafe for AttnRun
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