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

Method set

src/llama-model-loader.cpp:251–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249 }
250
251 static bool set(const gguf_context * ctx, const int k, T & target, const struct llama_model_kv_override * ovrd = nullptr) {
252 if (try_override<T>(target, ovrd)) {
253 return true;
254 }
255 if (k < 0) { return false; }
256 target = get_kv(ctx, k);
257 return true;
258 }
259
260 static bool set(const gguf_context * ctx, const char * key, T & target, const struct llama_model_kv_override * ovrd = nullptr) {
261 return set(ctx, gguf_find_key(ctx, key), target, ovrd);

Callers 4

initMethod · 0.45
ubatch_addMethod · 0.45
prepareMethod · 0.45

Calls 1

gguf_find_keyFunction · 0.85

Tested by

no test coverage detected