MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / extract_quant_bits

Function extract_quant_bits

common/download.cpp:540–549  ·  view source on GitHub ↗

Q4_0 -> 4, F16 -> 16, NVFP4 -> 4, Q8_K_M -> 8, etc

Source from the content-addressed store, hash-verified

538
539// Q4_0 -> 4, F16 -> 16, NVFP4 -> 4, Q8_K_M -> 8, etc
540static 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
551static hf_cache::hf_files get_split_files(const hf_cache::hf_files & files,
552 const hf_cache::hf_file & file) {

Callers 1

find_best_mmprojFunction · 0.85

Calls 1

get_gguf_split_infoFunction · 0.70

Tested by

no test coverage detected