Repository navigation
feat(draft): add tensor-parallel DFlash body - #3723
Conversation
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Reapply the intended DFlash-only net delta from ef405c8 onto NVIDIA main 36b5999. The original signed series spans fe8a7fa..ef405c8. Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Document the per-rollout sample_id contract, reject live CP>1 on the default config path, anchor the device-mismatch regex, run the TP tests through distributed_test_runner, and restore the parallelism scope in the design doc. Signed-off-by: seonjinn <[email protected]>
|
/ok to test 8176428 |
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
…n-dflash-body-v2-fixes2 Signed-off-by: seonjinn <[email protected]>
|
Merged latest main (d3d0cc7) to fix the "PR branch is up to date" check. The previous L0_Unit_Tests_Models_4 failure was |
|
/ok to test 96110ac |
…n-dflash-body-v2-fixes2 Signed-off-by: seonjinn <[email protected]>
|
/ok to test bfbd6d7 |
…n-dflash-body-v2 Signed-off-by: seonjinn <[email protected]>
The DFlash body rejects a TP size that does not divide its heads, KV heads, hidden, or intermediate size. The error now names the TP size and each failing dim, so a user can pick a valid TP layout. A TP4 test covers a two-head config. Signed-off-by: seonjinn <[email protected]>
|
/ok to test 6542b23 |
Signed-off-by: seonjinn <[email protected]>
sharonyu-115
left a comment
There was a problem hiding this comment.
LGTM — no actionable findings at 6542b23.
Adds the standalone DFlash draft body, deterministic block planning, block attention, and tensor-parallel checkpoint support. The team review found no remaining correctness or repository-guideline issues.
Validation results and limits
- 51 CPU tests passed, 8 skipped, using the pinned MCore source in an isolated harness that bypassed repository fixtures/plugins.
- Additional CPU attention-mask checks passed across 9 shapes and 54 blocks. Pinned Ruff lint, import-order and format checks passed.
- The GitHub checks include successful Megatron unit-test jobs. CI:Lfast is appropriate for this PR's scope.
- No local GPU/CUDA/NCCL execution or target-GPU performance measurement was available. Four-rank tests can skip in two-GPU CI; green job status alone does not establish TP4 execution. Full pre-commit was unavailable because optional-submodule dependencies were missing from the isolated checkout.
Generated by Codex using review-pr-team.
Signed-off-by: seonjinn <[email protected]>
yuki-97
left a comment
There was a problem hiding this comment.
Thanks for addressing the previous review feedback.
Scope: fix commits 8176428 through a3adb52, checked against the previous review threads, plus a static scan of the changed files.
Checked:
- Anchor scheduling preserves sample identity across batch permutations and slicing; the per-rollout ID contract is documented.
- The default constructor rejects live context parallelism greater than one before building projections.
- Tensor-parallel projection gradients and nested checkpoint metadata follow the pinned Megatron contracts.
- Block visibility restricts attention to the same sample's prefix and the current draft block.
Remaining comments are on:
- Replacing source-text efficiency checks with a runtime query-projection check.
- Moving benchmark tests to the tools test directory while preserving their coverage.
- Removing unused
DFlashBatchPlanfields, their unused computation, andself.parallel_config.
nit
- Docstring pointers to the #3757 training callers of
DFlashBodyandbuild_dflash_batch_plan.
Unit-test results are from 6542b23; the current merge head has metadata checks only.
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
cd84135
|
@yuki-97 I addressed all six inline comments in cd84135 and replied in each thread. The source-text checks were replaced with a runtime q_proj input-shape check; benchmark tests moved to tests/unit/tools; unused plan/body fields and their computation were removed; and both #3757 caller pointers were added. The latest main was merged. Local Ruff, format, syntax, and diff checks passed; Lfast has not yet run on this head. |
|
/ok to test cd84135 |
Signed-off-by: seonjinn <[email protected]>
Signed-off-by: seonjinn <[email protected]>
Summary
Supported contract
Validation
d43a5b6cd82bfd348289a112fa02708765cd130ePrior GPU evidence
Dependencies / Remaining
#3715 adds training integration; #3744 adds generation/refit integration. CP-local attention requires a separate design.