MCPcopy Index your code
hub / github.com/abetlen/llama-cpp-python / kv_cache_seq_rm

Method kv_cache_seq_rm

llama_cpp/_internals.py:298–301  ·  view source on GitHub ↗
(self, seq_id: int, p0: int, p1: int)

Source from the content-addressed store, hash-verified

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"

Callers 2

evalMethod · 0.80
generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected