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

ModuleV3PipelineModel

ModuleV3PipelineModel​

class max.pipelines.lib.ModuleV3PipelineModel(pipeline_config, session, devices, kv_cache_config, weights, adapter, return_logits, *, memory_plan, return_hidden_states=ReturnHiddenStates.NONE, max_batch_size=1)

source

Bases: PipelineModel[BaseContextType, Any, Any]

ModuleV3 pipeline model without KV cache.

Subclasses implement _instantiate_module() and optionally _create_model_config(), _prepare_state_dict(), and _module_default_dtype().

Parameters:

load_model()​

load_model()

source

Build and compile the ModuleV3 callable.

Return type:

Callable[[…], Any]