]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : fix get_gguf_split_info (#20946)
authorAdrien Gallouët <redacted>
Tue, 24 Mar 2026 12:33:14 +0000 (13:33 +0100)
committerGitHub <redacted>
Tue, 24 Mar 2026 12:33:14 +0000 (13:33 +0100)
Signed-off-by: Adrien Gallouët <redacted>
common/download.cpp

index 151517b19e510a4abdfffa31579d017d86e54c57..b0abbba8f64b95da988c6ac7a999d728355a0b72 100644 (file)
@@ -460,9 +460,9 @@ static gguf_split_info get_gguf_split_info(const std::string & path) {
     int count = 1;
 
     if (std::regex_match(prefix, m, re_split)) {
-        prefix = m[1].str();
         index = std::stoi(m[2].str());
         count = std::stoi(m[3].str());
+        prefix = m[1].str();
     }
 
     std::string tag;