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

Function gguf_get_meta_size

ggml.c:20387–20394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20385}
20386
20387size_t gguf_get_meta_size(const struct gguf_context * ctx) {
20388 // no allocs - only compute size
20389 struct gguf_buf buf = gguf_buf_init(0);
20390
20391 gguf_write_to_buf(ctx, &buf, true);
20392
20393 return buf.offset;
20394}
20395
20396void gguf_get_meta_data(const struct gguf_context * ctx, void * data) {
20397 struct gguf_buf buf = gguf_buf_init(16*1024);

Callers 3

export_loraFunction · 0.50
clip_model_quantizeFunction · 0.50

Calls 2

gguf_buf_initFunction · 0.85
gguf_write_to_bufFunction · 0.70

Tested by

no test coverage detected