pub struct Cfg {Show 16 fields
pub dim: usize,
pub hc: usize,
pub eps: f64,
pub hc_eps: f32,
pub sinkhorn_iters: usize,
pub nh: usize,
pub nkv: usize,
pub hd: usize,
pub scale: f32,
pub invf: Vec<f32>,
pub block: usize,
pub prefix_blocks: usize,
pub local_blocks: usize,
pub remote_blocks: usize,
pub top_k: usize,
pub max_seq: usize,
}Fields§
§dim: usize§hc: usize§eps: f64§hc_eps: f32§sinkhorn_iters: usize§nh: usize§nkv: usize§hd: usize§scale: f32§invf: Vec<f32>§block: usizePositions a block holds, the blocks every query sees at the start of the context and before itself (its own included), and the blocks the indexer adds a KV group.
prefix_blocks: usize§local_blocks: usize§remote_blocks: usize§top_k: usize§max_seq: usizeThe context cap (CMF_MAX_SEQ, 32 768): the positions the card’s
reserve is sized for.
Implementations§
Auto Trait Implementations§
impl Forget for Cfg
impl Freeze for Cfg
impl Move for Cfg
impl RefUnwindSafe for Cfg
impl Send for Cfg
impl Sync for Cfg
impl Unpin for Cfg
impl UnsafeUnpin for Cfg
impl UnwindSafe for Cfg
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