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

Method _reset_sampler

examples/server/server.py:1385–1387  ·  view source on GitHub ↗
(self, seq_id: int)

Source from the content-addressed store, hash-verified

1383 return token
1384
1385 def _reset_sampler(self, seq_id: int) -> None:
1386 if 0 <= seq_id < len(self._samplers):
1387 llama_cpp.llama_sampler_reset(self._samplers[seq_id])
1388
1389 def close(self) -> None:
1390 self.set_target_processing_enabled(False)

Callers 4

_draft_chain_headsMethod · 0.95
draftMethod · 0.95
draft_manyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected