-
Notifications
You must be signed in to change notification settings - Fork 179
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
Rep_removal for large data files crashes on 16GB memory #1035
Comments
Since, we are get out of memory while using this transform. a) Resize Something like we can choose import os
REPO_ID = "HuggingFaceFW/fineweb"
FILENAME = "data/CC-MAIN-2013-20/000_00000.parquet"
file1=hf_hub_download(repo_id=REPO_ID, filename=FILENAME, repo_type="dataset")
from dpk_resize.runtime import Resize
Resize(input_folder= os.path.dirname(file1),
output_folder= "output",
resize_max_rows_per_table= 1000).transform()
from dpk_rep_removal.runtime import RepRemoval
RepRemoval(input_folder= "output",
output_folder= "files-rep_removal",
rep_removal_contents_column_name='text',
rep_removal_num_threads=1,
).transform() |
Thank you, @shivdeep-singh-ibm ! We talked about this exact solution yesterday. Thanks for spelling it out. @Hajar-Emami This is exactly what we were talking about yesterday! |
Many Thanks @shivdeep-singh-ibm . Yes, as we discussed with @shahrokhDaijavad and @touma-I, we should include the |
Should we add this to official documentation for benefit of users? |
Search before asking
Component
Other, Transforms/Other
What happened + What you expected to happen
Reproduction script
Run the following on a Mac M1 with 16GB memory
Anything else
No response
OS
MacOS (limited support)
Python
3.10.x
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: