(self, seq_id: int, p0: int, p1: int)
| 296 | llama_cpp.llama_memory_clear(self.memory, True) |
| 297 | |
| 298 | def kv_cache_seq_rm(self, seq_id: int, p0: int, p1: int) -> bool: |
| 299 | assert self.memory is not None, "Memory is not initialized" |
| 300 | seq_id = seq_id if seq_id >= 0 else 0 |
| 301 | return llama_cpp.llama_memory_seq_rm(self.memory, seq_id, p0, p1) |
| 302 | |
| 303 | def kv_cache_seq_cp(self, seq_id_src: int, seq_id_dst: int, p0: int, p1: int): |
| 304 | assert self.memory is not None, "Memory is not initialized" |