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

Method mtmd_free

llama_cpp/llama_chat_format.py:3316–3320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3314 raise ValueError("Vision is not supported by this model")
3315
3316 def mtmd_free():
3317 with suppress_stdout_stderr(disable=self.verbose):
3318 if self.mtmd_ctx is not None:
3319 self._mtmd_cpp.mtmd_free(self.mtmd_ctx)
3320 self.mtmd_ctx = None
3321
3322 self._exit_stack.callback(mtmd_free)
3323

Callers 3

mtmd_freeMethod · 0.45
__init__Method · 0.45
closeMethod · 0.45

Calls 1

Tested by

no test coverage detected