MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / set

Method set

smallthinker/src/llama-model-loader.cpp:242–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240 }
241
242 static bool set(const gguf_context * ctx, const int k, T & target, const struct llama_model_kv_override * ovrd = nullptr) {
243 if (try_override<T>(target, ovrd)) {
244 return true;
245 }
246 if (k < 0) { return false; }
247 target = get_kv(ctx, k);
248 return true;
249 }
250
251 static bool set(const gguf_context * ctx, const char * key, T & target, const struct llama_model_kv_override * ovrd = nullptr) {
252 return set(ctx, gguf_find_key(ctx, key), target, ovrd);

Callers 10

_nFunction · 0.45
getListMessageDisplayFunction · 0.45
filterByLeafNodeIdFunction · 0.45
prepareMethod · 0.45
loadMethod · 0.45
unloadMethod · 0.45
enFunction · 0.45
constructorMethod · 0.45
_addRuleMethod · 0.45

Calls 3

setFunction · 0.50
gguf_find_keyFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected