| 128 | } |
| 129 | |
| 130 | std::map<int, float> parse_lora_request(const json & data) { |
| 131 | std::map<int, float> lora; |
| 132 | |
| 133 | // set value |
| 134 | for (const auto & entry : data) { |
| 135 | int id = json_value(entry, "id", -1); |
| 136 | float scale = json_value(entry, "scale", 0.0f); |
| 137 | lora[id] = scale; |
| 138 | } |
| 139 | |
| 140 | return lora; |
| 141 | } |
| 142 | |
| 143 | bool are_lora_equal( |
| 144 | const std::vector<common_adapter_lora_info> & l1, |
no test coverage detected