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 function

module_pipeline_model

module_pipeline_model()​

max.pipelines.lib.module_registration.module_pipeline_model(config, modules, batching)

source

Returns the pipeline model that serves a module registration.

One registration always returns the same class.

Parameters:

Raises:

  • ValueError – If the registration names a framework-owned role, has no DECODER.
  • NotImplementedError – If it registers a role other than DECODER and VISION.
  • TypeError – If a registered class isn’t a Module, or the registration’s VISION module, decoder and batch processor don’t fit together.

Return type:

type[ModuleV3DecoderPipelineModel]