Repository navigation
Conversation
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Self-review: review-pr-teamReviewed the PR3-only range on top of #3703, including split-step loss semantics, DP reduction ordering, draft-only gradient rescaling, metrics, and tests. Resolved during self-review:
No unresolved correctness, security, or design findings remain in the PR3-only range. Validation: OCI-Hsg job 6299067 completed successfully with 6 base tests, 2 MCore split tests, DP=2 NCCL uneven-count gradient/metric parity, Ruff, and compile checks. |
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
3f5cadd to
1392bb9
Compare
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
|
/review-pr-team |
|
/ok to test 40badee |
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
seonjinn
left a comment
There was a problem hiding this comment.
Self-review before requesting reviewers.
Method: a focused review agent, then an adversarial pass with empirical CPU execution of the real modules.
The headline claim survived a serious challenge worth recording: a candidate CRITICAL argued the split path normalizes by the draft's own count while the monolithic path uses the policy's global_valid_toks, breaking parity. Refuted on four grounds: (1) roll_tensor(token_mask, shifts=-1) zeroes the vacated last slot, so the draft mask count equals sum(token_mask[:, 1:]) -- exactly the policy formula -- per sample, by construction; (2) both counts ride the same DP all-reduce; (3) the gradient scale composition (scale_gradients(1/n) then correct_main_grads x n x 1/draft_count) nets to raw/draft_count in both paths; (4) an empirical CPU run with a mask exercising the shifted first slot produced identical losses (relative diff 0.0). Also verified clean: zero-count guards, single-DP-collective accumulation, abort/retry state freshness, PP grad-norm collective symmetry for non-owner ranks.
Follow-up commit: the split-vs-monolithic parity regression test (inline) and the draft_loss shared constant (inline).
Notes: CI on this head is green except two non-code failures (an HF-CDN 429 download flake and the label-gated quality check). One pre-existing limitation worth a body line: draft + CP>1 fails the loss's mask/logits shape check identically in both paths -- not a parity regression, but worth stating. #3725 stacks on this PR and relies on the scale_gradients -> correct_main_grads -> optimizer.step() finalization order; flag any reordering there.
|
/ok to test fb138a7 |
Signed-off-by: seonjinn <sna@nvidia.com>
The merge-base changed after approval.
|
/ok to test 89a0a09 |
|
/ok to test 6d5c106 |
|
/ok to test 53a9e12 |
Copied pull-request branches use push events, so Codecov needs an explicit PR number. Pass commit_parent for upload-coverage instead of base_sha, which is only supported by pr-base-picking. Preserve the coverage threshold and all training behavior. Signed-off-by: seonjinn <sna@nvidia.com>
|
/ok to test e94b052 |
Preserve split-step normalization alongside the merged draft optimizer support. Keep both type-check entries and inherit the shared CI workflow from main. Signed-off-by: seonjinn <sna@nvidia.com>
|
/ok to test 18138e8 |
|
/ok to test 0cbe19c |
1 similar comment
|
/ok to test 0cbe19c |
Preserve deferred draft normalization alongside the indexed teacher head contract. Signed-off-by: seonjinn <sna@nvidia.com>
|
/ok to test b4fbcc4 |
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Signed-off-by: seonjinn <sna@nvidia.com>
Summary
Scope
Split-step state and lifecycle handling around the soft-CE primitive; no new draft model or runtime integration.
Validation
76c2648d75c76b9f107f5de3d28f48cfa879316bPrior distributed evidence
6327354,6326981,6327012,6327013: split lifecycle, PP2 grad-norm propagation, and DP2/DP4 uneven/zero-count FP32/BF16 parity passed.Dependencies / Remaining
Depends on #3703. The branch-up-to-date check is the only current failure.