Skip to content

Commit

Permalink
import vars logic fix
Browse files Browse the repository at this point in the history
  • Loading branch information
YellowRoseCx committed Jul 31, 2023
1 parent b650b84 commit 848558d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,10 +1158,7 @@ def import_vars(dict):
if str(g) in dict["usecublas"]:
gpu_choice_var.set(str(g+1))
break
if "gpulayers" in dict and dict["gpulayers"]:
gpulayers_var.set(dict["gpulayers"])

if "noavx2" in dict and "noblas" in dict and dict["noblas"] and dict["noavx2"]:
elif "noavx2" in dict and "noblas" in dict and dict["noblas"] and dict["noavx2"]:
if failsafe_option is not None:
runopts_var.set(failsafe_option)
elif "noavx2" in dict and dict["noavx2"]:
Expand All @@ -1172,6 +1169,8 @@ def import_vars(dict):
runopts_var.set(default_option)
elif openblas_option is not None:
runopts_var.set(openblas_option)
if "gpulayers" in dict and dict["gpulayers"]:
gpulayers_var.set(dict["gpulayers"])
if "blasthreads" in dict and dict["blasthreads"]:
blas_threads_var.set(str(dict["blasthreads"]))
else:
Expand Down

0 comments on commit 848558d

Please sign in to comment.