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

Method __init__

llama_cpp/llama.py:2493–2496  ·  view source on GitHub ↗
(self, min_tokens: int, token_eos: int)

Source from the content-addressed store, hash-verified

2491
2492class MinTokensLogitsProcessor(LogitsProcessor):
2493 def __init__(self, min_tokens: int, token_eos: int):
2494 self.min_tokens = min_tokens
2495 self.token_eos = token_eos
2496 self.prompt_tokens = None
2497
2498 def __call__(
2499 self, input_ids: npt.NDArray[np.intc], scores: npt.NDArray[np.single]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected