pub fn detect_nvfp4_variant(
store: &WeightStore,
config: &ModelConfig,
) -> Nvfp4VariantExpand description
2026-09-25: Detect the on-disk weight format.
config_declared_variantwins when it answers. A checkpoint with anignorelist can leave a projection unquantized, which tensor-name sniffing would misread.- Otherwise the tensor names are sniffed, in this order:
compressed-tensors
weight_packed, then FP8weight_scale_invor an FP8E4M3 projection weight, thenBf16Rawwhen layer 0’s MLPgate_projhas noweight_scale, andStandardlast.