MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / striequals

Function striequals

smallthinker/tools/quantize/quantize.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69static const char * const LLM_KV_QUANTIZE_IMATRIX_N_CHUNKS = "quantize.imatrix.chunks_count";
70
71static bool striequals(const char * a, const char * b) {
72 while (*a && *b) {
73 if (std::tolower(*a) != std::tolower(*b)) {
74 return false;
75 }
76 a++; b++;
77 }
78 return *a == *b;
79}
80
81static bool try_parse_ftype(const std::string & ftype_str_in, llama_ftype & ftype, std::string & ftype_str_out) {
82 std::string ftype_str;

Callers 2

try_parse_ftypeFunction · 0.70
parse_ggml_typeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected