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

Function get_kv_f32

smallthinker/tools/export-lora/export-lora.cpp:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static float get_kv_f32(struct gguf_context * ctx_gguf, const std::string & key) {
27 int id = gguf_find_key(ctx_gguf, key.c_str());
28 return id < 0 ? 0.0f : gguf_get_val_f32(ctx_gguf, id);
29}
30
31static void zeros(std::ofstream & file, size_t n) {
32 char zero = 0;

Callers 2

file_inputMethod · 0.85

Calls 3

gguf_find_keyFunction · 0.50
gguf_get_val_f32Function · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected