Repository navigation
fix: add validation for make_sequence_length_divisible_by - #3028
Open
NolenLiang wants to merge 1 commit into
Open
NolenLiang wants to merge 1 commit into
NolenLiang wants to merge 1 commit into
Conversation
Contributor
Author
|
/ok to test 671ab67 |
Contributor
Author
|
/ok to test f563c0b |
NolenLiang
force-pushed
the
nliang/fix-seq-length-divisible-validation
branch
from
July 2, 2026 05:55
f563c0b to
05879af
Compare
Contributor
Author
|
/ok to test 05879af |
Signed-off-by: NolenLiang <[email protected]>
NolenLiang
force-pushed
the
nliang/fix-seq-length-divisible-validation
branch
from
July 29, 2026 07:28
05879af to
4320f02
Compare
Contributor
Author
|
/ok to test 4320f02 |
This branch has not been deployed
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.
Summary
PR #2933 fixed a flaky
distillation_nemo_gymCI test by hardcodingmake_sequence_length_divisible_by=4. This PR adds an early, actionablevalidation for the underlying DTensor sequence-length constraint.
Confirmed constraint
2 * context_parallel_size.tensor_parallel_sizefactor only when sequenceparallelism is enabled.
least common multiple.
configurations effectively use either the CP factor or the TP+SP factor.
Changes
validate_sequence_length_divisibilityhelper.before model loading.
ValueErrorthat reports the required minimum pad factor.product-vs-LCM case.
discussion.
Testing
8 passedfor the focused sequence-divisibility unit tests.Python file.