Q4_0 -> 4, F16 -> 16, NVFP4 -> 4, Q8_K_M -> 8, etc
| 538 | |
| 539 | // Q4_0 -> 4, F16 -> 16, NVFP4 -> 4, Q8_K_M -> 8, etc |
| 540 | static int extract_quant_bits(const std::string & filename) { |
| 541 | auto split = get_gguf_split_info(filename); |
| 542 | |
| 543 | auto pos = split.tag.find_first_of("0123456789"); |
| 544 | if (pos == std::string::npos) { |
| 545 | return 0; |
| 546 | } |
| 547 | |
| 548 | return std::stoi(split.tag.substr(pos)); |
| 549 | } |
| 550 | |
| 551 | static hf_cache::hf_files get_split_files(const hf_cache::hf_files & files, |
| 552 | const hf_cache::hf_file & file) { |
no test coverage detected