Skip to content

Commit 243c720

Browse files
committed
perf: add @torch.compile(dynamic=True) decorator to _grid_search_mse_compiled
1 parent 898f18d commit 243c720

File tree

1 file changed

+1
-0
lines changed
  • src/llmcompressor/observers

1 file changed

+1
-0
lines changed

src/llmcompressor/observers/mse.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ def _grid_search_mse(
318318
return best_min_val, best_max_val
319319

320320

321+
@torch.compile(dynamic=True)
321322
def _grid_search_mse_compiled(
322323
observed: torch.Tensor,
323324
args: QuantizationArgs,

0 commit comments

Comments
 (0)