nemo_curator.backends.experimental.ray_actor_pool.raft_adapter
nemo_curator.backends.experimental.ray_actor_pool.raft_adapter
Module Contents
Classes
API
Bases: BaseStageAdapter
RAFT Actor adapter for Ray Actor Pool backend.
This adapter extends RayActorPoolStageAdapter and adds RAFT capabilities to enable distributed processing with RAFT communication.
Setup NCCL communicator.
Setup RAFT.
Broadcast the root unique ID to all actors.
This method should only be called by the root actor.
Get the batch size for this stage.
Set the root unique ID.
Parameters
root_unique_id : int The root unique ID.
Setup the RAFT actor.
This method should be called after the root unique ID has been broadcast.
Setup method for Ray actors.
Note: This method is not used in the current implementation since we use the Ray Data pattern of calling setup_on_node before actor creation.