| 101 | // |
| 102 | |
| 103 | bool lora_all_alora(const std::vector<common_adapter_lora_info> & loras) { |
| 104 | bool found_alora = false; |
| 105 | for (const auto & lora : loras) { |
| 106 | if (lora.scale != 0) { |
| 107 | if (llama_adapter_get_alora_n_invocation_tokens(lora.ptr) == 0) { |
| 108 | return false; |
| 109 | } |
| 110 | found_alora = true; |
| 111 | } |
| 112 | } |
| 113 | return found_alora; |
| 114 | } |
| 115 | |
| 116 | bool lora_should_clear_cache( |
| 117 | const std::vector<common_adapter_lora_info> & current, |
no test coverage detected