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

Modify the location of RayExecutor import #35

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 0 additions & 1 deletion data_juicer/core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .analyser import Analyser
from .data import NestedDataset
from .executor import Executor
from .ray_executor import RayExecutor
from .exporter import Exporter
from .tracer import Tracer
3 changes: 2 additions & 1 deletion tools/process_data.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from loguru import logger

from data_juicer.config import init_configs
from data_juicer.core import Executor, RayExecutor
from data_juicer.core import Executor


@logger.catch
Expand All @@ -10,6 +10,7 @@ def main():
if cfg.executor_type == 'default':
executor = Executor(cfg)
elif cfg.executor_type == 'ray':
from data_juicer.core.ray_executor import RayExecutor
executor = RayExecutor(cfg)
executor.run()

Expand Down