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

Function gguf_get_key

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

Source from the content-addressed store, hash-verified

796}
797
798const char * gguf_get_key(const struct gguf_context * ctx, int64_t key_id) {
799 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
800 return ctx->kv[key_id].get_key().c_str();
801}
802
803enum gguf_type gguf_get_kv_type(const struct gguf_context * ctx, int64_t key_id) {
804 GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));

Callers 6

load_hparamsMethod · 0.85
get_kvMethod · 0.85
llama_model_loaderMethod · 0.85
all_kv_in_otherFunction · 0.85
gguf_find_keyFunction · 0.85

Calls 2

gguf_get_n_kvFunction · 0.85
get_keyMethod · 0.80

Tested by 1

all_kv_in_otherFunction · 0.68