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 length of IterableDatasetShard and add test #13792

Merged
merged 2 commits into from Sep 29, 2021

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Sep 29, 2021

What does this PR do?

This PR fixes the length computation of an IterableDatasetShard added in #13780 and ensures it is correct with a test.
It also adds a missing mapping in the test fetcher util, to make sure modifications in trainer_pt_utils.py are properly tested.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Thank you for adding comments, I understand it better now! LGTM!

@sgugger sgugger merged commit 63cc5bd into master Sep 29, 2021
@sgugger sgugger deleted the test_iterable_ds_trainer branch September 29, 2021 15:48
stas00 pushed a commit to stas00/transformers that referenced this pull request Oct 12, 2021
* Fix length of IterableDatasetShard and add test

* Add comments
lapisfluvialis pushed a commit to lapisfluvialis/transformers that referenced this pull request Oct 27, 2021
* Fix length of IterableDatasetShard and add test

* Add comments
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 13, 2022
* Fix length of IterableDatasetShard and add test

* Add comments
Albertobegue pushed a commit to Albertobegue/transformers that referenced this pull request Jan 27, 2022
* Fix length of IterableDatasetShard and add test

* Add comments
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.

None yet

2 participants