pub enum QuantFormat {
Nvfp4,
Fp8,
}Expand description
2026-09-25: Runtime quantization format of a loader’s weights, which the qwen3 and qwen35 loaders resolve from the checkpoint’s NVFP4 variant.
Variants§
Nvfp4
2026-09-25: NVFP4 E2M1; every variant other than Fp8Dequanted.
Fp8
2026-09-25: FP8 E4M3 block-scaled, served natively (Fp8Dequanted).
Implementations§
Source§impl QuantFormat
impl QuantFormat
Sourcepub fn peak_memory_multiplier(&self) -> f64
pub fn peak_memory_multiplier(&self) -> f64
2026-09-25: Peak GPU memory as a multiple of on-disk weight bytes, for an OOM pre-flight estimate.
Trait Implementations§
Source§impl Clone for QuantFormat
impl Clone for QuantFormat
Source§fn clone(&self) -> QuantFormat
fn clone(&self) -> QuantFormat
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 QuantFormat
impl Debug for QuantFormat
Source§impl PartialEq for QuantFormat
impl PartialEq for QuantFormat
impl Copy for QuantFormat
impl Eq for QuantFormat
impl StructuralPartialEq for QuantFormat
Auto Trait Implementations§
impl Freeze for QuantFormat
impl RefUnwindSafe for QuantFormat
impl Send for QuantFormat
impl Sync for QuantFormat
impl Unpin for QuantFormat
impl UnwindSafe for QuantFormat
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.