Also clear CUDA cache twice if using breakmodel
This commit is contained in:
parent
f986c65a4e
commit
5f82e5ba0d
|
@ -1119,7 +1119,7 @@ def generate(txt, min, max):
|
|||
genselect(genout)
|
||||
|
||||
# Clear CUDA cache again if using GPU
|
||||
if(vars.hascuda and vars.usegpu):
|
||||
if(vars.hascuda and (vars.usegpu or vars.breakmodel)):
|
||||
torch.cuda.empty_cache()
|
||||
|
||||
set_aibusy(0)
|
||||
|
|
Loading…
Reference in New Issue