fixed another tts bug, clblast selection and quiet mode

This commit is contained in:
Concedo 2025-01-22 21:36:13 +08:00
parent 1cb9805024
commit 0e74db7fd4
4 changed files with 49 additions and 45 deletions

View file

@ -59,7 +59,7 @@ maxhordelen = 400
modelbusy = threading.Lock()
requestsinqueue = 0
defaultport = 5001
KcppVersion = "1.82.2"
KcppVersion = "1.82.3"
showdebug = True
guimode = False
showsamplerwarning = True
@ -388,7 +388,7 @@ lib_option_pairs = [
(lib_vulkan_noavx2, "Use Vulkan (Old CPU)"),
(lib_clblast_noavx2, "Use CLBlast (Older CPU)"),
(lib_failsafe, "Failsafe Mode (Older CPU)")]
default_option, clblast_option, cublas_option, hipblas_option, vulkan_option, noavx2_option, clblast_noavx2_option, vulkan_noavx2_option, failsafe_option = (opt if file_exists(lib) or (os.name == 'nt' and file_exists(opt + ".dll")) else None for lib, opt in lib_option_pairs)
default_option, clblast_option, cublas_option, hipblas_option, vulkan_option, noavx2_option, vulkan_noavx2_option, clblast_noavx2_option, failsafe_option = (opt if file_exists(lib) or (os.name == 'nt' and file_exists(opt + ".dll")) else None for lib, opt in lib_option_pairs)
runopts = [opt for lib, opt in lib_option_pairs if file_exists(lib)]
def init_library():
@ -596,6 +596,8 @@ def exit_with_error(code, message, title="Error"):
sys.exit(code)
def utfprint(str, importance = 2): #0 = only debugmode, 1 = except quiet, 2 = always print
if args.quiet and importance<2: #quiet overrides debugmode
return
if args.debugmode < 1:
if importance==1 and (args.debugmode == -1 or args.quiet):
return