Repository navigation
feat(sc): add GRPO training-time validation - #5423
yuekaizhang wants to merge 11 commits into
Conversation
Signed-off-by: Yuekai Zhang <[email protected]>
Signed-off-by: Yuekai Zhang <[email protected]>
yuekaizhang
left a comment
There was a problem hiding this comment.
Reviewed the 16-file change with five specialist roles, an independent two-pass adversarial review, and a separate comment-editing pass. Four collaborator agents plus the lead performed these roles.
The explicit validation profile and current-step checkpoint result are useful boundaries. Eight findings remain:
- (C1) Admitted replacement rollouts can deadlock validation draining.
- (C2) Existing fixtures and argument checks cause 113 recurring unit-test failures.
- (C3) The watchdog can abort while validation prompts are completing.
- (C4) Periodic validation enters the next training step’s engine token count.
- (C5) Shared sampling comments omit native validation support.
- (C6) Supported native recipes retain outdated support comments.
- (C7) Validation overhead needs measured evidence.
- (C8) Shared metric-key constants would avoid paired spelling changes.
The same 361-case selection gives 361 passes at the base, 248 passes and 113 failures at the head, then 361 passes with disposable fixture/assertion repairs only. Bounded production-code probes reproduce the drain, watchdog and counter defects. The final per-prompt watchdog repair passes the timing cases, ordering/failure/cancellation checks and 36 equivalence cases.
The real-model functional smoke was not rerun, and the broader backend run was interrupted. The import-order hook reports two PR files; the other Ruff checks pass. Pinned type checking remains unverified because the container’s Pyrefly version differs from the required version.
No merge conflict was reported. This remains a local preview; no GitHub review or comments were created.
nemo-rl-review: kind=self harness=codex/0.166.0 model=gpt-6.1-sol effort=high review-pr-team=v3 reviewed=03d9a5d
Signed-off-by: Yuekai Zhang <[email protected]>
Signed-off-by: Yuekai Zhang <[email protected]>
|
/ok to test 6ab87d7 |
@yuekaizhang, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test 6ab87d7 |
Signed-off-by: Yuekai Zhang <[email protected]>
|
/ok to test 5805103 |
Signed-off-by: Yuekai Zhang <[email protected]>
|
/ok to test 3ef946c |
Signed-off-by: Yuekai Zhang <[email protected]>
Signed-off-by: Yuekai Zhang <[email protected]>
Signed-off-by: Yuekai Zhang <[email protected]> (cherry picked from commit b54bf14) (cherry picked from commit b093c4f)
Signed-off-by: Yuekai Zhang <[email protected]>
Signed-off-by: Yuekai Zhang <[email protected]>
Signed-off-by: Yuekai Zhang <[email protected]>
|
/ok to test 4e05c29 |


What and why
SingleController GRPO can now evaluate during training with native environments and direct, non-colocated vLLM generation. Start, periodic, and final validation use their own dataset and sampling profile. Validation emits accuracy, response length, pass@k, and completion JSONL. Optional early stopping saves the stopping step, and validation-based checkpoint ranking uses the score measured on that checkpoint's weights.
flowchart LR A[Validation is due] --> B[Close training dispatch and drain rollouts] B --> C[Refit the generation fleet] C --> D[Run validation rollouts] D --> E[Log metrics and provide current-step checkpoint score] E --> F[Resume training or save and stop]Issues
Addresses the training-time validation item in #5044. Ports the validation lifecycle and rollout-manager design from #3203 to the current controller.
Convergence / perf / functionality proof
1,662 unit tests and 1,750 configuration subtests passed in the targeted suites, including same-step checkpoint scoring and early stopping.
The new H100 functional test with Qwen2.5-1.5B, Megatron Bridge, and async vLLM passed. It verifies the validation schedule, pass@k from logged completions, and checkpoint metadata.
A second H100 smoke stopped on greedy validation at step 1 and resumed from its checkpoint through step 3.
A three-step Qwen3.5-35B-A3B-Base smoke with Megatron Bridge EP16 and vLLM TP8 on 24 H100s completed. AIME2024 validation emitted 16 completions per pass at steps 0, 2, and 3. Step 2 and 3 checkpoint metadata matched the validation scores recomputed from their completion logs.
Matched three-step Qwen2.5-1.5B runs on 2 H100s measured validation at steps 0, 2, and 3 with 3 prompts and 2 completions each. Validation took 4.10 s at startup and 2.22 s at steps 2 and 3, with drain under 0.1 ms for this LA0 smoke. Step 2 and 3 wall times were 3.88/4.07 s with validation off and 6.11/6.52 s with it enabled. End-to-end valid training tokens/s/GPU for those steps were 28.36/27.36 off and 20.94/15.81 on. These are short-run timing measurements and include rollout variability.
Needs upstream changes
None.
PR commands and CI
CI:Lfast: the default for most PRs. Runs a fast test subset.CI:L1: dependency or container changes (pyproject.toml,uv.lock,Dockerfile) or broad core changes. Builds a new image and runs unit and functional tests.CI:docs: docs-only changes. Runs doc tests only./ok to test <full-commit-sha>: start CI for that commit. Post again after each push./review: automated review comments. Addmode=strictfor a stricter review,reset=truefor a fresh full review./resolve-conflict: Autobot mergesmaininto this PR and resolves the conflicts. PRs from forks must allow edits by maintainers./review-pr-team <pr-number>for a team review before you ask for human review.