pub enum DflashQuantization {
Bf16,
Fp8Weights,
}Expand description
2026-09-25: Drafter weight precision. from_weights builds the head as
Bf16 and switches it to Fp8Weights unless METRALE_DFLASH_DRAFTER_FP8=0
or the fp8_gemm_n128_row_scaled kernels are missing.
Variants§
Bf16
Fp8Weights
2026-09-25: Weight-only FP8: the q/k/v/o/gate/up/down weights get FP8
E4M3 copies with per-row f32 scales at load, and the LM head is FP8
(lm_head_shared_fp8). The KV cache stays bf16.
Trait Implementations§
Source§impl Clone for DflashQuantization
impl Clone for DflashQuantization
Source§fn clone(&self) -> DflashQuantization
fn clone(&self) -> DflashQuantization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DflashQuantization
impl Debug for DflashQuantization
Source§impl PartialEq for DflashQuantization
impl PartialEq for DflashQuantization
impl Copy for DflashQuantization
impl Eq for DflashQuantization
impl StructuralPartialEq for DflashQuantization
Auto Trait Implementations§
impl Freeze for DflashQuantization
impl RefUnwindSafe for DflashQuantization
impl Send for DflashQuantization
impl Sync for DflashQuantization
impl Unpin for DflashQuantization
impl UnwindSafe for DflashQuantization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.