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

Function gguf_get_arr_str

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

Source from the content-addressed store, hash-verified

818}
819
820const char * gguf_get_arr_str(const struct gguf_context * ctx, int64_t key_id, size_t i) {
821 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
822 GGML_ASSERT(ctx->kv[key_id].get_type() == GGUF_TYPE_STRING);
823 return ctx->kv[key_id].data_string[i].c_str();
824}
825
826size_t gguf_get_arr_n(const struct gguf_context * ctx, int64_t key_id) {
827 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 8

gguf_kv_to_strFunction · 0.85
load_imatrixFunction · 0.85
load_imatrixMethod · 0.85
gguf_kv_to_strFunction · 0.85
loadMethod · 0.85
get_arrMethod · 0.85
handcrafted_check_kvFunction · 0.85
all_kv_in_otherFunction · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_typeMethod · 0.45

Tested by 2

handcrafted_check_kvFunction · 0.68
all_kv_in_otherFunction · 0.68