Skip to content

Commit ae4f75a

Browse files
committed
Update app.py
1 parent 30e214a commit ae4f75a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LaunchFile/app.py

+2
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,8 @@ def flush():
327327
gc.collect()
328328
if torch.cuda.is_available():
329329
torch.cuda.empty_cache()
330+
if torch.backends.mps.is_available():
331+
torch.mps.empty_cache()
330332

331333

332334
def stop_generation():

0 commit comments

Comments
 (0)