Skip to content

Commit 848558d

Browse files
committed
import vars logic fix
1 parent b650b84 commit 848558d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

koboldcpp.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,7 @@ def import_vars(dict):
11581158
if str(g) in dict["usecublas"]:
11591159
gpu_choice_var.set(str(g+1))
11601160
break
1161-
if "gpulayers" in dict and dict["gpulayers"]:
1162-
gpulayers_var.set(dict["gpulayers"])
1163-
1164-
if "noavx2" in dict and "noblas" in dict and dict["noblas"] and dict["noavx2"]:
1161+
elif "noavx2" in dict and "noblas" in dict and dict["noblas"] and dict["noavx2"]:
11651162
if failsafe_option is not None:
11661163
runopts_var.set(failsafe_option)
11671164
elif "noavx2" in dict and dict["noavx2"]:
@@ -1172,6 +1169,8 @@ def import_vars(dict):
11721169
runopts_var.set(default_option)
11731170
elif openblas_option is not None:
11741171
runopts_var.set(openblas_option)
1172+
if "gpulayers" in dict and dict["gpulayers"]:
1173+
gpulayers_var.set(dict["gpulayers"])
11751174
if "blasthreads" in dict and dict["blasthreads"]:
11761175
blas_threads_var.set(str(dict["blasthreads"]))
11771176
else:

0 commit comments

Comments
 (0)