> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/curator/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/curator/_mcp/server.

# nemo_curator.backends.ray_actor_pool.adapter

## Module Contents

### Classes

| Name                                                                                                 | Description                                                  |
| ---------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ |
| [`RayActorPoolStageAdapter`](#nemo_curator-backends-ray_actor_pool-adapter-RayActorPoolStageAdapter) | Adapts ProcessingStage to Ray actors for use with ActorPool. |

### API

```python
class nemo_curator.backends.ray_actor_pool.adapter.RayActorPoolStageAdapter(
    stage: nemo_curator.stages.base.ProcessingStage
)
```

**Bases:** [BaseStageAdapter](/nemo-curator/nemo_curator/backends/base#nemo_curator-backends-base-BaseStageAdapter)

Adapts ProcessingStage to Ray actors for use with ActorPool.

This adapter is designed to work with Ray's ActorPool for better
resource management and load balancing.

**`_batch_size`** `= self.stage.batch_size`

---

```python
nemo_curator.backends.ray_actor_pool.adapter.RayActorPoolStageAdapter.get_batch_size() -> int
```

Get the batch size for this stage.

```python
nemo_curator.backends.ray_actor_pool.adapter.RayActorPoolStageAdapter.setup_on_node() -> None
```

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.