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

Function lora_get_enabled_ids

tools/server/server-common.cpp:158–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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;
160 for (size_t i = 0; i < loras.size(); ++i) {
161 if (loras[i].scale > 0) {
162 enabled_ids.push_back(i);
163 }
164 }
165 return enabled_ids;
166}
167
168//
169// base64 utils (TODO: use the base64::decode from base64.hpp)

Callers 3

launch_slot_with_taskMethod · 0.85
update_slotsMethod · 0.85
lora_should_clear_cacheFunction · 0.85

Calls 2

sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected