| 549 | } |
| 550 | |
| 551 | static hf_cache::hf_files get_split_files(const hf_cache::hf_files & files, |
| 552 | const hf_cache::hf_file & file) { |
| 553 | auto split = get_gguf_split_info(file.path); |
| 554 | |
| 555 | if (split.count <= 1) { |
| 556 | return {file}; |
| 557 | } |
| 558 | hf_cache::hf_files result; |
| 559 | |
| 560 | for (const auto & f : files) { |
| 561 | auto split_f = get_gguf_split_info(f.path); |
| 562 | if (split_f.count == split.count && split_f.prefix == split.prefix) { |
| 563 | result.push_back(f); |
| 564 | } |
| 565 | } |
| 566 | return result; |
| 567 | } |
| 568 | |
| 569 | static hf_cache::hf_file find_best_mmproj(const hf_cache::hf_files & files, |
| 570 | const std::string & model) { |
no test coverage detected