Commit 3a83da72 authored by masterpiecebestquality's avatar masterpiecebestquality
Browse files

empty cache after execute()

parent 00a9189e
...@@ -209,6 +209,7 @@ class PromptExecutor: ...@@ -209,6 +209,7 @@ class PromptExecutor:
executed = set(executed) executed = set(executed)
for x in executed: for x in executed:
self.old_prompt[x] = copy.deepcopy(prompt[x]) self.old_prompt[x] = copy.deepcopy(prompt[x])
torch.cuda.empty_cache()
def validate_inputs(prompt, item): def validate_inputs(prompt, item):
unique_id = item unique_id = item
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment