Spaces:
Sleeping
Sleeping
Samuel Thomas
commited on
Commit
·
9fd7617
1
Parent(s):
8792b9a
remove cuda
Browse files
tools.py
CHANGED
@@ -3660,8 +3660,8 @@ Current date: {current_date_str}
|
|
3660 |
|
3661 |
# Cleanup
|
3662 |
if result.get("done"):
|
3663 |
-
torch.cuda.empty_cache()
|
3664 |
-
torch.cuda.ipc_collect()
|
3665 |
gc.collect()
|
3666 |
print("🧹 Released GPU memory after completion")
|
3667 |
|
|
|
3660 |
|
3661 |
# Cleanup
|
3662 |
if result.get("done"):
|
3663 |
+
#torch.cuda.empty_cache()
|
3664 |
+
#torch.cuda.ipc_collect()
|
3665 |
gc.collect()
|
3666 |
print("🧹 Released GPU memory after completion")
|
3667 |
|