Skip to content
Open
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
3 changes: 2 additions & 1 deletion modelopt/torch/export/unified_export_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ def requantize_resmooth_fused_llm_layers(model: torch.nn.Module):

# For MoE models update pre_quant_scale to average pre_quant_scale amongst experts
if is_moe(module) and (
quantization_format is not QUANTIZATION_NONE
quantization_format is not None
and quantization_format != QUANTIZATION_NONE
and ("awq" in quantization_format or quantization_format == QUANTIZATION_NVFP4_SVDQUANT)
):
# update_experts_avg_prequant_scale(module)
Expand Down