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 class

GraphApiEncoderPipelineModel

GraphApiEncoderPipelineModelโ€‹

class max.pipelines.lib.registration_encoder.GraphApiEncoderPipelineModel(pipeline_config, session, devices, kv_cache_config, weights, adapter=None, return_logits=ReturnLogits.ALL, *, memory_plan, max_batch_size=1)

source

Bases: EncoderPipelineModel

Serves a registered graph-API ENCODER module.

Builds, compiles and initializes the encoder graph.

Parameters:

encoder_clsโ€‹

encoder_cls: ClassVar[type[GraphApiModule]]

source

The registered ENCODER class.

graph_specs()โ€‹

graph_specs(model_config)

source

Returns the encoder graph, with the checkpoint loaded into it.

Parameters:

model_config (Any)

Return type:

dict[str, GraphSpec]