-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add feature to slice, subsample and split dataset #161
Add feature to slice, subsample and split dataset #161
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #161 +/- ##
=====================================
Coverage ? 78%
=====================================
Files ? 33
Lines ? 4324
Branches ? 0
=====================================
Hits ? 3363
Misses ? 961
Partials ? 0 |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for train_test_split
are of different sizes
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Just minor nits on my part, let’s try this out with redpajama
for more information, see https://pre-commit.ci
Co-authored-by: Luca Antiga <luca@lightning.ai>
Co-authored-by: Luca Antiga <luca@lightning.ai>
Co-authored-by: Luca Antiga <luca@lightning.ai>
Co-authored-by: Luca Antiga <luca@lightning.ai>
Co-authored-by: Luca Antiga <luca@lightning.ai>
…subsampled chunks
for more information, see https://pre-commit.ci
…om/deependujha/litdata into feat/slice-subsample-split-dataset
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…om/deependujha/litdata into feat/slice-subsample-split-dataset
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before submitting
What does this PR do?
Fixes #135 & fixes #145.
Adds support to slice StreamingDataset
![Screenshot from 2024-06-05 13-20-06](https://private-user-images.githubusercontent.com/76887609/336749597-3bf1f180-c601-498a-a4b1-50e8e7512a7e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTc1MzcsIm5iZiI6MTcyMDU5NzIzNywicGF0aCI6Ii83Njg4NzYwOS8zMzY3NDk1OTctM2JmMWYxODAtYzYwMS00OThhLWE0YjEtNTBlOGU3NTEyYTdlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA3NDAzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU5Zjk5N2M3NGVmNzE0MzBjZWIyNGI1Njk3NjY1MjRjNmI5Yjg5MTBmZTZkZDg3NjhiMTA1MjhiZDA2MDYyMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.tPMP0l3fX-uLjLN3ZdQIqHTyeceKX3wng8h_NZpf4DU)
Adds support to Subsample StreamingDataset
![Screenshot from 2024-06-08 01-29-54](https://private-user-images.githubusercontent.com/76887609/337778294-a1e7cf39-c50a-47a9-aeec-5ef72347560f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTc1MzcsIm5iZiI6MTcyMDU5NzIzNywicGF0aCI6Ii83Njg4NzYwOS8zMzc3NzgyOTQtYTFlN2NmMzktYzUwYS00N2E5LWFlZWMtNWVmNzIzNDc1NjBmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA3NDAzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcyNWViZWYxZjRhZWNlNTZkOWVkZTdiZGVmYjk2YTdhOGE3YTQxN2IzYjUyYzQ4MWQ3NTU2YTUyZDEyOTY5ZDkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Utqa6P0IJw7NFi1rmWLn2r1tR2kwwhEaGQM6csSv9QA)
Adds support to train_test_split StreamingDataset
![Screenshot from 2024-06-08 01-29-18](https://private-user-images.githubusercontent.com/76887609/337778442-3fc3fea3-252a-4152-98a8-12a9dada91fc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTc1MzcsIm5iZiI6MTcyMDU5NzIzNywicGF0aCI6Ii83Njg4NzYwOS8zMzc3Nzg0NDItM2ZjM2ZlYTMtMjUyYS00MTUyLTk4YTgtMTJhOWRhZGE5MWZjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA3NDAzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2N2Q0NDk4YTkzNjdjMGQ1ZDkxZWQ3Yzc4NzQ4NTk4YWY3ZjFjMDA4MDgxYzk1NGRiODFiZTcxZTYyNDNlZjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.guFQFoj7h2kC85kD1Evn9gveZfD8myDBk7_jZoHuW-Y)
PR review
Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.
Did you have fun?
Make sure you had fun coding 🙃