pub struct EngramHash {
pub layer_ids: Vec<usize>,
pub max_ngram: usize,
pub n_heads: usize,
pub compressed_vocab: usize,
pub pad_id: i64,
pub primes: Vec<Vec<Vec<u64>>>,
pub offsets: Vec<Vec<u64>>,
pub token_map: Vec<u32>,
pub multipliers: Vec<[u64; 4]>,
/* private fields */
}Expand description
The exact source layout of the V4.1 n-gram tables. The two configured Engram layers have disjoint prime ranges, even though both tables use the same nominal 16M vocabulary.
Fields§
§layer_ids: Vec<usize>§max_ngram: usize§n_heads: usize§compressed_vocab: usize§pad_id: i64§primes: Vec<Vec<Vec<u64>>>§offsets: Vec<Vec<u64>>§token_map: Vec<u32>§multipliers: Vec<[u64; 4]>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EngramHash
impl RefUnwindSafe for EngramHash
impl Send for EngramHash
impl Sync for EngramHash
impl Unpin for EngramHash
impl UnsafeUnpin for EngramHash
impl UnwindSafe for EngramHash
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