pub struct DflashCfg {Show 13 fields
pub hidden: usize,
pub n_head: usize,
pub n_kv: usize,
pub head_dim: usize,
pub n_ff: usize,
pub n_layer: usize,
pub eps: f32,
pub rope_theta: f32,
pub block_size: usize,
pub mask_token_id: u32,
pub target_layer_ids: Vec<usize>,
pub sliding_window: usize,
pub layer_sliding: Vec<bool>,
}Fields§
§n_head: usize§n_kv: usize§head_dim: usize§n_ff: usize§n_layer: usize§eps: f32§rope_theta: f32§block_size: usize§mask_token_id: u32§target_layer_ids: Vec<usize>§sliding_window: usize§layer_sliding: Vec<bool>true = sliding_attention for that layer (4x true + 1x false on the 31B draft).
Auto Trait Implementations§
impl Freeze for DflashCfg
impl RefUnwindSafe for DflashCfg
impl Send for DflashCfg
impl Sync for DflashCfg
impl Unpin for DflashCfg
impl UnsafeUnpin for DflashCfg
impl UnwindSafe for DflashCfg
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