Skip to main content

Python class

TopLogProb

TopLogProb​

class max.pipelines.request.TopLogProb(*, token, logprob, bytes=None)

source

Bases: BaseModel

Log probability information for a token.

Parameters:

bytes​

bytes: list[int] | None

source

logprob​

logprob: float

source

model_config​

model_config: ClassVar[ConfigDict] = {'frozen': True}

source

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

token​

token: str

source