Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
free
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected