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

ProcessorInputs

ProcessorInputsโ€‹

class max.pipelines.context.ProcessorInputs(logits, context)

source

Bases: object

Inputs passed to a logits processor callback.

Parameters:

contextโ€‹

context: TextContext

source

The generation context containing request state and sampling configuration.

logitsโ€‹

logits: md.Buffer

source

The model logits buffer with shape (N, vocab_size) and float32 dtype.