Skip to main content

Python module

max.pipelines.modeling.types.pipeline_variants

Text generation​

BatchTypeType of batch.
MessageContentRepresent a PEP 604 union type
SpecDecodingStatePer-request state for speculative decoding.
TextContentPartA plain-text content part of a message.
TextGenerationContextProtocol defining the interface for text generation contexts in token generation.
TextGenerationContextTypeType variable.
TextGenerationInputsInput parameters for text generation pipeline operations.
TextGenerationOutputRepresents the output of a text generation operation.
TextGenerationRequestAn immutable request for text token generation from a pipeline.
TextGenerationRequestFunctionRepresents a function definition for a text generation request.
TextGenerationRequestMessageA single message in a text generation request conversation.
TextGenerationRequestToolRepresents a tool definition for a text generation request.
TextGenerationResponseFormatRepresents the response format specification for a text generation request.
VLMContextTypeType variable.
VLMTextGenerationContextProtocol defining the interface for VLM input contexts.

Image content​

ImageContentPartAn image content part of a message.
ImageMetadataMetadata about an image in the prompt.
VideoContentPartA video content part of a message.

Embeddings​

EmbeddingsContextProtocol defining the interface for embeddings generation contexts.
EmbeddingsGenerationContextTypeType variable.
EmbeddingsGenerationInputsBatched inputs for an embeddings generation pipeline step.
EmbeddingsGenerationOutputResponse structure for embedding generation.

Audio generation​

AudioGenerationContextTypeType variable.
AudioGenerationInputsInput data structure for audio generation pipelines.
AudioGenerationMetadataRepresents metadata associated with audio generation.
AudioGenerationOutputRepresents a response from the audio generation API.
AudioGenerationRequestAn immutable request for audio generation from a pipeline.

Image generation​

PixelGenerationContextProtocol defining the interface for pixel generation contexts.
PixelGenerationContextTypeType variable.
PixelGenerationInputsInput data structure for pixel generation pipelines.