| 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 { |
| 10123 | return llama_apply_lora_from_file_internal(*model, path_lora, scale, path_base_model, n_threads); |
| 10124 | } catch (const std::exception & err) { |
| 10125 | LLAMA_LOG_ERROR("%s: failed to apply lora adapter: %s\n", __func__, err.what()); |
| 10126 | return 1; |
| 10127 | } |
| 10128 | } |
| 10129 | |
| 10130 | size_t llama_model_offload_ffn_split(struct llama_model * model) { |
| 10131 | llama_augmentation_model_loader * aug_ml = new llama_augmentation_model_loader(model); |
no test coverage detected