Skip to content

Rename CustomSampler to PresetSampler and add preset dataloader test#1637

Merged
HAOCHENYE merged 25 commits intoInternLM:mainfrom
jayhenry:preset_sampler
Mar 31, 2026
Merged

Rename CustomSampler to PresetSampler and add preset dataloader test#1637
HAOCHENYE merged 25 commits intoInternLM:mainfrom
jayhenry:preset_sampler

Conversation

@jayhenry
Copy link
Copy Markdown
Collaborator

No description provided.

jayhenry and others added 25 commits March 31, 2026 06:43
- Modified the `_load_sampler_config` function to enforce the use of `.npy` files and validate the loaded array's properties.
- Changed the behavior of the sampler to truncate the global order length to the nearest multiple of `global_batch_size * world_size` instead of rounding up.
@HAOCHENYE HAOCHENYE merged commit 0bcb378 into InternLM:main Mar 31, 2026
9 checks passed
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.

3 participants