Skip to content

Fix split batch sampler lengths - #4194

Open
Marchematics wants to merge 2 commits into
huggingface:mainfrom
Marchematics:contrib/batch-sampler-shard-length
Open

Fix split batch sampler lengths#4194
Marchematics wants to merge 2 commits into
huggingface:mainfrom
Marchematics:contrib/batch-sampler-shard-length

Conversation

@Marchematics

Copy link
Copy Markdown

Match BatchSamplerShard.len with the batches yielded to each process when split_batches is enabled without even_batches.

Test: python3 -m py_compile src/accelerate/data_loader.py tests/test_data_loader.py

AI assistance was used.

Copilot AI lite review requested due to automatic review settings August 30, 2026 16:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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