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

Function ggml_quantize_init

subprojects/llama.cpp/ggml/src/ggml.c:7497–7513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7495////////////////////////////////////////////////////////////////////////////////
7496
7497void ggml_quantize_init(enum ggml_type type) {
7498 ggml_critical_section_start();
7499
7500 switch (type) {
7501 case GGML_TYPE_IQ2_XXS:
7502 case GGML_TYPE_IQ2_XS:
7503 case GGML_TYPE_IQ2_S:
7504 case GGML_TYPE_IQ1_S:
7505 case GGML_TYPE_IQ1_M: iq2xs_init_impl(type); break;
7506 case GGML_TYPE_IQ3_XXS: iq3xs_init_impl(256); break;
7507 case GGML_TYPE_IQ3_S: iq3xs_init_impl(512); break;
7508 default: // nothing
7509 break;
7510 }
7511
7512 ggml_critical_section_end();
7513}
7514
7515void ggml_quantize_free(void) {
7516 ggml_critical_section_start();

Callers 4

mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ggml_quantize_chunkFunction · 0.85

Calls 4

iq2xs_init_implFunction · 0.85
iq3xs_init_implFunction · 0.85

Tested by 3

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68