llama_cpp_for_radxa_dragon_.../common
Christian Fillion 7ee953a64a
llama : add llama_sampler_init for safe usage of llama_sampler_free (#11727)
The C API in llama.h claims users can implement `llama_sampler_i` to
create custom `llama_sampler`. The sampler chain takes ownership and
calls `llama_sampler_free` on them. However, `llama_sampler_free` is
hard-coded to use `delete`. This is undefined behavior if the object
wasn't also allocated via `new` from libllama's C++ runtime. Callers
in C and C-compatible languages do not use C++'s `new` operator. C++
callers may not be sharing the same heap as libllama.
2025-02-07 11:33:27 +02:00
..
cmake
arg.cpp common : add default embeddings presets (#11677) 2025-02-07 09:15:22 +01:00
arg.h
base64.hpp
build-info.cpp.in
chat-template.hpp sync: minja (#11641) 2025-02-05 01:00:12 +00:00
chat.cpp sync: minja (#11641) 2025-02-05 01:00:12 +00:00
chat.hpp tool-call: support Command R7B (+ return tool_plan "thoughts" in API) (#11585) 2025-02-02 09:25:38 +00:00
CMakeLists.txt sampling : support for llguidance grammars (#10224) 2025-02-02 09:55:32 +02:00
common.cpp sync: minja (#11641) 2025-02-05 01:00:12 +00:00
common.h tool-call: support Command R7B (+ return tool_plan "thoughts" in API) (#11585) 2025-02-02 09:25:38 +00:00
console.cpp
console.h
json-schema-to-grammar.cpp sampling : support for llguidance grammars (#10224) 2025-02-02 09:55:32 +02:00
json-schema-to-grammar.h sampling : support for llguidance grammars (#10224) 2025-02-02 09:55:32 +02:00
json.hpp
llguidance.cpp llama : add llama_sampler_init for safe usage of llama_sampler_free (#11727) 2025-02-07 11:33:27 +02:00
log.cpp Name colors (#11573) 2025-02-02 15:14:48 +00:00
log.h Name colors (#11573) 2025-02-02 15:14:48 +00:00
minja.hpp sync: minja (#11641) 2025-02-05 01:00:12 +00:00
ngram-cache.cpp
ngram-cache.h
sampling.cpp sampling : support for llguidance grammars (#10224) 2025-02-02 09:55:32 +02:00
sampling.h sampling : support for llguidance grammars (#10224) 2025-02-02 09:55:32 +02:00
speculative.cpp
speculative.h
stb_image.h