Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,11 @@ def _resolve_quant_config(
return get_quant_config(hf_config, component_model_path)

quant_cls = get_quantization_config(server_args.quantization)
return quant_cls.from_config({})
try:
return quant_cls.from_config({})
except (ValueError, KeyError):
ignored = getattr(server_args, "quantization_ignored_layers", None)
Comment on lines +500 to +503

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All default values for online quantization are already set for all supported online quantization methods (mxfp4 and fp8), no need to add try catch, 1-line fix is sufficient as detailed here: #26415

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ColinZ22, thanks for the cleaner fix — agreed, quant_cls() is the right abstraction and generalizes to mxfp4, so it's strictly better than the FP8-only try/except here. I'll close this PR in favor of #26415.

return quant_cls(ignored_layers=ignored)

quant_config = get_quant_config(hf_config, component_model_path)
if quant_config is None and server_args.transformer_weights_path:
Expand Down
Loading