We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent faf36b7 commit 6b2411eCopy full SHA for 6b2411e
modelopt/torch/export/unified_export_hf.py
@@ -491,12 +491,6 @@ def _export_hf_checkpoint(
491
return quantized_state_dict, quant_config
492
493
494
-def _quant_applied(hf_quant_config: dict) -> bool:
495
- """Check if any quantization is applied."""
496
- q = hf_quant_config.get("quantization", {})
497
- return not (q.get("quant_algo") == QUANTIZATION_NONE and not q.get("quantized_layers"))
498
-
499
500
def export_hf_checkpoint(
501
model: nn.Module,
502
dtype: torch.dtype | None = None,
0 commit comments