| 24 | } |
| 25 | |
| 26 | static 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 | |
| 31 | static void zeros(std::ofstream & file, size_t n) { |
| 32 | char zero = 0; |
no test coverage detected