Skip to content

TokenLogprob

Source code in docs_src/capo_sagemakertrainingsessionruntime/types/token_logprob.py
class TokenLogprob(TypedDict, closed=True):
    token_id: "int"
    """<p>The vocabulary token ID.</p>"""
    logprob: "float"
    """<p>The log-probability of the token.</p>"""

logprob instance-attribute

logprob: float

The log-probability of the token.

token_id instance-attribute

token_id: int

The vocabulary token ID.