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

Function gguf_set_arr_str

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

Source from the content-addressed store, hash-verified

1060}
1061
1062void gguf_set_arr_str(struct gguf_context * ctx, const char * key, const char ** data, size_t n) {
1063 gguf_check_reserved_keys(key, data);
1064 gguf_remove_key(ctx, key);
1065
1066 std::vector<std::string> tmp(n);
1067 for (size_t i = 0; i < n; ++i) {
1068 tmp[i] = data[i];
1069 }
1070 ctx->kv.emplace_back(key, tmp);
1071}
1072
1073// set or add KV pairs from another context
1074void gguf_set_kv(struct gguf_context * ctx, const struct gguf_context * src) {

Callers 4

save_imatrixMethod · 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