[Bugfix] Accept canonicalized modelopt_* quant_method in _extract_modelopt_quant_algo (#42181)

Signed-off-by: Vadim Gimpelson <vadim.gimpelson@gmail.com>
This commit is contained in:
Vadim Gimpelson
2026-05-11 11:10:57 -04:00
committed by GitHub
parent 4955990f1b
commit a2e776d716
@@ -250,7 +250,7 @@ class ModelOptQuantConfigBase(QuantizationConfig):
"""
if hf_quant_cfg is None:
return None
if hf_quant_cfg.get("quant_method", "").lower() != "modelopt":
if not hf_quant_cfg.get("quant_method", "").lower().startswith("modelopt"):
return None
if "quantization" in hf_quant_cfg:
quant_config = hf_quant_cfg["quantization"]