nemo_curator.backends.base
Module Contents
Classes
API
Abstract
Executor for a pipeline.
config
abstract
Execute the pipeline.
Adapts ProcessingStage to an execution backend, if needed.
Process a batch of tasks.
Parameters:
tasks
List of tasks to process
Returns: list[Task]
list[Task]: List of processed tasks
Setup the stage once per actor.
Parameters:
worker_metadata
Information about the worker
Setup the stage on a node.
Parameters:
node_info
Information about the node
worker_metadata
Information about the worker
Teardown the stage once per actor.
Dataclass
Generic node information for setup_on_node calls across backends. Simplified to match Xenna’s structure.
node_id
Dataclass
Generic worker metadata for setup_on_node calls across backends. Simplified to match Xenna’s structure. The allocation field can contain backend-specific allocation information.
worker_id