pub struct DflashLayerWeights {Show 15 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 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 projections go through
dense_bf16_or_nvfp4; the norms and conv tensors are the store’s pointers.
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§attention_conv_base: Option<DenseWeight>2026-09-25: attention_conv.base_kernel. The four conv tensors are Some
on every layer or on none (see load_dflash_weights).
attention_conv_proj: Option<DenseWeight>2026-09-25: attention_conv.kernel_projection.weight.
mlp_conv_base: Option<DenseWeight>2026-09-25: mlp_conv.base_kernel.
mlp_conv_proj: Option<DenseWeight>2026-09-25: mlp_conv.kernel_projection.weight.
Auto Trait Implementations§
impl Freeze for DflashLayerWeights
impl RefUnwindSafe for DflashLayerWeights
impl Send for DflashLayerWeights
impl Sync for DflashLayerWeights
impl Unpin for DflashLayerWeights
impl UnwindSafe for DflashLayerWeights
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