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

Function common_set_adapter_lora

smallthinker/common/common.cpp:1069–1076  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069void common_set_adapter_lora(struct llama_context * ctx, std::vector<common_adapter_lora_info> & lora) {
1070 llama_clear_adapter_lora(ctx);
1071 for (auto & la : lora) {
1072 if (la.scale != 0.0f) {
1073 llama_set_adapter_lora(ctx, la.ptr, la.scale);
1074 }
1075 }
1076}
1077
1078struct llama_model_params common_model_params_to_llama(common_params & params) {
1079 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