DflashLayer

Struct DflashLayer 

Source
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§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more