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

Function gguf_write_to_buf

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

Source from the content-addressed store, hash-verified

1402}
1403
1404void gguf_write_to_buf(const struct gguf_context * ctx, std::vector<int8_t> & buf, bool only_meta) {
1405 gguf_writer_buf gw(buf);
1406 gguf_write_out(ctx, gw, only_meta);
1407}
1408
1409bool gguf_write_to_file(const struct gguf_context * ctx, const char * fname, bool only_meta) {
1410 FILE * file = ggml_fopen(fname, "wb");

Callers 3

test_roundtripFunction · 0.85
gguf_get_meta_sizeFunction · 0.85
gguf_get_meta_dataFunction · 0.85

Calls 1

gguf_write_outFunction · 0.85

Tested by 1

test_roundtripFunction · 0.68