mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Don't ruin breakmodel
This commit is contained in:
@@ -412,7 +412,7 @@ class HFTorchInferenceModel(HFInferenceModel):
|
|||||||
**tf_kwargs,
|
**tf_kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
if not self.lazy_load:
|
if not self.lazy_load and not self.breakmodel:
|
||||||
# We need to move the model to the desired device
|
# We need to move the model to the desired device
|
||||||
if (not self.usegpu) or torch.cuda.device_count() <= 0:
|
if (not self.usegpu) or torch.cuda.device_count() <= 0:
|
||||||
model = model.to("cpu")
|
model = model.to("cpu")
|
||||||
|
Reference in New Issue
Block a user