MCPcopy Create free account
hub / github.com/appdevforall/CodeOnTheGo / gguf_set_val_i32

Function gguf_set_val_i32

subprojects/llama.cpp/ggml/src/gguf.cpp:1007–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1005}
1006
1007void gguf_set_val_i32(struct gguf_context * ctx, const char * key, int32_t val) {
1008 gguf_check_reserved_keys(key, val);
1009 gguf_remove_key(ctx, key);
1010 ctx->kv.emplace_back(key, val);
1011}
1012
1013void gguf_set_val_f32(struct gguf_context * ctx, const char * key, float val) {
1014 gguf_check_reserved_keys(key, val);

Callers 6

export_ggufFunction · 0.85
split_strategyMethod · 0.85
add_kvMethod · 0.85
get_random_gguf_contextFunction · 0.85
gguf_set_kvFunction · 0.85

Calls 2

gguf_check_reserved_keysFunction · 0.85
gguf_remove_keyFunction · 0.85

Tested by 1

get_random_gguf_contextFunction · 0.68