Skip to content

Commit

Permalink
Modify the location of RayExecutor import (#35)
Browse files Browse the repository at this point in the history
- avoid the ray bug
  • Loading branch information
chenhesen authored Oct 16, 2023
1 parent d19af01 commit 7e30bb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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

0 comments on commit 7e30bb0

Please sign in to comment.