pub trait QuantFormat:
Send
+ Sync
+ Debug {
// Required methods
fn name(&self) -> &'static str;
fn base_variant(&self) -> Nvfp4Variant;
fn is_ignored(&self, module_path: &str) -> bool;
// Provided method
fn variant_for(&self, module_path: &str) -> Nvfp4Variant { ... }
}Expand description
2026-09-25: A quantized-weight layout: its log name, the Nvfp4Variant
it maps to, and the module globs its ignore list keeps unquantized. The
weight loaders pick their variant through weight_map::detect_nvfp4_variant,
not through this trait.
Required Methods§
Sourcefn base_variant(&self) -> Nvfp4Variant
fn base_variant(&self) -> Nvfp4Variant
2026-09-25: The Nvfp4Variant this layout maps to.
Sourcefn is_ignored(&self, module_path: &str) -> bool
fn is_ignored(&self, module_path: &str) -> bool
2026-09-30: Whether the ignore list names the module module_path (a module path,
not a tensor name: no .weight), under the format’s own matching (IgnoreList).
Provided Methods§
Sourcefn variant_for(&self, module_path: &str) -> Nvfp4Variant
fn variant_for(&self, module_path: &str) -> Nvfp4Variant
2026-09-25: Bf16Raw for an ignored module, else Self::base_variant.