MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / close

Method close

llama_cpp/llama.py:2280–2282  ·  view source on GitHub ↗

Explicitly free the model from memory.

(self)

Source from the content-addressed store, hash-verified

2278 return self._ctx.pooling_type()
2279
2280 def close(self) -> None:
2281 """Explicitly free the model from memory."""
2282 self._stack.close()
2283
2284 def __del__(self) -> None:
2285 self.close()

Callers 4

__del__Method · 0.95
__exit__Method · 0.45
__call__Method · 0.45
freeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected