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

Method __call__

llama_cpp/llama.py:2486–2489  ·  view source on GitHub ↗
(
        self, input_ids: npt.NDArray[np.intc], logits: npt.NDArray[np.single]
    )

Source from the content-addressed store, hash-verified

2484
2485class StoppingCriteriaList(List[StoppingCriteria]):
2486 def __call__(
2487 self, input_ids: npt.NDArray[np.intc], logits: npt.NDArray[np.single]
2488 ) -> bool:
2489 return any([stopping_criteria(input_ids, logits) for stopping_criteria in self])
2490
2491
2492class MinTokensLogitsProcessor(LogitsProcessor):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected