Skip to content

Commit 42ebce3

Browse files
authored
common : fix get_gguf_split_info (ggml-org#20946)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
1 parent a94fdb0 commit 42ebce3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/download.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ static gguf_split_info get_gguf_split_info(const std::string & path) {
460460
int count = 1;
461461

462462
if (std::regex_match(prefix, m, re_split)) {
463-
prefix = m[1].str();
464463
index = std::stoi(m[2].str());
465464
count = std::stoi(m[3].str());
465+
prefix = m[1].str();
466466
}
467467

468468
std::string tag;

0 commit comments

Comments
 (0)