IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /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. /get-started.md).

Python module

max.pipelines.lib.pipeline_parallel

Pipeline parallelism: a decoder cut into stages of contiguous layers.

Models​

PipelinedModelMixin for a pipeline model whose decoder can run as pipeline stages.
StageTracedEnds a traced stage's build once it knows what it hands the next.

Partitioning​

PartitionSpecWhere a checkpoint's decoder may be cut into pipeline stages.
PipelineStageOne stage of a decoder cut into pipeline stages.
partition_specReturns where the architecture allows the checkpoint to be cut.
pipeline_stagesReturns the stages of a partition, in order.
split_layersReturns each pipeline stage's decoder layer count.
stage_layersReturns the decoder layers the config builds.
stage_pipeline_configReturns the config that builds one pipeline stage of the main model.