common : fix gguf selection in common_list_cached_models (#20996)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
+3
-1
@@ -454,7 +454,9 @@ static gguf_split_info get_gguf_split_info(const std::string & path) {
|
|||||||
std::smatch m;
|
std::smatch m;
|
||||||
|
|
||||||
std::string prefix = path;
|
std::string prefix = path;
|
||||||
string_remove_suffix(prefix, ".gguf");
|
if (!string_remove_suffix(prefix, ".gguf")) {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
int index = 1;
|
int index = 1;
|
||||||
int count = 1;
|
int count = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user