MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / gguf_write_to_file_ptr

Function gguf_write_to_file_ptr

ggml/src/gguf.cpp:1515–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513}
1514
1515bool gguf_write_to_file_ptr(const struct gguf_context * ctx, FILE * file, bool only_meta) {
1516 GGML_ASSERT(file);
1517
1518 try {
1519 gguf_writer_file gw(file);
1520 gguf_write_out(ctx, gw, only_meta);
1521 } catch (const std::runtime_error& ex) {
1522 GGML_LOG_ERROR("%s: failed to write GGUF data: %s\n", __func__, ex.what());
1523 return false;
1524 }
1525 return true;
1526}
1527
1528bool gguf_write_to_file(const struct gguf_context * ctx, const char * fname, bool only_meta) {
1529 FILE * file = ggml_fopen(fname, "wb");

Callers 3

saveMethod · 0.85
test_roundtripFunction · 0.85
gguf_write_to_fileFunction · 0.85

Calls 2

gguf_write_outFunction · 0.85
whatMethod · 0.45

Tested by 1

test_roundtripFunction · 0.68