| 1743 | } |
| 1744 | |
| 1745 | static void llama_kv_cache_clear(struct llama_kv_cache & cache) { |
| 1746 | for (int32_t i = 0; i < (int32_t) cache.size; ++i) { |
| 1747 | cache.cells[i].pos = -1; |
| 1748 | cache.cells[i].seq_id.clear(); |
| 1749 | } |
| 1750 | cache.head = 0; |
| 1751 | } |
| 1752 | |
| 1753 | static void llama_kv_cache_seq_rm( |
| 1754 | struct llama_kv_cache & cache, |
no test coverage detected