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

Method accept_draft_tokens

examples/server/server.py:12180–12182  ·  view source on GitHub ↗
(self, seq_id: int, accepted_draft_tokens: int)

Source from the content-addressed store, hash-verified

12178 self.draft_provider.set_target_processing_enabled(enabled)
12179
12180 def accept_draft_tokens(self, seq_id: int, accepted_draft_tokens: int) -> None:
12181 if self.draft_provider is not None:
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:

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected