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

Method eval_logits

llama_cpp/llama.py:589–593  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

587
588 @property
589 def eval_logits(self) -> Deque[List[float]]:
590 return deque(
591 self.scores[: self.n_tokens, :].tolist(),
592 maxlen=self._n_ctx if self._logits_all else 1,
593 )
594
595 def tokenize(
596 self, text: bytes, add_bos: bool = True, special: bool = False

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected