| 953 | } |
| 954 | |
| 955 | uint32_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 | } |
no test coverage detected