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

Method rm_adapter_lora

smallthinker/src/llama-context.cpp:624–635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624bool llama_context::rm_adapter_lora(
625 llama_adapter_lora * adapter) {
626 LLAMA_LOG_DEBUG("%s: adapter = %p\n", __func__, (void *) adapter);
627
628 auto pos = loras.find(adapter);
629 if (pos != loras.end()) {
630 loras.erase(pos);
631 return true;
632 }
633
634 return false;
635}
636
637void llama_context::clear_adapter_lora() {
638 LLAMA_LOG_DEBUG("%s: call\n", __func__);

Callers 1

llama_rm_adapter_loraFunction · 0.80

Calls 2

findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected