Repository navigation
Fix fixed-size drop-last sampling and Korean text cleaning - #3995
Merged
Merged
Conversation
Use the eligible example pool for per-rank lengths and for truncation or padding. Refresh its metadata on a new epoch. Cover uneven eligibility across ranks, empty pools and epoch changes. Signed-off-by: LauraGPT <zhifu.gzf@alibaba-inc.com>
This was referenced Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This integrates @sohailshk’s #3913 and #3915 on current main. The first commit preserves the four contributed implementation/test blobs and combines their overlapping entries in NumPy CI. The follow-up fixes a distributed boundary found when testing that integration.
drop_last=True. With a length limit, they now filter the global index pool before truncation/padding and rank selection. Each rank computes eligibility from dataset length metadata once per epoch when filtering is enabled. With no length limit the extra metadata scan is not performed. This does not change the dynamic token-batching policy.tokenize_text --cleaner korean_cleanerCLI now spells out Latin letters and digits, with no new dependency.Before the follow-up, two real CPU/Gloo ranks given eight alternating short/long examples both reported two batches, but yielded two and zero. Afterward they each report and yield one batch: [0, 4] and [2, 6]. The three new regression tests failed before and passed afterward. The combined tree passed 24 related CPU tests; 128 two-rank non-filtered cases matched the original integration outputs exactly. The two fixed-size samplers also consumed synthetic batches with real CUDA SGD on one idle L20Z (four unfiltered and two filtered cases). These tests do not run an ASR model or measure throughput.