mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Update aux device to depend on primary device
This commit is contained in:
11
utils.py
11
utils.py
@@ -650,17 +650,6 @@ class UIProgressBarFile(object):
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
def get_auxilary_device():
|
||||
"""Get device auxilary tensors like inputs should be stored on."""
|
||||
|
||||
# NOTE: TPU isn't a torch device, so TPU stuff gets sent to CPU.
|
||||
if koboldai_vars.hascuda and koboldai_vars.usegpu:
|
||||
return koboldai_vars.gpu_device
|
||||
elif koboldai_vars.hascuda:
|
||||
# TODO: Primary device
|
||||
return "cuda"
|
||||
return "cpu"
|
||||
|
||||
#==================================================================#
|
||||
# Strips submitted text from the text returned by the AI
|
||||
#==================================================================#
|
||||
|
Reference in New Issue
Block a user