mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-10 00:04:34 +00:00
Merge branch 'speculative' into dev
This commit is contained in:
commit
fbbc30c950
6 changed files with 104 additions and 41 deletions
|
@ -772,6 +772,11 @@ extern "C" {
|
|||
LLAMA_API void llama_kv_cache_seq_keep(
|
||||
struct llama_context * ctx,
|
||||
llama_seq_id seq_id);
|
||||
|
||||
// Notify other nodes to keep only the specified sequence in their KV cache
|
||||
LLAMA_API void llama_send_kv_cache_seq_keep(
|
||||
struct llama_context * ctx,
|
||||
llama_seq_id seq_id);
|
||||
|
||||
// Adds relative position "delta" to all tokens that belong to the specified sequence and have positions in [p0, p1)
|
||||
// If the KV cache is RoPEd, the KV data is updated accordingly:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue