Skip to main content

Python class

ProcessorInputs

ProcessorInputsโ€‹

class max.interfaces.ProcessorInputs(logits, context)

source

Bases: object

Inputs passed to a logits processor callback.

Parameters:

contextโ€‹

context: TextGenerationContext

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.