fixed critical bug in image model loader

This commit is contained in:
Concedo 2024-11-30 23:28:24 +08:00
parent 153da19274
commit 409e393d10
3 changed files with 6 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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,
};