pub struct EngramTables {
pub layer_ids: Vec<usize>,
pub max_ngram: usize,
pub n_heads: usize,
pub head_dim: usize,
pub num_embeddings: Vec<usize>,
pub pad_id: i64,
pub token_map: Vec<i64>,
pub multipliers: Vec<Vec<i64>>,
pub primes: Vec<Vec<Vec<i64>>>,
pub offsets: Vec<Vec<i64>>,
pub scale_block: usize,
pub scales: Vec<Vec<f32>>,
}Expand description
2026-09-25: The engram hash tables, geometry and table scales, from the
golden’s fixture.engram.
Fields§
§layer_ids: Vec<usize>§max_ngram: usize§n_heads: usize§head_dim: usize§num_embeddings: Vec<usize>§pad_id: i64§token_map: Vec<i64>§multipliers: Vec<Vec<i64>>§primes: Vec<Vec<Vec<i64>>>§offsets: Vec<Vec<i64>>§scale_block: usize§scales: Vec<Vec<f32>>Implementations§
Source§impl EngramTables
impl EngramTables
pub fn n_hash_cols(&self) -> usize
pub fn from_golden(g: &Golden) -> Self
Auto Trait Implementations§
impl Freeze for EngramTables
impl RefUnwindSafe for EngramTables
impl Send for EngramTables
impl Sync for EngramTables
impl Unpin for EngramTables
impl UnwindSafe for EngramTables
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