nemo_curator.pipeline.pipeline
Module Contents
Classes
API
User-facing pipeline definition for composing processing stages.
String representation of the pipeline.
Decompose composite stages into execution stages.
Parameters:
List of stages that may include composite stages
Returns: tuple[list[ProcessingStage], dict[str, list[str]]]
tuple[list[ProcessingStage], dict[str, list[str]]]: Tuple of (execution stages, decomposition info dict)
Raises:
TypeError: If a composite stage is decomposed into another composite stage
Add a stage to the pipeline.
Parameters:
Processing stage to add
Returns: Pipeline
Self (Pipeline) for method chaining
Build an execution plan from the pipeline.
Raises:
ValueError: If the pipeline has no stages
Get a detailed description of the pipeline stages and their requirements.
Run the pipeline.
Parameters:
Executor to use
Initial tasks to start the pipeline with. Defaults to None.
Returns: list[Task] | None
list[Task] | None: List of tasks