Skip to content

Conversation

@awaelchli
Copy link
Contributor

@awaelchli awaelchli commented Aug 6, 2024

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes #306

The changes in this PR intends to implement a speedup to avoid an expensive loop for large datasets. We have tests here
https://github.com/Lightning-AI/litdata/blob/c60d55945a9ea98cf24f111a99d8eedecf91dbda/tests/utilities/test_shuffle.py#L197
that assert the correctness of the function.

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 🙃

@awaelchli awaelchli force-pushed the workers-skip-speedup branch from 7459362 to 8b60be2 Compare August 6, 2024 19:09
@awaelchli awaelchli changed the title WIP: Speed up the search for chunks to skip deletion for Speed up the search for chunks to skip deletion for Aug 6, 2024
@awaelchli awaelchli marked this pull request as ready for review August 6, 2024 19:42
@awaelchli awaelchli requested a review from tchaton as a code owner August 6, 2024 19:42
Copy link
Collaborator

@tchaton tchaton left a comment

Choose a reason for hiding this comment

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

awesome find :)

@awaelchli awaelchli force-pushed the workers-skip-speedup branch from a6331a4 to 6db1f00 Compare August 7, 2024 00:31
@tchaton tchaton merged commit 428752d into main Aug 7, 2024
@tchaton tchaton deleted the workers-skip-speedup branch August 7, 2024 05:27
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.

Streaming from s3 hangs when num_workers > 1

2 participants