pub struct DflashLayer {Show 22 fields
pub input_layernorm: DenseWeight,
pub post_attention_layernorm: DenseWeight,
pub q_proj: DenseWeight,
pub k_proj: DenseWeight,
pub v_proj: DenseWeight,
pub o_proj: DenseWeight,
pub q_norm: DenseWeight,
pub k_norm: DenseWeight,
pub gate_proj: DenseWeight,
pub up_proj: DenseWeight,
pub down_proj: DenseWeight,
pub q_proj_fp8: Option<Fp8DenseWeight>,
pub k_proj_fp8: Option<Fp8DenseWeight>,
pub v_proj_fp8: Option<Fp8DenseWeight>,
pub o_proj_fp8: Option<Fp8DenseWeight>,
pub gate_proj_fp8: Option<Fp8DenseWeight>,
pub up_proj_fp8: Option<Fp8DenseWeight>,
pub down_proj_fp8: Option<Fp8DenseWeight>,
pub attention_conv_base: Option<DenseWeight>,
pub attention_conv_proj: Option<DenseWeight>,
pub mlp_conv_base: Option<DenseWeight>,
pub mlp_conv_proj: Option<DenseWeight>,
}Expand description
2026-09-25: One drafter layer’s weights: the bf16 norms (with per-head Q/K
RMSNorm), projections and MLP; FP8 copies of the seven GEMM weights when
the head is Fp8Weights (None otherwise); and the DFlash2 conv weights
(attention_conv.*, mlp_conv.*), None when the checkpoint has none.
Fields§
§input_layernorm: DenseWeight§post_attention_layernorm: DenseWeight§q_proj: DenseWeight§k_proj: DenseWeight§v_proj: DenseWeight§o_proj: DenseWeight§q_norm: DenseWeight§k_norm: DenseWeight§gate_proj: DenseWeight§up_proj: DenseWeight§down_proj: DenseWeight§q_proj_fp8: Option<Fp8DenseWeight>§k_proj_fp8: Option<Fp8DenseWeight>§v_proj_fp8: Option<Fp8DenseWeight>§o_proj_fp8: Option<Fp8DenseWeight>§gate_proj_fp8: Option<Fp8DenseWeight>§up_proj_fp8: Option<Fp8DenseWeight>§down_proj_fp8: Option<Fp8DenseWeight>§attention_conv_base: Option<DenseWeight>§attention_conv_proj: Option<DenseWeight>§mlp_conv_base: Option<DenseWeight>§mlp_conv_proj: Option<DenseWeight>Auto Trait Implementations§
impl Freeze for DflashLayer
impl RefUnwindSafe for DflashLayer
impl Send for DflashLayer
impl Sync for DflashLayer
impl Unpin for DflashLayer
impl UnwindSafe for DflashLayer
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