IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).

Python class

LogProb

LogProb​

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

source

Bases: BaseModel

Log probability information for output tokens.

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

top_logprobs​

top_logprobs: list[TopLogProb] | None

source