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

Function llama_model_quantize

smallthinker/src/llama-quant.cpp:955–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

953}
954
955uint32_t llama_model_quantize(
956 const char * fname_inp,
957 const char * fname_out,
958 const llama_model_quantize_params * params) {
959 try {
960 llama_model_quantize_impl(fname_inp, fname_out, params);
961 } catch (const std::exception & err) {
962 LLAMA_LOG_ERROR("%s: failed to quantize: %s\n", __func__, err.what());
963 return 1;
964 }
965
966 return 0;
967}

Callers 1

mainFunction · 0.50

Calls 2

whatMethod · 0.45

Tested by

no test coverage detected