Skip to content

Commit 8396add

Browse files
committed
removed hunyuan autoguess template, fixed multi file loading up to 999 parts
1 parent f3f6168 commit 8396add

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

kcpp_adapters/AutoGuess.json

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -210,17 +210,6 @@
210210
"assistant_start": "<|response|>\n",
211211
"assistant_end": "<|endofresponse|>\n"
212212
}
213-
}, {
214-
"search": ["<|extra_4|>", "<|extra_0|>", "用户", "助手"],
215-
"name": "Hunyuan",
216-
"adapter": {
217-
"system": "",
218-
"system_end": "",
219-
"user": "用户:\n",
220-
"user_end": "",
221-
"assistant": "助手:\n",
222-
"assistant_end": ""
223-
}
224213
}, {
225214
"search": ["rwkv-world"],
226215
"name": "RWKV World",

koboldcpp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ def autoset_gpu_layers(ctxsize, sdquanted, bbs, qkv_level): #shitty algo to dete
11121112
if fsize > (10*1024*1024): #dont bother with models < 10mb
11131113
cs = ctxsize
11141114
mem = gpumem
1115-
if "-00001-of-0000" in fname:
1115+
if "-00001-of-00" in fname:
11161116
match = re.search(r'-(\d{5})-of-(\d{5})\.', fname)
11171117
if match:
11181118
total_parts = int(match.group(2))
@@ -6316,7 +6316,7 @@ def download_model_from_url(url, permitted_types=[".gguf",".safetensors", ".ggml
63166316
break
63176317
if ((url.startswith("http://") or url.startswith("https://")) and end_ext_ok):
63186318
dlfile = downloader_internal(url, "auto", False, min_file_size)
6319-
if handle_multipart and "-00001-of-0000" in url: #handle multipart files up to 9 parts
6319+
if handle_multipart and "-00001-of-00" in url: #handle multipart files up to 9 parts
63206320
match = re.search(r'-(\d{5})-of-(\d{5})\.', url)
63216321
if match:
63226322
total_parts = int(match.group(2))

0 commit comments

Comments
 (0)