You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR #28498 was meant to allow for specifying the Pytorch dataloader's prefetch_factor argument via the huggingface dataloader_prefetch_factor training argument. As we can see on this line, this feature was added inside of a
statement which results in prefetching never occurring for IterableDatasets (which seems like a mistake). There are a two other lines where the same error happens for test and eval dataloaders. Unless I'm missing something, I believe these lines can be moved out of the if condition and into other logic.
Expected behavior
Prefetching should work with iterable datasets.
The text was updated successfully, but these errors were encountered:
System Info
transformers
version: 4.46.1Who can help?
@muellerzr @SunMarc
Reproduction
PR #28498 was meant to allow for specifying the Pytorch dataloader's
prefetch_factor
argument via the huggingfacedataloader_prefetch_factor
training argument. As we can see on this line, this feature was added inside of astatement which results in prefetching never occurring for
IterableDataset
s (which seems like a mistake). There are a two other lines where the same error happens for test and eval dataloaders. Unless I'm missing something, I believe these lines can be moved out of the if condition and into other logic.Expected behavior
Prefetching should work with iterable datasets.
The text was updated successfully, but these errors were encountered: