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 class

ComponentModel

ComponentModel

class max.pipelines.modeling.base.ComponentModel(config, encoding, devices, weights, *, cache_config=None)

source

Bases: ABC

Base interface for component models with weight-backed execution.

Parameters:

load_model()

abstract load_model()

source

Load and return a runtime model instance.

Return type:

Callable[[…], Any] | None