mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-01 09:01:57 +00:00
llama : remove implicit recurrent state rollbacks
This commit is contained in:
@@ -191,7 +191,7 @@ int main(int argc, char ** argv){
|
||||
// KV cache management
|
||||
// clean the cache of draft tokens that weren't accepted
|
||||
// FIXME: recurrent and hybrid models
|
||||
llama_past_seq_rm(ctx, 0, n_past, -1);
|
||||
llama_kv_cache_seq_rm(ctx, 0, n_past, -1);
|
||||
|
||||
common_batch_clear(batch_tgt);
|
||||
common_batch_add(batch_tgt, draft[0], n_past, { 0 }, true);
|
||||
|
||||
Reference in New Issue
Block a user