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 module

max.pipelines.modeling.types.pipeline_variants

Text generationโ€‹

BatchTypeType of batch.
ImageContentPartAn image content part of a message.
MessageContentRepresent a PEP 604 union type
TextContentPartA plain-text content part of a message.
TextGenerationInputsInput parameters for text generation pipeline operations.
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.
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.

Image generationโ€‹

PixelGenerationInputsInput data structure for pixel generation pipelines.