llama : zero KV cache used upon clear

ggml-ci
This commit is contained in:
Georgi Gerganov 2023-11-22 19:30:48 +02:00
parent 79cb8f0040
commit 671f639c59
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -1629,6 +1629,7 @@ static void llama_kv_cache_clear(struct llama_kv_cache & cache) {
cache.cells[i].seq_id.clear();
}
cache.head = 0;
cache.used = 0;
}
static void llama_kv_cache_seq_rm(