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

Function gguf_set_val_f32

ggml.c:20035–20040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20033}
20034
20035void gguf_set_val_f32(struct gguf_context * ctx, const char * key, float val) {
20036 const int idx = gguf_get_or_add_key(ctx, key);
20037
20038 ctx->kv[idx].type = GGUF_TYPE_FLOAT32;
20039 ctx->kv[idx].value.float32 = val;
20040}
20041
20042void gguf_set_val_u64(struct gguf_context * ctx, const char * key, uint64_t val) {
20043 const int idx = gguf_get_or_add_key(ctx, key);

Callers 6

gguf_set_kvFunction · 0.70
save_opt_context_ggufFunction · 0.50
save_llama_model_ggufFunction · 0.50
save_as_llama_modelFunction · 0.50
save_llama_lora_ggufFunction · 0.50
gguf_ex_writeFunction · 0.50

Calls 1

gguf_get_or_add_keyFunction · 0.85

Tested by

no test coverage detected