pub struct ModeloptFormat {
pub algo: String,
pub ignore: IgnoreList,
}Expand description
2026-09-25: A ModelOpt checkpoint, and the fallback of
super::detect_quant_format when no quantized weights are found.
Fields§
§algo: String2026-09-25: The config’s quant_algo; nothing in this module reads it,
and QuantFormat::base_variant is Standard whatever it says.
ignore: IgnoreList2026-09-30: The modules that ship unquantized, matched as the format specifies.
Implementations§
Trait Implementations§
Source§impl Debug for ModeloptFormat
impl Debug for ModeloptFormat
Source§impl QuantFormat for ModeloptFormat
impl QuantFormat for ModeloptFormat
Source§fn base_variant(&self) -> Nvfp4Variant
fn base_variant(&self) -> Nvfp4Variant
2026-09-25: The
Nvfp4Variant this layout maps to.Source§fn 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).Source§fn 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.Auto Trait Implementations§
impl Freeze for ModeloptFormat
impl RefUnwindSafe for ModeloptFormat
impl Send for ModeloptFormat
impl Sync for ModeloptFormat
impl Unpin for ModeloptFormat
impl UnwindSafe for ModeloptFormat
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