***
layout: overview
slug: nemo-curator/nemo\_curator/core/client
title: nemo\_curator.core.client
--------------------------------
## Module Contents
### Classes
| Name | Description |
| -------------------------------------------------- | ------------------------------------------------------------------------------ |
| [`RayClient`](#nemo_curator-core-client-RayClient) | This class is used to setup the Ray cluster and configure metrics integration. |
### API
```python
class nemo_curator.core.client.RayClient(
ray_port: int = DEFAULT_RAY_PORT,
ray_dashboard_port: int = DEFAULT_RAY_DASHBOARD_PORT,
ray_client_server_port: int = DEFAULT_RAY_CLIENT_SERVER_PORT,
ray_temp_dir: str = DEFAULT_RAY_TEMP_DIR,
include_dashboard: bool = True,
ray_metrics_port: int = DEFAULT_RAY_METRICS_PORT,
ray_dashboard_host: str = DEFAULT_RAY_DASHBOARD_HOST,
num_gpus: int | None = None,
num_cpus: int | None = None,
object_store_memory: int | None = None,
enable_object_spilling: bool = False,
ray_stdouterr_capture_file: str | None = None,
metrics_dir: str | None = None
)
```
Dataclass
This class is used to setup the Ray cluster and configure metrics integration.
If the specified ports are already in use, it will find the next available port and use that.
**Parameters:**
The port number of the Ray GCS.
The port number of the Ray dashboard.
The temporary directory to use for Ray.
Whether to include dashboard integration. If true, adds Ray metrics service discovery.
The port number of the Ray metrics.
The host of the Ray dashboard.
The number of GPUs to use.
The number of CPUs to use.
The amount of memory to use for the object store.
Whether to enable object spilling.
The file to capture stdout/stderr to.
The directory for Prometheus/Grafana metrics data. If None, uses the per-user default.
```python
nemo_curator.core.client.RayClient.__enter__()
```
```python
nemo_curator.core.client.RayClient.__exit__(
exc = ()
)
```
```python
nemo_curator.core.client.RayClient.__post_init__() -> None
```
```python
nemo_curator.core.client.RayClient.start() -> None
```
Start the Ray cluster if not already started, optionally capturing stdout/stderr to a file.
```python
nemo_curator.core.client.RayClient.stop() -> None
```