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

Function parse_lora_request

tools/server/server-common.cpp:130–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130std::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
143bool are_lora_equal(
144 const std::vector<common_adapter_lora_info> & l1,

Callers 2

init_routesMethod · 0.85
params_from_json_cmplMethod · 0.85

Calls 1

json_valueFunction · 0.85

Tested by

no test coverage detected