| 1055 | } |
| 1056 | |
| 1057 | uint32_t llama_model_quantize( |
| 1058 | const char * fname_inp, |
| 1059 | const char * fname_out, |
| 1060 | const llama_model_quantize_params * params) { |
| 1061 | try { |
| 1062 | llama_model_quantize_impl(fname_inp, fname_out, params); |
| 1063 | } catch (const std::exception & err) { |
| 1064 | LLAMA_LOG_ERROR("%s: failed to quantize: %s\n", __func__, err.what()); |
| 1065 | return 1; |
| 1066 | } |
| 1067 | |
| 1068 | return 0; |
| 1069 | } |
no test coverage detected