MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / common_set_adapter_lora

Function common_set_adapter_lora

subprojects/llama.cpp/common/common.cpp:1346–1353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1344}
1345
1346void common_set_adapter_lora(struct llama_context * ctx, std::vector<common_adapter_lora_info> & lora) {
1347 llama_clear_adapter_lora(ctx);
1348 for (auto & la : lora) {
1349 if (la.scale != 0.0f) {
1350 llama_set_adapter_lora(ctx, la.ptr, la.scale);
1351 }
1352 }
1353}
1354
1355struct llama_model_params common_model_params_to_llama(common_params & params) {
1356 auto mparams = llama_model_default_params();

Callers 2

update_slotsMethod · 0.85
common_init_from_paramsFunction · 0.85

Calls 2

llama_clear_adapter_loraFunction · 0.85
llama_set_adapter_loraFunction · 0.85

Tested by

no test coverage detected