From 36b0c5b39816c039a5235733cfcd2b4e32386ff9 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Thu, 17 Aug 2023 22:45:49 +0800 Subject: [PATCH] fix for incorrect missing backends displayed --- koboldcpp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koboldcpp.py b/koboldcpp.py index 3fc4c7152..0499ab2a4 100755 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -722,8 +722,8 @@ def show_new_gui(): blasbatchsize_values = ["-1", "32", "64", "128", "256", "512", "1024", "2048"] blasbatchsize_text = ["Don't Batch BLAS","32","64","128","256","512","1024","2048"] contextsize_text = ["512", "1024", "2048", "3072", "4096", "6144", "8192", "12288", "16384"] - runopts = [opt for lib, opt in lib_option_pairs if file_exists(lib) or os.name == 'nt' and file_exists(opt + ".dll")] - antirunopts = [opt.replace("Use ", "") for lib, opt in lib_option_pairs if not file_exists(lib) or os.name == 'nt' and not file_exists(opt + ".dll")] + runopts = [opt for lib, opt in lib_option_pairs if file_exists(lib)] + antirunopts = [opt.replace("Use ", "") for lib, opt in lib_option_pairs if not (opt in runopts)] if not any(runopts): show_gui_warning("No Backend Available") def tabbuttonaction(name):