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

Method clear_memory

examples/server/server.py:12084–12086  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12082 self._embedding_batch_refs = []
12083
12084 def clear_memory(self) -> None:
12085 if self.mem is not None:
12086 llama_cpp.llama_memory_clear(self.mem, True)
12087
12088 def add_batch_tokens(
12089 self,

Callers 3

embedMethod · 0.95
clear_resident_stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected