mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
TPU Fix
This commit is contained in:
@@ -1561,6 +1561,7 @@ def general_startup(override_args=None):
|
|||||||
|
|
||||||
if koboldai_vars.use_colab_tpu and args.model_backend == "Huggingface":
|
if koboldai_vars.use_colab_tpu and args.model_backend == "Huggingface":
|
||||||
args.model_backend = "Huggingface MTJ"
|
args.model_backend = "Huggingface MTJ"
|
||||||
|
|
||||||
|
|
||||||
if args.model:
|
if args.model:
|
||||||
# At this point we have to try to load the model through the selected backend
|
# At this point we have to try to load the model through the selected backend
|
||||||
@@ -1589,6 +1590,7 @@ def general_startup(override_args=None):
|
|||||||
logger.error("Missing: {}".format(", ".join(mising_parameters)))
|
logger.error("Missing: {}".format(", ".join(mising_parameters)))
|
||||||
exit()
|
exit()
|
||||||
arg_parameters['id'] = args.model
|
arg_parameters['id'] = args.model
|
||||||
|
arg_parameters['model'] = args.model
|
||||||
arg_parameters['model_path'] = args.path
|
arg_parameters['model_path'] = args.path
|
||||||
arg_parameters['menu_path'] = ""
|
arg_parameters['menu_path'] = ""
|
||||||
model_backends[args.model_backend].set_input_parameters(arg_parameters)
|
model_backends[args.model_backend].set_input_parameters(arg_parameters)
|
||||||
|
Reference in New Issue
Block a user