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
Per-drafter-layer Qwen3-style weights. Phase 1 is BF16-only; Phase G
(2026-05-28) adds optional FP8 weight fields populated at model load
when ATLAS_DFLASH_DRAFTER_FP8=1. The BF16 fields are always present
(Fp8 path falls back to them for any GEMM whose Fp8 weight is 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.base_kernel [2 applications, kernel_size, hidden].
attention_conv_proj: Option<DenseWeight>attention_conv.kernel_projection.weight [2*kernel*groups, hidden].
mlp_conv_base: Option<DenseWeight>mlp_conv.base_kernel, same shape as attention_conv_base.
mlp_conv_proj: Option<DenseWeight>mlp_conv.kernel_projection.weight, same shape as attention_conv_proj.
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