pub enum Nvfp4Variant {
Standard,
CompressedTensors,
Fp8Dequanted,
Bf16Raw,
}Expand description
2026-09-25: On-disk weight format, chosen by detect_nvfp4_variant.
Variants§
Standard
2026-09-25: ModelOpt NVFP4: weight, weight_scale, weight_scale_2,
optional input_scale (read by quantized).
CompressedTensors
2026-09-25: compressed-tensors NVFP4: weight_packed, weight_scale,
weight_global_scale, optional input_global_scale (read by quantized_v2).
Fp8Dequanted
2026-09-25: Block-scaled FP8 E4M3 (weight plus its block scale).
quantized_any turns such a weight into NVFP4 through
a BF16 dequant (quantized_from_fp8); loaders that serve FP8 natively
read it with load_fp8_block_scaled_as_fp8weight instead.
Bf16Raw
2026-09-25: No usable NVFP4 or FP8 metadata: the BF16 .weight is
quantized to NVFP4 at load, and detection logs a warning.
Trait Implementations§
Source§impl Clone for Nvfp4Variant
impl Clone for Nvfp4Variant
Source§fn clone(&self) -> Nvfp4Variant
fn clone(&self) -> Nvfp4Variant
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 Nvfp4Variant
impl Debug for Nvfp4Variant
Source§impl PartialEq for Nvfp4Variant
impl PartialEq for Nvfp4Variant
impl Copy for Nvfp4Variant
impl Eq for Nvfp4Variant
impl StructuralPartialEq for Nvfp4Variant
Auto Trait Implementations§
impl Freeze for Nvfp4Variant
impl RefUnwindSafe for Nvfp4Variant
impl Send for Nvfp4Variant
impl Sync for Nvfp4Variant
impl Unpin for Nvfp4Variant
impl UnwindSafe for Nvfp4Variant
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.