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

Method truncate_draft_sequence

examples/server/server.py:12184–12186  ·  view source on GitHub ↗
(self, seq_id: int, keep_len: int)

Source from the content-addressed store, hash-verified

12182 self.draft_provider.accept(seq_id, accepted_draft_tokens)
12183
12184 def truncate_draft_sequence(self, seq_id: int, keep_len: int) -> None:
12185 if self.draft_provider is not None:
12186 self.draft_provider.truncate(seq_id, keep_len)
12187
12188 def copy_draft_sequence(
12189 self,

Calls 1

truncateMethod · 0.45

Tested by

no test coverage detected