llama : add llama_kv_cache_compress (EXPERIMENTAL)
This commit is contained in:
parent
c24a2a6e60
commit
14d757066b
3 changed files with 262 additions and 0 deletions
8
llama.h
8
llama.h
|
@ -557,6 +557,14 @@ extern "C" {
|
|||
struct llama_context * ctx,
|
||||
llama_seq_id seq_id);
|
||||
|
||||
// [EXPERIMENTAL] Compress the data in the KV cache
|
||||
// This will be applied:
|
||||
// - lazily on next llama_decode()
|
||||
// - explicitly with llama_kv_cache_update()
|
||||
LLAMA_API void llama_kv_cache_compress(
|
||||
struct llama_context * ctx,
|
||||
llama_pos delta);
|
||||
|
||||
// Defragment the KV cache
|
||||
// This will be applied:
|
||||
// - lazily on next llama_decode()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue