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

Method _clear_batch

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

Source from the content-addressed store, hash-verified

1406 self.target_processing_enabled = enabled
1407
1408 def _clear_batch(self) -> None:
1409 self.batch.n_tokens = 0
1410
1411 def _batch_embeddings(self) -> np.ndarray:
1412 return self.batch_embeddings

Callers 7

_process_rowsMethod · 0.95
_draft_chain_headsMethod · 0.95
draftMethod · 0.95
draft_manyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected