Skip to content

Commit

Permalink
[Hot Fix] Update Ray version (#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c authored Jan 8, 2025
1 parent 06b1e6a commit d785ee9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions data_juicer/core/ray_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from data_juicer.utils.process_utils import calculate_np

rd = LazyLoader('rd', 'ray.data')
ds = LazyLoader('ds', 'ray.data.datasource')
ds = LazyLoader('ds', 'ray.data.read_api')


def get_abs_path(path, dataset_dir):
Expand Down Expand Up @@ -235,7 +235,7 @@ def read_json_stream(
arrow_open_stream_args: Optional[Dict[str, Any]] = None,
meta_provider=None,
partition_filter=None,
partitioning=ds.partitioning.Partitioning('hive'),
partitioning=ds.Partitioning('hive'),
include_paths: bool = False,
ignore_missing_paths: bool = False,
shuffle: Union[Literal['files'], None] = None,
Expand All @@ -245,7 +245,7 @@ def read_json_stream(
**arrow_json_args,
) -> rd.Dataset:
if meta_provider is None:
meta_provider = ds.file_meta_provider.DefaultFileMetadataProvider()
meta_provider = ds.DefaultFileMetadataProvider()

datasource = JSONStreamDatasource(
paths,
Expand Down
2 changes: 1 addition & 1 deletion environments/dist_requires.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ray>=2.31.0
ray==2.40.0
redis>=5.0.0

0 comments on commit d785ee9

Please sign in to comment.