common : fix gguf selection in common_list_cached_models (#20996)
Signed-off-by: Adrien Gallouët <angt@huggingface.co>
This commit is contained in:
parent
ec54ac13a8
commit
f2c72b8f1f
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue