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

Method reset

llama_cpp/_internals.py:502–503  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

500 return self.batch.n_tokens
501
502 def reset(self):
503 self.batch.n_tokens = 0
504
505 def set_batch(self, batch: Sequence[int], n_past: int, logits_all: bool):
506 n_tokens = len(batch)

Callers 1

resetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected