We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63a034f commit d169f2dCopy full SHA for d169f2d
modelopt/torch/quantization/algorithms.py
@@ -668,12 +668,10 @@ def run_search(self):
668
QuantRecipe.fold_pqs_to_weights(self.model)
669
670
671
-@torch.compile
672
def _get_auto_quantize_score(grad_output, output_diff):
673
return ((grad_output.float() ** 2) * (output_diff.float() ** 2)).sum()
674
675
676
677
def _add_auto_quantize_score(grad_output, output_diff, score_tensor):
678
score_tensor += _get_auto_quantize_score(grad_output, output_diff)
679
0 commit comments