mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Also clear CUDA cache twice if using breakmodel
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user