| 622 | } |
| 623 | |
| 624 | bool 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 | |
| 637 | void llama_context::clear_adapter_lora() { |
| 638 | LLAMA_LOG_DEBUG("%s: call\n", __func__); |
no test coverage detected