]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
ggml : Callback before abort (#14481)
authorBjörn Ganster <redacted>
Wed, 2 Jul 2025 05:19:31 +0000 (07:19 +0200)
committerGitHub <redacted>
Wed, 2 Jul 2025 05:19:31 +0000 (08:19 +0300)
commit68b3cd65141586ef13a698baa9029627f038f102
tree79371e6fc5525e39331dbf7f1637083c3b16c1fc
parentde569441470332ff922c23fb0413cc957be75b25
ggml : Callback before abort (#14481)

* Add a callback that will be called just before abort. This allows apps without a console to display a message to the user and save data if needed.

* Return previous callback to allow callback chaining

* style fixes

---------

Co-authored-by: Diego Devesa <redacted>
ggml/include/ggml.h
ggml/src/ggml.c