mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-26 00:17:41 +01:00
No Half on CPU
Should fix CPU executions
This commit is contained in:
parent
11c64c3fe7
commit
d7a2424d2d
@ -289,7 +289,7 @@ def device_config(model):
|
||||
print("Nothing assigned to a GPU, reverting to CPU only mode")
|
||||
vars.breakmodel = False
|
||||
vars.usegpu = False
|
||||
model = model.half().to('cpu')
|
||||
model = model.to('cpu')
|
||||
generator = model.generate
|
||||
return
|
||||
model.half().to('cpu')
|
||||
|
Loading…
x
Reference in New Issue
Block a user