Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add enable_cudf_spill to LocalCudaCluster #268

Merged
merged 6 commits into from
Sep 30, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions nemo_curator/utils/distributed_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import warnings
from contextlib import nullcontext
from pathlib import Path
from typing import Dict, List, Union
from typing import TYPE_CHECKING, Dict, List, Union

import dask.dataframe as dd
import numpy as np
Expand Down Expand Up @@ -70,14 +70,11 @@ def start_dask_gpu_local_cluster(
rmm_pool_size=rmm_pool_size,
protocol=protocol,
rmm_async=True,
enable_cudf_spill=enable_spilling,
**extra_kwargs,
)
client = Client(cluster)

if enable_spilling:
_enable_spilling()
client.run(_enable_spilling)

if set_torch_to_use_rmm:
_set_torch_to_use_rmm()
client.run(_set_torch_to_use_rmm)
Expand Down
Loading