tinker_cookbook.completers.TokensWithLogprobs
class tinker_cookbook.completers.TokensWithLogprobs(**)
A sequence of token IDs with optional log-probabilities and a stop reason.
Fields:
- tokens (list[int])
- maybe_logprobs (list[float] | None)
- stop_reason (tinker.StopReason) – Default:
'stop'