Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartvauder committed Oct 27, 2024
1 parent c03530b commit d3fe13c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LaunchFile/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ def print_system_info():

def flush():
gc.collect()
torch.cuda.empty_cache()
if torch.cuda.is_available():
torch.cuda.empty_cache()


def stop_generation():
Expand Down

0 comments on commit d3fe13c

Please sign in to comment.