Skip to content

NotImplementedError: <class 'datasets.iterable_dataset.RepeatExamplesIterable'> doesn't implement num_shards yet #7561

Open
@cyanic-selkie

Description

@cyanic-selkie

Describe the bug

When using .repeat() on an IterableDataset, this error gets thrown. There is this thread that seems to imply the fix is trivial, but I don't know anything about this codebase, so I'm opening this issue rather than attempting to open a PR.

Steps to reproduce the bug

  1. Create an IterableDataset.
  2. Call .repeat(None) on it.
  3. Wrap it in a pytorch DataLoader
  4. Iterate over it.

Expected behavior

This should work normally.

Environment info

datasets: 3.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions