Warn once when resuming a shuffled dataset by jinchuntan · Pull Request #8844 · huggingface/datasets · GitHub
Skip to content

Warn once when resuming a shuffled dataset - #8844

Open
jinchuntan wants to merge 1 commit into
huggingface:mainfrom
jinchuntan:fix/shuffle-resume-warning
Open

jinchuntan wants to merge 1 commit into
huggingface:mainfrom
jinchuntan:fix/shuffle-resume-warning

Conversation

@jinchuntan

Copy link
Copy Markdown
Contributor

Repeated checkpoint restores can print the same shuffle-buffer warning thousands of times. This shows it once per process, including when several datasets are restored. Fixes #7444.

Added four cases covering repeated restores and initial checkpoints, with checks on the returned rows. The iterable suite has 655 passes and 39 skips. Six multiprocessing tests also fail on unchanged main in this environment (blocked Unix sockets and a worker timeout). Lint and formatting pass.

Keep the shuffle-buffer warning without repeating it for every checkpoint restore or dataset instance. Check repeated and initial checkpoint restores through the public iterable API.

Fixes huggingface#7444

Assisted-by: Codex
@lhoestq

lhoestq commented Oct 19, 2026

Copy link
Copy Markdown
Member

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.

Excessive warnings when resuming an IterableDataset+buffered shuffle+DDP.

2 participants