MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / iq2_grid_size

Function iq2_grid_size

subprojects/llama.cpp/ggml/src/ggml-quants.c:2627–2632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2625}
2626
2627static inline int iq2_grid_size(enum ggml_type type) {
2628 GGML_ASSERT(type == GGML_TYPE_IQ2_XXS || type == GGML_TYPE_IQ2_XS || type == GGML_TYPE_IQ1_S || type == GGML_TYPE_IQ1_M || type == GGML_TYPE_IQ2_S);
2629 return type == GGML_TYPE_IQ2_XXS ? 256 :
2630 type == GGML_TYPE_IQ2_XS ? 512 :
2631 type == GGML_TYPE_IQ1_S || type == GGML_TYPE_IQ1_M ? NGRID_IQ1S : 1024;
2632}
2633
2634static int iq2_compare_func(const void * left, const void * right) {
2635 const int * l = (const int *)left;

Callers 1

iq2xs_init_implFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected