| 10110 | } |
| 10111 | |
| 10112 | int llama_apply_lora_from_file(struct llama_context * ctx, const char * path_lora, float scale, const char * path_base_model, int n_threads) { |
| 10113 | try { |
| 10114 | return llama_apply_lora_from_file_internal(ctx->model, path_lora, scale, path_base_model, n_threads); |
| 10115 | } catch (const std::exception & err) { |
| 10116 | LLAMA_LOG_ERROR("%s: failed to apply lora adapter: %s\n", __func__, err.what()); |
| 10117 | return 1; |
| 10118 | } |
| 10119 | } |
| 10120 | |
| 10121 | int llama_model_apply_lora_from_file(const struct llama_model * model, const char * path_lora, float scale, const char * path_base_model, int n_threads) { |
| 10122 | try { |
nothing calls this directly
no test coverage detected