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

Resplit input dataset in ray mode #549

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

chenyushuo
Copy link
Collaborator

Description

Similar to #415 , this code will split the dataset files into small pieces to avoid exceeding the memory limit of Ray, but this code requires users to run it in advance.

Usage

python tools/data_resplit.py --data-dir [path to source data] --resplit-dir [path to resplited dataset] [--ray-address [the address of the Ray cluster]]

@chenyushuo chenyushuo requested review from pan-x-c and yxdyc January 15, 2025 10:08
Copy link
Collaborator

@pan-x-c pan-x-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor issues, others LGTM

tools/data_resplit.py Show resolved Hide resolved
tools/data_resplit.py Outdated Show resolved Hide resolved
@pan-x-c pan-x-c merged commit bef0644 into modelscope:main Jan 22, 2025
2 checks passed
@yxdyc
Copy link
Collaborator

yxdyc commented Jan 22, 2025

Please link and mention this tool, in related docs (e.g, Distributed.md).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants