]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama: fix llama-model-saver (#20503)
authorJohannes Gäßler <redacted>
Wed, 25 Mar 2026 10:53:16 +0000 (11:53 +0100)
committerGitHub <redacted>
Wed, 25 Mar 2026 10:53:16 +0000 (12:53 +0200)
commit36dafba5c476297261692bfb24c49ec657030c62
tree6516c20eaaa52bf118ac0403b83c3e23f94a7ea8
parent69e0ecef06bfef7d35c91f791b78651d4a3422e3
llama: fix llama-model-saver (#20503)

* llama : add fd-based model loading via llama_model_load_from_fd

* llama : address review feedback for fd-based model loading

* llama : use FILE pointer instead of fd in public API

* llama : use FILE pointer consistently, address review feedback

* fixup

* fix tensor names

* fix llama-model-saver

* roundtrip tests

* fixup

* refactor tests

* fix prints

* fix model saving

* fix CI, disable Chameleon

* print seed

---------

Co-authored-by: Siddhesh2377 <redacted>
16 files changed:
ggml/include/gguf.h
ggml/src/ggml-impl.h
ggml/src/gguf.cpp
include/llama.h
src/llama-arch.cpp
src/llama-mmap.cpp
src/llama-mmap.h
src/llama-model-loader.cpp
src/llama-model-loader.h
src/llama-model-saver.cpp
src/llama-model-saver.h
src/llama-model.cpp
src/llama-quant.cpp
src/llama.cpp
tests/test-gguf.cpp
tests/test-llama-archs.cpp