mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-25 07:58:03 +01:00
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…
x
Reference in New Issue
Block a user