mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Fix for breakmodel
This commit is contained in:
@@ -820,7 +820,7 @@ class HFTorchInferenceModel(HFInferenceModel):
|
||||
breakmodel.gpu_blocks = [0] * n_layers
|
||||
return
|
||||
|
||||
elif breakmodel.gpu_blocks != []:
|
||||
elif breakmodel.gpu_blocks == []:
|
||||
logger.info("Breakmodel not specified, assuming GPU 0")
|
||||
breakmodel.gpu_blocks = [n_layers]
|
||||
n_layers = 0
|
||||
|
Reference in New Issue
Block a user