Skip to content

Commit 1ca666f

Browse files
committed
allow handling multipart files up to 999
1 parent 8cf812e commit 1ca666f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

koboldcpp.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
extra_images_max = 4
6464

6565
# global vars
66-
KcppVersion = "1.96"
66+
KcppVersion = "1.96.1"
6767
showdebug = True
6868
kcpp_instance = None #global running instance
6969
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_config_target":""}
@@ -1116,7 +1116,7 @@ def autoset_gpu_layers(ctxsize, sdquanted, bbs, qkv_level): #shitty algo to dete
11161116
match = re.search(r'-(\d{5})-of-(\d{5})\.', fname)
11171117
if match:
11181118
total_parts = int(match.group(2))
1119-
if total_parts > 1 and total_parts <= 9:
1119+
if total_parts > 1 and total_parts <= 999:
11201120
if showmultigpuwarning:
11211121
showmultigpuwarning = False
11221122
print("Multi-Part GGUF detected. Layer estimates may not be very accurate - recommend setting layers manually.")
@@ -6335,7 +6335,7 @@ def download_model_from_url(url, permitted_types=[".gguf",".safetensors", ".ggml
63356335
match = re.search(r'-(\d{5})-of-(\d{5})\.', url)
63366336
if match:
63376337
total_parts = int(match.group(2))
6338-
if total_parts > 1 and total_parts <= 9:
6338+
if total_parts > 1 and total_parts <= 999:
63396339
current_part = 1
63406340
base_url = url
63416341
for part_num in range(current_part + 1, total_parts + 1):

0 commit comments

Comments
 (0)