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

Distributed dataloader #14

Merged
merged 19 commits into from
Mar 28, 2024
Merged

Distributed dataloader #14

merged 19 commits into from
Mar 28, 2024

Conversation

philippguevorguian
Copy link
Collaborator

Implement line by line yielding distibuted dataloader

@ArmenAg
Copy link
Collaborator

ArmenAg commented Mar 19, 2024

This looks nice and straightforward to me. Could we add some tests here to verify that we're returning the right things. One easy way is to print out the current line being read per process and make sure there is no overlap.

@philippguevorguian
Copy link
Collaborator Author

This looks nice and straightforward to me. Could we add some tests here to verify that we're returning the right things. One easy way is to print out the current line being read per process and make sure there is no overlap.

See the newly added test which verifies that there is no mixing of yielded lines. Additionally, there is a check that no lines are missed or duplicated which revealed there was actually one line skipped between processing of different files.

@philippguevorguian
Copy link
Collaborator Author

@ArmenAg Confirming that we're good to merge this now?

Copy link
Collaborator

@ArmenAg ArmenAg left a comment

Choose a reason for hiding this comment

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

LGTM! I would clean up comments that are sprinkled around code here.

@philippguevorguian philippguevorguian merged commit 10208db into main Mar 28, 2024
1 check passed
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.

2 participants