From 409e393d1018adf97eddd001a3151e4138daaf00 Mon Sep 17 00:00:00 2001 From: Concedo <39025047+LostRuins@users.noreply.github.com> Date: Sat, 30 Nov 2024 23:28:24 +0800 Subject: [PATCH] fixed critical bug in image model loader --- create_ver_file.sh | 4 ++-- koboldcpp.py | 2 +- otherarch/sdcpp/stable-diffusion.h | 3 +++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/create_ver_file.sh b/create_ver_file.sh index b3a34bc37..bc484dc87 100644 --- a/create_ver_file.sh +++ b/create_ver_file.sh @@ -4,8 +4,8 @@ extracted_ver=$(cat koboldcpp.py | grep 'KcppVersion = ' | cut -d '"' -f2) echo "Extracted Version: $extracted_ver" vmajor=$(echo $extracted_ver | cut -d '.' -f1) vminor=$(echo $extracted_ver | cut -d '.' -f2) -echo "Major Version: $vmajor" -echo "Minor Version: $vminor" +echo "Parsed Major Version: $vmajor" +echo "Parsed Minor Version: $vminor" cp version_template.txt version.txt sed "s/MYVER_MAJOR/$vmajor/g" version.txt > tempversion.txt && mv tempversion.txt version.txt sed "s/MYVER_MINOR/$vminor/g" version.txt > tempversion.txt && mv tempversion.txt version.txt \ No newline at end of file diff --git a/koboldcpp.py b/koboldcpp.py index 8d38e0a8c..4acd3e0a5 100644 --- a/koboldcpp.py +++ b/koboldcpp.py @@ -47,7 +47,7 @@ maxhordelen = 400 modelbusy = threading.Lock() requestsinqueue = 0 defaultport = 5001 -KcppVersion = "1.79" +KcppVersion = "1.79.1" showdebug = True guimode = False showsamplerwarning = True diff --git a/otherarch/sdcpp/stable-diffusion.h b/otherarch/sdcpp/stable-diffusion.h index 5beb6ca08..3a2eed7c7 100644 --- a/otherarch/sdcpp/stable-diffusion.h +++ b/otherarch/sdcpp/stable-diffusion.h @@ -95,6 +95,9 @@ enum sd_type_t { SD_TYPE_Q4_0_8_8 = 33, SD_TYPE_TQ1_0 = 34, SD_TYPE_TQ2_0 = 35, + SD_TYPE_IQ4_NL_4_4 = 36, + // SD_TYPE_IQ4_NL_4_8 = 37, + // SD_TYPE_IQ4_NL_8_8 = 38, SD_TYPE_COUNT, };