-
Notifications
You must be signed in to change notification settings - Fork 17
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
Compression using the optimize function from litdata #97
Comments
Hi! thanks for your contribution!, great first issue! |
Using pip install mosaicml-streaming resolves the error above, maybe some dependencies should be added to litdata. |
Using then zstd -> and exucting the stream.py => Finished data processing!
|
Hey @rakro101, I published a new version. Can you try again ? |
@tchaton it works now, but the ending should be .zstd instead of .bin |
🐛 Bug
To Reproduce
Steps to reproduce the behavior:
Just use the https://lightning.ai/lightning-ai/studios/convert-parquets-to-lightning-streaming.
Modify it to using litdata, instead of lightning.data
Add to the optimize function in convert.py any compression method for example "zstd".
Code sample
optimize(convert_parquet_to_lightning_data, parquet_files[:10], output_dir, num_workers=os.cpu_count(), chunk_bytes="64MB", compression="gzip")
Expected behavior
Just creation of the compressed shards.
Error:
Environment
lightning-ai, with pip install litdata
Additional context
Check the size of the dataset (compressed and uncompressed - in my first implementation on aws, i got same size for the data set.
The text was updated successfully, but these errors were encountered: