mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for unloading models
This commit is contained in:
@@ -197,6 +197,7 @@ class HFInferenceModel(InferenceModel):
|
||||
pass
|
||||
if self.hf_torch:
|
||||
if 'breakmodel' in sys.modules:
|
||||
import breakmodel
|
||||
breakmodel.breakmodel = True
|
||||
breakmodel.gpu_blocks = []
|
||||
breakmodel.disk_blocks = 0
|
||||
|
Reference in New Issue
Block a user