nemo_automodel.components.distributed.pipelining.runtime
nemo_automodel.components.distributed.pipelining.runtime
Module Contents
Classes
Functions
API
A model-owned runtime resource that must be ready before a PP step.
Identity of the process-local runtime resource this initializer owns.
Immutable configuration expected by resource_key.
Prepare the resource for the upcoming pipeline microbatch.
Parameters:
Maximum number of tokens in the upcoming pipeline microbatch.
Device used by the pipeline stage.
Collect model-owned initializers, deduplicating compatible shared resources.
The pipeline layer treats keys and signatures as opaque values. A repeated resource key is initialized once when every provider reports the same signature; conflicting signatures are rejected before any pipeline traffic.
Parameters:
Pipeline-local model partitions whose modules may provide runtime initializers.
Returns: list[PipelineRuntimeInitializer]
Initializers in module traversal order, with compatible shared resources deduplicated.
Raises:
TypeError: If an initializer’s resource key or signature is not hashable.RuntimeError: If providers report incompatible signatures for the same resource key.