mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-03-29 01:40:03 +01:00
Set primary device to CPU if in CPU-only mode
This commit is contained in:
parent
bd7d7b41a1
commit
ab5ab79003
@ -616,6 +616,8 @@ def device_config(config):
|
||||
|
||||
if(not breakmodel.gpu_blocks):
|
||||
print("Nothing assigned to a GPU, reverting to CPU only mode")
|
||||
import breakmodel
|
||||
breakmodel.primary_device = "cpu"
|
||||
vars.breakmodel = False
|
||||
vars.usegpu = False
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user