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

Function llama_model_apply_lora_from_file

llama.cpp:10121–10128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {
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
10130size_t llama_model_offload_ffn_split(struct llama_model * model) {
10131 llama_augmentation_model_loader * aug_ml = new llama_augmentation_model_loader(model);

Callers 1

Calls 2

whatMethod · 0.45

Tested by

no test coverage detected