Skip to content

Commit 854564e

Browse files
committed
address comments: remove irrelevant code
Signed-off-by: h-guo18 <[email protected]>
1 parent 6d897ec commit 854564e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

modelopt/torch/export/unified_export_hf.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -491,12 +491,6 @@ def _export_hf_checkpoint(
491491
return quantized_state_dict, quant_config
492492

493493

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-
500494
def export_hf_checkpoint(
501495
model: nn.Module,
502496
dtype: torch.dtype | None = None,

0 commit comments

Comments
 (0)