Repository navigation
perf(tests): enable vLLM PIECEWISE CUDA graphs in two eager release recipes - #4568
Conversation
c028dfa to
b458cef
Compare
|
/ok to test b458cef |
…ecipes dapo-qwen2.5-7b.v2 (16n8g) and grpo-minimax-m3-32n8g-automodel-cp8ep128- noncolocated ran vLLM with enforce_eager: true. Same-window A/Bs on cw_dfw H100, with eager, PIECEWISE and FULL_AND_PIECEWISE arms sharing one container and one code snapshot: - dapo-qwen2.5-7b.v2: generation per step 165 -> 74 s (-55%), wall 204 -> 156 min. token_mult_prob_error spikes went 4/20 -> 5/20; the CI eager run spiked on 7/20. FULL_AND_PIECEWISE was slower (161 min) and spiked on 8/20 steps. - minimax-m3: generation per step 521 -> 266 s (-49%), wall 82 -> 58 min. token_mult_prob_error spikes went 0/5 -> 2/5, within eager noise (the CI eager run spiked on 1/5). FULL_AND_PIECEWISE was 3% faster in wall time (7% in generation) but raised the median token_mult_prob_error. check_metrics passes in every arm and gen_kl_error is unchanged. minimax NUM_MINUTES drops from 240 to 120, and checkpoint_must_save_by drops to 01:45. The MiniMax-M3 guide now describes the graph setting and notes that its reference curves were produced in eager mode. The GB200 child dapo-qwen2.5-7b-16n4g-automodel-cp2.v2 now pins enforce_eager: true, so its behaviour is unchanged until it gets its own A/B. The recipe comments cite the rollout-perf skill (#4556). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Jonas Yang <[email protected]> Signed-off-by: fujial <[email protected]>
b458cef to
a2cc942
Compare
|
/ok to test a2cc942 |
yuki-97
left a comment
There was a problem hiding this comment.
Moving the two eager release recipes onto vLLM PIECEWISE CUDA graphs cuts generation time per step by about half, a clear win for the release suite.
Great to see the eager / PIECEWISE / FULL_AND_PIECEWISE A/B and the r0.8.0 H100 re-validation posted in the description, including the first-run miss and the probability-error spikes: the effect of each mode can be read off clearly.
Scope: the two recipe YAMLs, the GB200 child, the minimax test script and the minimax doc.
Checked:
- GB200 child keeps eager — it inherits
cudagraph_mode: PIECEWISEbut setsenforce_eager: true, which vLLM v0.29.0 turns intocudagraph_mode=NONE(vllm/config/vllm.py), so its effective config is unchanged. - Dropping
enforce_eagerfrom both recipes falls back toFalsein grpo_math_1B.yaml:492, and vllm_worker.py:766 reads the key directly, so nothing raises. - minimax
NUM_MINUTES=120is about 2x the measured 58-60 minutes, andcheckpoint_must_save_byfollows it: it is theTimeoutCheckerdeadline (timer.py:437), so it must stay under the job limit, and 01:45 keeps the usual 15-minute margin. vllm_kwargs.compilation_config.cudagraph_modehas precedent in other recipes, and the key path in the minimax doc matches the YAML.
Remaining comments are all nits, not blocking merging: shortening the new recipe comments, whose rollout-perf reference does not resolve on r0.8.0, and tightening the minimax doc bullet.
Co-authored-by: Yuki Huang <[email protected]> Signed-off-by: Yuki Huang <[email protected]>
|
/ok to test ce35a8d |
What does this PR do?
Enables vLLM PIECEWISE CUDA graphs in two release recipes that ran with
enforce_eager: true:dapo-qwen2.5-7b.v2(16n8g)grpo-minimax-m3-32n8g-automodel-cp8ep128-noncolocated(32 nodes)It also lowers minimax's
NUM_MINUTESfrom 240 to 120, and itscheckpoint_must_save_byto 01:45.Evidence
The A/Bs ran in the same window on cw_dfw (H100). The eager, PIECEWISE and FULL_AND_PIECEWISE arms all ran concurrently on one container (
rl.71311563.sqsh, vLLM 0.29) and one code snapshot. These original A/B results were collected before the release rebase; see the r0.8.0 validation and revision details below.token_mult_prob_errormedian (spike steps)gen_kl_errorWhy PIECEWISE. Per the
rollout-perfskill (#4556), the graph mode is chosen by A/B:token_mult_prob_error.Spikes. The PIECEWISE arms show a few more
token_mult_prob_errorspike steps than eager in this window: 4→5 for dapo-qwen2.5 and 0→2 for minimax. The CI eager runs of the same tests spiked too: 7/20 for dapo-qwen2.5 (pipeline 71311563), and 1/5 for minimax at 6.1e4. That puts the difference within eager's own run-to-run noise.gen_kl_erroris unchanged, and every arm passes the test's owncheck_metrics.Other changes
dapo-qwen2.5-7b-16n4g-automodel-cp2.v2(GB200 child, renamed on r0.8.0): now pinsenforce_eager: true. Its effective config is unchanged until it gets its own A/B.docs/guides/models/minimax/minimax-m3.md: now describes the graph setting, and notes that its 100-step reference curves were produced in eager mode.Validation
The checks below predate the latest release rebase and are retained as historical validation. Current-head CI results are summarized below.
tools/config_cli.py minimize-checkpasses on all recipes.nemo_rl.utils.config.load_configon the three affected recipes, compared with the originalmainbaseline:vllm_cfgdiffers only inenforce_eager.compilation_configequals what the PIECEWISE arm ran.'cudagraph_mode': <CUDAGraphMode.PIECEWISE: 1>in the treatment arms andNONEin the eager arms.Additional H100 validation on r0.8.0 (October 12–14, 2026)
Validated this PR's patch (
c028dfa5e11ad72304946a10ac9ad7b1ceee7377) replayed ontor0.8.0ate7ad28433bc2740b23c2667589c8a8f3b3248a31; the local validation commit was1c7088d39907fc3678826ea554935b9c243b2f03. The PR now targetsr0.8.0. Its current head isa2cc94244e8d3ffc1a67d3401ae398b8f725767d, based on release commita3ba27a28f455e939ffbb75f0270d2daf6fc912a. The rebase preserves all original added/removed lines, moving the GB200 eager override to its renamed recipe. The H100 runs below used the earlier validation commit, not the current head; Current-head CI results are recorded below. Runs usedrl.71311563.sqsh(vLLM 0.29), with package/submodule pins verified against the release snapshot and task-local aliases for renamed actor environments. Original recipe scales, step counts, checkpointing, and acceptance thresholds were retained. Engine logs confirmed PIECEWISE in all runs below.dapo-qwen2.5-7b.v2— first run20043336dapo-qwen2.5-7b.v2— independent rerun20164867COMPLETED, exit 0grpo-minimax-m3-32n8g-automodel-cp8ep128-noncolocated20043756COMPLETED, exit 0Passing-run metrics:
token_mult_prob_error1.011821985244751 (< 1.1).token_mult_prob_error, andgen_kl_errorwere all finite; mediantoken_mult_prob_error1.0285286903381348 (< 1.1); meangen_kl_error0.0023641306906938553 (< 0.01).Checkpoint verification: Qwen's rerun finalized step 20, with a captured manifest containing 128 weight shards and 128 optimizer shards. MiniMax's logs report completed weight and optimizer saves before successful exit; its original recipe removed the checkpoint directory afterward, so no independent shard manifest was captured for that run.
Run-to-run variability: Qwen missed the reward threshold on the first run (−0.4182 vs. > −0.40) and passed on an identical-config rerun (−0.3796), showing run-to-run variability.
Probability-error spikes: The passing Qwen rerun reached
token_mult_prob_error= 101.58 at step 8 (first-run maximum: 43,344.79); MiniMax's maximum was 1.3987. Median-based acceptance checks do not exclude individual spikes; their cause was not isolated in these runs.CI on the current r0.8.0 PR head (October 15, 2026)
CI:L1 passed for
a2cc94244e8d3ffc1a67d3401ae398b8f725767d, targetingr0.8.0: CI run, attempt 2.L0_Unit_Tests_Automodelinitially failed becausetest_vllm_generation_with_hf_training_colocated[True-False-bfloat16-False]exceeded its 360-second timeout. The unchanged rerun passed; that test took 195.90 seconds. Both attempts used the same code, pytest command, and container digest. No timeout or acceptance threshold was relaxed.Notes
rollout-perfskill, which lands in that PR.🤖 Generated with Claude Code