diff --git a/koboldcpp.py b/koboldcpp.py index 336e45496..9d91578d6 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -310,12 +310,6 @@ def init_library(): print("!!! Attempting to use FAILSAFE MODE !!!") else: print("Attempting to use non-avx2 compatibility library.") - elif args.useclblast: - if not file_exists(lib_clblast) or (os.name=='nt' and not file_exists("clblast.dll")): - print("Warning: CLBlast library file not found. Non-BLAS library will be used.") - else: - print("Attempting to use CLBlast library for faster prompt ingestion. A compatible clblast will be required.") - use_clblast = True elif (args.usecublas is not None): if not file_exists(lib_cublas) and not file_exists(lib_hipblas): print("Warning: CuBLAS library file not found. Non-BLAS library will be used.") @@ -332,7 +326,12 @@ def init_library(): else: print("Attempting to use Vulkan library for faster prompt ingestion. A compatible Vulkan will be required.") use_vulkan = True - + elif args.useclblast: + if not file_exists(lib_clblast) or (os.name=='nt' and not file_exists("clblast.dll")): + print("Warning: CLBlast library file not found. Non-BLAS library will be used.") + else: + print("Attempting to use CLBlast library for faster prompt ingestion. A compatible clblast will be required.") + use_clblast = True else: if not file_exists(lib_openblas) or (os.name=='nt' and not file_exists("libopenblas.dll")): print("Warning: OpenBLAS library file not found. Non-BLAS library will be used.") @@ -2749,6 +2748,11 @@ def show_gui(): savdict["usemlock"] = False savdict["debugmode"] = 0 savdict["ssl"] = None + savdict["useclblast"] = None + savdict["usecublas"] = None + savdict["usevulkan"] = None + savdict["tensor_split"] = None + savdict["config"] = None filename = asksaveasfile(filetypes=file_type, defaultextension=file_type) if filename == None: return