MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / are_lora_equal

Function are_lora_equal

tools/server/server-common.cpp:143–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143bool are_lora_equal(
144 const std::vector<common_adapter_lora_info> & l1,
145 const std::vector<common_adapter_lora_info> & l2) {
146 if (l1.size() != l2.size()) {
147 return false;
148 }
149 for (size_t i = 0; i < l1.size(); ++i) {
150 // we don't check lora.path to reduce the time complexity
151 if (l1[i].scale != l2[i].scale || l1[i].ptr != l2[i].ptr) {
152 return false;
153 }
154 }
155 return true;
156}
157
158std::vector<size_t> lora_get_enabled_ids(const std::vector<common_adapter_lora_info> & loras) {
159 std::vector<size_t> enabled_ids;

Callers 3

can_batch_withMethod · 0.85
launch_slot_with_taskMethod · 0.85
lora_should_clear_cacheFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected