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

Send as many batches as possible to input queues #895

Merged
merged 5 commits into from
Aug 13, 2024

Conversation

gabrielmbmb
Copy link
Member

@gabrielmbmb gabrielmbmb commented Aug 13, 2024

Description

This PR updates the method _manage_batch_flow to send as many batches as can to the input queues of the steps when it's called. This improves the performance and the parallelisation when using more than 1 replica per step, as before most of the time the input queue was empty and was only filled with just one batch receiving one batch from a generator or from the step itself.

Copy link

Documentation for this PR has been built. You can view it at: https://distilabel.argilla.io/pr-895/

Copy link

codspeed-hq bot commented Aug 13, 2024

CodSpeed Performance Report

Merging #895 will not alter performance

Comparing stature-input-queue-when-replicas (17d2678) with develop (75baf64)

Summary

✅ 1 untouched benchmarks

@gabrielmbmb gabrielmbmb self-assigned this Aug 13, 2024
@gabrielmbmb gabrielmbmb added the enhancement New feature or request label Aug 13, 2024
@gabrielmbmb gabrielmbmb added this to the 1.4.0 milestone Aug 13, 2024
@gabrielmbmb gabrielmbmb marked this pull request as ready for review August 13, 2024 14:58
@gabrielmbmb gabrielmbmb changed the title Saturate input queues with batches Send as many batches as possible to input queues Aug 13, 2024
@gabrielmbmb gabrielmbmb requested a review from plaguss August 13, 2024 15:46
Copy link
Contributor

@plaguss plaguss left a comment

Choose a reason for hiding this comment

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

🚀

@plaguss plaguss merged commit 7ff4d20 into develop Aug 13, 2024
7 checks passed
@plaguss plaguss deleted the stature-input-queue-when-replicas branch August 13, 2024 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants