pub struct AttnV41Cfg {Show 22 fields
pub dim: usize,
pub n_heads: usize,
pub head_dim: usize,
pub rope_dim: usize,
pub q_rank: usize,
pub o_rank: usize,
pub groups: usize,
pub window: usize,
pub eps: f32,
pub index_heads: usize,
pub index_hd: usize,
pub index_topk: usize,
pub cand_topk_blocks: usize,
pub cand_block: usize,
pub max_seq: usize,
pub max_tokens: usize,
pub rope_theta: f32,
pub compress_rope_theta: f32,
pub rope_factor: f32,
pub orig_seq: usize,
pub beta_fast: f32,
pub beta_slow: f32,
}Expand description
Model-wide attention geometry, from ModelConfig.
Fields§
§dim: usize§n_heads: usize§head_dim: usize§rope_dim: usize§q_rank: usize§o_rank: usize§groups: usize§window: usize§eps: f32§index_heads: usize§index_hd: usize§index_topk: usize§cand_topk_blocks: usize§cand_block: usize§max_seq: usize§max_tokens: usize§rope_theta: f32§compress_rope_theta: f32§rope_factor: f32§orig_seq: usize§beta_fast: f32§beta_slow: f32Implementations§
Trait Implementations§
Source§impl Clone for AttnV41Cfg
impl Clone for AttnV41Cfg
Source§fn clone(&self) -> AttnV41Cfg
fn clone(&self) -> AttnV41Cfg
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AttnV41Cfg
impl RefUnwindSafe for AttnV41Cfg
impl Send for AttnV41Cfg
impl Sync for AttnV41Cfg
impl Unpin for AttnV41Cfg
impl UnwindSafe for AttnV41Cfg
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