MCPcopy Index your code
hub / github.com/abetlen/llama-cpp-python / LogitsProcessorList

Class LogitsProcessorList

llama_cpp/llama.py:2473–2479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2471
2472
2473class LogitsProcessorList(List[LogitsProcessor]):
2474 def __call__(
2475 self, input_ids: npt.NDArray[np.intc], scores: npt.NDArray[np.single]
2476 ) -> npt.NDArray[np.single]:
2477 for processor in self:
2478 scores = processor(input_ids, scores)
2479 return scores
2480
2481
2482StoppingCriteria = Callable[[npt.NDArray[np.intc], npt.NDArray[np.single]], bool]

Callers 1

_create_completionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…