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

Function llama_apply_lora_from_file

llama.cpp:10112–10119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10110}
10111
10112int 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
10121int 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 {

Callers

nothing calls this directly

Calls 2

whatMethod · 0.45

Tested by

no test coverage detected