DflashWeights

Struct DflashWeights 

Source
pub struct DflashWeights {
Show 13 fields pub config: DflashConfig, pub fc: DenseWeight, pub hidden_norm: DenseWeight, pub norm: DenseWeight, pub layers: Vec<DflashLayerWeights>, pub draft_id_to_target_id: Option<Vec<i64>>, pub markov_w1: Option<DenseWeight>, pub markov_w2: Option<DenseWeight>, pub confidence_proj: Option<DenseWeight>, pub confidence_bias: Option<DenseWeight>, pub selector_pred: Option<DenseWeight>, pub selector_succ: Option<DenseWeight>, pub selector_hidden_proj: Option<DenseWeight>,
}
Expand description

2026-09-25: The drafter weights load_dflash_weights returns. It holds no embedding or LM head.

Fields§

§config: DflashConfig§fc: DenseWeight§hidden_norm: DenseWeight§norm: DenseWeight§layers: Vec<DflashLayerWeights>§draft_id_to_target_id: Option<Vec<i64>>

2026-09-25: Some (and empty) when the store has a d2t or draft_id_to_target_id tensor; the table itself is not loaded.

§markov_w1: Option<DenseWeight>

2026-09-25: markov_head.markov_w1.weight. markov_w1 and markov_w2 are Some when markov_rank > 0 and the store has markov_w1.

§markov_w2: Option<DenseWeight>

2026-09-25: markov_head.markov_w2.weight.

§confidence_proj: Option<DenseWeight>

2026-09-25: confidence_head.proj.weight. The weight and the bias are Some when enable_confidence_head is set and the store has the weight.

§confidence_bias: Option<DenseWeight>

2026-09-25: confidence_head.proj.bias.

§selector_pred: Option<DenseWeight>

2026-09-25: candidate_selector.predecessor_codebook. The three selector tensors are Some when dflash_config sets selector_rank and selector_top_k and the store has this codebook.

§selector_succ: Option<DenseWeight>

2026-09-25: candidate_selector.successor_codebook.

§selector_hidden_proj: Option<DenseWeight>

2026-09-25: candidate_selector.hidden_projection.weight.

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> Same for T

Source§

type Output = T

Should always be Self
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
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,