llama : llama_kv_cache_clear zeroes data + fix save-load seq
ggml-ci
This commit is contained in:
parent
ac1c6d91de
commit
c225609f10
2 changed files with 103 additions and 46 deletions
2
llama.h
2
llama.h
|
@ -526,7 +526,7 @@ extern "C" {
|
|||
// Returns the number of used KV cells (i.e. have at least one sequence assigned to them)
|
||||
LLAMA_API int32_t llama_get_kv_cache_used_cells(const struct llama_context * ctx);
|
||||
|
||||
// Clear the KV cache
|
||||
// Clear the KV cache - both cell info is erased and KV data is zeroed
|
||||
LLAMA_API void llama_kv_cache_clear(
|
||||
struct llama_context * ctx);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue