Repository navigation
test(single-controller): add token-capture dynamic-sampling nightlies - #5244
Conversation
04da625 to
388ab17
Compare
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
I found two test-correctness issues in the new drivers:
- C1: An incomplete run can exit successfully without running any metric assertions.
- C2: Capture failures in dynamically filtered groups escape the finalizer health checks.
I inspected all five changed files and their affected paths, with three delegated topic reviews. This was a static review; I did not run tests or lint. The mounted Gym and Megatron-Bridge submodule directories were empty, so I could not verify their implementations directly.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
388ab17 to
ccdd0fd
Compare
ccdd0fd to
d035c05
Compare
|
/ok to test d035c05 |
yuki-97
left a comment
There was a problem hiding this comment.
Great to have the windowed and ready_first samplers from #4784 covered by token-capture dynamic-sampling nightlies: each now runs DAPO dynamic sampling through the Gym rollout path every night.
Thanks for posting the 100-step runs of both recipes and the in_order control in the description, along with the gate-calibration table: every threshold can be read off clearly against what the runs measured.
Scope: the two recipes, the two nightly drivers and the nightly.txt entries, at d035c05
Checked:
- Nightly GPU-hour budget: the DRYRUN total goes from 5350 to 5384, within the 5400 cap in
test_recipes_and_test_suites.py:263-296, so no cap bump is needed. - Sampler identity: the
replaced_prompt_groupsgates fail each driver if the run silently uses the other sampler, since only ready_first refills from its pool; a good call that the dapo-llama nightly pair does not have. - Gate coverage: every gate key is logged each step and
check_metricsfails on a missing key, and the unconditionallen(train/loss) == MAX_STEPScheck turns an early stop into a failure instead of skipped gates. - Gym data prep:
ng_prepare_datawrites exactly thedata/math_with_judge/train.jsonlthatdata.train.data_pathreads, and the prep block and env.yaml handling match the existing Gym nightlies.
Remaining comments are on:
- the unread
env.mathoverride in the windowed recipe - capture failures in dynamically filtered groups escaping the finalizer health gates
Generated by Claude Code
4ffda1c to
f7c2be4
Compare
Run SingleController DAPO dynamic sampling on the token-capture path under the two streaming samplers, windowed and ready_first. Qwen2.5-1.5B-Instruct on 1n8g, OpenMathReasoning through NeMo-Gym math_with_judge (token capture is only wired up on the Gym rollout path). The two recipes differ only in async_rl.sampler.name. Gates and NUM_MINUTES are calibrated on 100-step runs of both recipes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: ruit <[email protected]>
- Fail both drivers on any finalizer rollout rejection in the run log; dynamic sampling filters groups before their finalize/* metrics are stored, so the metric gates alone miss rejections in filtered groups. - Drop the unused env.math block from the windowed recipe; the NeMo-Gym path never builds MathEnvironment. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: ruit <[email protected]>
|
/ok to test 1c9e518 |
f7c2be4 to
1c9e518
Compare
What
Two SingleController nightlies that run DAPO dynamic sampling on the token-capture path, one per streaming sampler added in #4784:
dapo-qwen2.5-1.5b-instruct-1n8g-windowed-single-controller-token_capturedapo-qwen2.5-1.5b-instruct-1n8g-ready-first-single-controller-token_capture(inherits the windowed recipe; onlyasync_rl.sampler.namediffers)Covers the dynamic sampling that #4784 added for these samplers.
Setup
max_total_sequence_length=8192, 100 steps.math_with_judge, judge off, prepared from HF withng_prepare_data. Token capture is only wired up on the Gym rollout path, so the built-in math env cannot be used here.dynamic_sampling_max_gen_batches=30.Gates
Calibrated on 100-step runs of both recipes. The table shows the worse of the two.
async_rl.sampler.name=in_order; not added as a nightly): https://wandb.ai/nvidia/nemo-rl/runs/tge1i5yjtoken_mult_prob_errorgen_kl_errormedianunfiltered_rewardmedianzero_variance_groups_totalat step 100finalize/invalid_row_rate,finalize/capture_poisoned_rolloutsskipped_step,dropped_prompt_groupsreplaced_prompt_groups(sampler check)total_step_timemedianThe
replaced_prompt_groupsgate is what tells the two drivers apart: only ready_first refills a filtered group from its replacement pool, so the gate fails if a run silently uses the other sampler.unfiltered_rewardis low because OpenMathReasoning is hard for a 1.5B model. Most groups come back all-wrong, so the zero-variance filter and its replacement path run on every step.NUM_MINUTES=130: the two runs took 103 and 99 minutes including startup. Each test costs 17 GPU hours, and the nightly total goes from 5350 to 5384 (cap 5400).🤖 Generated with Claude Code