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

Function llama_batch_free

llama_cpp/llama_cpp.py:3033–3035  ·  view source on GitHub ↗

Frees a batch of tokens allocated with llama_batch_init()

(batch: llama_batch, /)

Source from the content-addressed store, hash-verified

3031# LLAMA_API void llama_batch_free(struct llama_batch batch);
3032@ctypes_function("llama_batch_free", [llama_batch], None)
3033def llama_batch_free(batch: llama_batch, /):
3034 """Frees a batch of tokens allocated with llama_batch_init()"""
3035 ...
3036
3037
3038# // Process a batch of tokens.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…