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

fix(offline_pipeline): force drop_last only for distributed #475

Merged
merged 3 commits into from
May 11, 2023

Conversation

maxreciprocate
Copy link
Collaborator

This PR keeps drop_last policy for dataloaders only for multiprocess training to avoid duplication, but keeps last batches for single processes to avoid losing data. It also skips warning messages that MiniBatchIterator could throw even though minibatching is not actived, for example when running python examples/randomwalks/ppo_randomwalks.py on the current main

Fix of #473

Copy link
Collaborator

@Dahoas Dahoas left a comment

Choose a reason for hiding this comment

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

LGTM, nice fix

@Dahoas Dahoas merged commit 355c974 into main May 11, 2023
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