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
4 changes: 3 additions & 1 deletion modelopt/torch/export/unified_export_hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ def _output_hook(module, input, output):
module_names.add(name)

# For MoE models update pre_quant_scale to average pre_quant_scale amongst experts
if is_moe(module) and ("awq" in quantization_format):
if is_moe(module) and (
quantization_format is not QUANTIZATION_NONE and "awq" in quantization_format
):
# update_experts_avg_prequant_scale(module)
grouped_experts = get_experts_list(module, model_type)
for modules in grouped_experts:
Expand Down