[Example] Benchmark DCP on Nemotron Math v3 - #5811
Closed
ilml wants to merge 1 commit into
Closed
Conversation
Contributor
Author
|
/ok to test 2ca3f72 |
ilml
marked this pull request as ready for review
July 14, 2026 18:57
ilml
marked this pull request as draft
July 14, 2026 19:16
ilml
marked this pull request as ready for review
July 14, 2026 19:20
ilml
marked this pull request as draft
July 14, 2026 20:05
This was referenced Jul 14, 2026
ilml
force-pushed
the
codex/dcp-nemotron-math-v3-example
branch
from
July 14, 2026 20:35
2ca3f72 to
9571b3a
Compare
Contributor
Author
|
/ok to test 9571b3a |
ilml
force-pushed
the
codex/dcp-nemotron-math-v3-example
branch
from
July 14, 2026 20:36
9571b3a to
514e7e2
Compare
Contributor
Author
|
/ok to test 514e7e2 |
copy-pr-bot
Bot
force-pushed
the
pull-request/5681
branch
from
July 14, 2026 20:38
e967c97 to
241584a
Compare
ilml
force-pushed
the
codex/dcp-nemotron-math-v3-example
branch
from
July 14, 2026 20:38
514e7e2 to
1ca1090
Compare
Contributor
Author
|
/ok to test 1ca1090 |
Add a reproducible fixed-CP versus dynamic-CP benchmark for variable-length THD training. Support mock data and Nemotron-SFT-Math-v3, compare aligned loss trajectories, report sample throughput, and record a credential-safe run manifest. Co-authored-by: xiaoyao0115 <1804647152@qq.com> Signed-off-by: ilml <tolong@nvidia.com>
copy-pr-bot
Bot
force-pushed
the
pull-request/5681
branch
from
July 14, 2026 21:37
241584a to
96f3e6a
Compare
Contributor
Author
|
/ok to test 5509556 |
ilml
force-pushed
the
codex/dcp-nemotron-math-v3-example
branch
from
July 14, 2026 21:37
1ca1090 to
5509556
Compare
ilml
marked this pull request as ready for review
July 14, 2026 21:55
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
pretrain_gpt.pytraining stack.nvidia/Nemotron-SFT-Math-v3through the new variable-length dataset loader.--cuda-graph-impl none.This draft provides the reproducible harness. It does not claim current Nemotron Math v3 loss-parity or throughput results yet; those require a complete GPU run from this rebuilt stack and an immutable dataset snapshot.
Compared cases
--sequence-packing-scheduler dp_balanced --context-parallel-size N--dynamic-context-parallel --sequence-packing-scheduler default_dynamic_cp --min-dynamic-context-parallel-size N --context-parallel-size NBoth cases use
--use-varlen-dataset,--calculate-per-token-loss,--max-seqlen-per-dp-cp-rank, thesingledataloader, and CUDA graphs disabled.User-facing controls
DATASET_PATH/TOKENIZER_MODELLOAD_PATHGPUS_PER_NODE,TP_SIZE,CP_SIZE,PP_SIZEMAX_SEQLEN_PER_DP_CP_RANKMIN_DYNAMIC_CONTEXT_PARALLEL_SIZETRAIN_ITERS/WARMUP_ITERSCASE_ORDERbaseline_firstordcp_firstto expose order-dependent effects.LOSS_ATOL/LOSS_RTOL/CHECK_LOSS_PARITYANALYZE_ONLY=1Stack and attribution
Current limitations
singledataloader only for DCP.Validation
bash -n examples/dynamic_context_parallel/benchmark_dcp.shgit diff --check55095561c62188742de2a1051f281ac689843cc8Real GPU training was not run in the available host environment because PyTorch is not installed there. The PR remains a draft pending a recorded Nemotron Math v3 run.