Skip to content

Commit

Permalink
remove empty cache call
Browse files Browse the repository at this point in the history
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
  • Loading branch information
kylesayrs committed Jan 29, 2025
1 parent b61092b commit b9bd970
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/llmcompressor/modifiers/utils/pytorch_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ def run_calibration_forward(
# move on to next calibration sample
intermediates.append((e.args, e.kwargs))

# TODO: not ideal, figure out where we aren't freeing memory instead
# currently without this we run OOM on the 2nd forward pass
torch.cuda.empty_cache()

return intermediates


Expand Down

0 comments on commit b9bd970

Please sign in to comment.