nemo_curator.core.utils
nemo_curator.core.utils
Module Contents
Functions
API
Checks if start_port is free. If not, it will get the next free port starting from start_port if get_next_free_port is True. Else, it will raise an error if the free port is not equal to start_port.
Return True if CURATOR_IGNORE_RAY_HEAD_NODE is set to a truthy value.
Used by both the pipeline executors (to skip the head node when scheduling stage actors) and the inference-server backends (to emit a worker-only bundle-label selector on placement groups).
Initialize a new local Ray cluster or connects to an existing one.
Split an Arrow table without reordering or splitting consecutive groups.
Rows for each group must be consecutive. If a single group exceeds a batch limit, it is still emitted as one chunk.