Skip to content

perf(tests): enable vLLM PIECEWISE CUDA graphs in two eager release recipes - #4568

Merged
yuki-97 merged 2 commits into
r0.8.0from
joyang/rollout-perf-cuda-graphs-release
Oct 17, 2026
Merged

yuki-97 merged 2 commits into
r0.8.0from
joyang/rollout-perf-cuda-graphs-release

Conversation

@joyang-nv

@joyang-nv joyang-nv commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

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_MINUTES from 240 to 120, and its checkpoint_must_save_by to 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.

Test Arm Generation / step Wall token_mult_prob_error median (spike steps) gen_kl_error check_metrics
dapo-qwen2.5-7b.v2 eager 165.5 s 204.2 min 1.0127 (4/20) 0.00061 PASS
PIECEWISE 74.3 s (−55%) 155.8 min (−24%) 1.0122 (5/20) 0.00060 PASS
FULL_AND_PIECEWISE 81.1 s 160.8 min 1.0145 (8/20) 0.00062 PASS
minimax-m3 eager 520.6 s 82.5 min 1.0268 (0/5) 0.00238 PASS
PIECEWISE 265.8 s (−49%) 58.2 min (−29%) 1.0280 (2/5) 0.00236 PASS
FULL_AND_PIECEWISE 248.0 s 56.6 min 1.0332 (2/5) 0.00236 PASS

Why PIECEWISE. Per the rollout-perf skill (#4556), the graph mode is chosen by A/B:

  • dapo-qwen2.5: FULL_AND_PIECEWISE was slower and spiked on more steps.
  • minimax: FULL_AND_PIECEWISE was 3% faster in wall time (7% in generation), but raised the median token_mult_prob_error.

Spikes. The PIECEWISE arms show a few more token_mult_prob_error spike 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_error is unchanged, and every arm passes the test's own check_metrics.

Other changes

  • dapo-qwen2.5-7b-16n4g-automodel-cp2.v2 (GB200 child, renamed on r0.8.0): now pins enforce_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-check passes on all recipes.
  • nemo_rl.utils.config.load_config on the three affected recipes, compared with the original main baseline:
    • Each vllm_cfg differs only in enforce_eager.
    • compilation_config equals what the PIECEWISE arm ran.
    • The GB200 child is unchanged.
  • Engine logs show 'cudagraph_mode': <CUDAGraphMode.PIECEWISE: 1> in the treatment arms and NONE in the eager arms.
  • An independent self-review was run, and its findings were addressed: the doc update, honest spike reporting, and the dependency note.

Additional H100 validation on r0.8.0 (October 12–14, 2026)

Validated this PR's patch (c028dfa5e11ad72304946a10ac9ad7b1ceee7377) replayed onto r0.8.0 at e7ad28433bc2740b23c2667589c8a8f3b3248a31; the local validation commit was 1c7088d39907fc3678826ea554935b9c243b2f03. The PR now targets r0.8.0. Its current head is a2cc94244e8d3ffc1a67d3401ae398b8f725767d, based on release commit a3ba27a28f455e939ffbb75f0270d2daf6fc912a. 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 used rl.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.

Recipe H100 allocation Slurm job Steps Elapsed Original recipe checks / exit
dapo-qwen2.5-7b.v2 — first run 16 × 8 20043336 20/20 2:36:17 FAIL: final reward −0.418212890625 (required > −0.40); other two checks passed; exit 1
dapo-qwen2.5-7b.v2 — independent rerun 16 × 8 20164867 20/20 2:35:01 PASS, 3/3 checks; COMPLETED, exit 0
grpo-minimax-m3-32n8g-automodel-cp8ep128-noncolocated 32 × 8 20043756 5/5 0:59:52 PASS, 5/5 checks; COMPLETED, exit 0

Passing-run metrics:

  • Qwen: final reward −0.379638671875 (> −0.40), final filtered reward −0.186279296875 (> −0.20), median token_mult_prob_error 1.011821985244751 (< 1.1).
  • MiniMax: loss, token_mult_prob_error, and gen_kl_error were all finite; median token_mult_prob_error 1.0285286903381348 (< 1.1); mean gen_kl_error 0.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, targeting r0.8.0: CI run, attempt 2.

  • 27/27 unit-test tasks, 21/21 H100 functional-test tasks, and 24/24 GB200 functional-test tasks passed.
  • CI quality check, all three coverage jobs, and DCO passed. The release workflow also passed.
  • Retry note: L0_Unit_Tests_Automodel initially failed because test_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

🤖 Generated with Claude Code

@joyang-nv joyang-nv added the CI:L1 Run doctests, unit tests, and functional tests label Oct 7, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 7, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Oct 7, 2026
@fujial-code
fujial-code force-pushed the joyang/rollout-perf-cuda-graphs-release branch from c028dfa to b458cef Compare October 15, 2026 04:53
@github-actions github-actions Bot added the CI Relating to CI label Oct 15, 2026
@fujial-code
fujial-code changed the base branch from main to r0.8.0 October 15, 2026 04:53
@fujial-code

Copy link
Copy Markdown
Contributor

/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]>
@fujial-code
fujial-code force-pushed the joyang/rollout-perf-cuda-graphs-release branch from b458cef to a2cc942 Compare October 15, 2026 05:16
@github-actions github-actions Bot removed the CI Relating to CI label Oct 15, 2026
@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test a2cc942

@yuki-97 yuki-97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: PIECEWISE but sets enforce_eager: true, which vLLM v0.29.0 turns into cudagraph_mode=NONE (vllm/config/vllm.py), so its effective config is unchanged.
  • Dropping enforce_eager from both recipes falls back to False in grpo_math_1B.yaml:492, and vllm_worker.py:766 reads the key directly, so nothing raises.
  • minimax NUM_MINUTES=120 is about 2x the measured 58-60 minutes, and checkpoint_must_save_by follows it: it is the TimeoutChecker deadline (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_mode has 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]>
@yuki-97 yuki-97 added cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) and removed CI:L1 Run doctests, unit tests, and functional tests labels Oct 17, 2026
@yuki-97

yuki-97 commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

/ok to test ce35a8d

@yuki-97
yuki-97 enabled auto-merge (squash) October 17, 2026 06:50
@yuki-97
yuki-97 merged commit cd4a398 into r0.8.0 Oct 17, 2026
94 checks passed
@yuki-97
yuki-97 deleted the joyang/rollout-perf-cuda-graphs-release branch October 17, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants