Skip to content

perf(tests): enable vLLM CUDA graphs in eight eager nightly recipes - #4569

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

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

Conversation

@joyang-nv

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

Copy link
Copy Markdown
Member

What does this PR do?

Turns on vLLM CUDA graphs in eight nightly recipes that ran with enforce_eager: true, with corresponding time-budget reductions and child-config cleanup. Nano 3.5 is excluded from this PR: its recipe and driver are restored exactly to r0.8.0 (eager mode, 240-minute runtime budget, and 03:45:00 checkpoint deadline). Its numerical-error investigation remains in #4777.

The current configured H100 nightly budget is 4613 GPU-hours, with a 4633 budget-test limit (20 GPU-hours of headroom). The other recipe optimizations are unchanged. The original measurements below include the since-withdrawn Nano optimization and refer to historical snapshots; their totals are not the current PR budget.

Why

These are decode-tail-bound GRPO/DAPO tests: the longest response hits max_new_tokens on almost every step, and generation is 45–98% of step time. Eager mode makes every decode step pay full kernel-launch overhead. Each recipe was diagnosed and A/B-tested following the rollout-perf skill (#4556).

Original main-based evidence

Historical scope before Nano withdrawal. Nano rows below are retained as investigation evidence only; its CUDA-graph optimization is not shipped by this PR.

Setup: same-window A/B on cw_dfw, 8×H100 per node. All arms used one frozen nightly container (rl.71856875.sqsh, vLLM 0.29) and the identical CI code snapshot. Arms differ only in the vLLM override.

Gates in the original nightly A/B above: every shipped arm passed the test's own check_metrics. The original measurements reported eager-level token_mult_prob_error and gen_kl_error. The later r0.8.0 rerun below found large intermediate Nano probability-error spikes despite passing its native gates; the original statement should not be read as a general numerical-stability guarantee.

Recipe Historically tested mode Generation / step Wall
grpo-qwen3.5-35ba3b-2n8g-megatron-ep16tp2-fp8 PIECEWISE 308 → 46 s (−85%) 174 → 79 min
vlm_grpo-nemotron-omni-30ba3b-clevr-2n8g-megatron-tp8ep8.v1 FULL_AND_PIECEWISE 155 → 28 s (−82%) 51 → 27 min
grpo-qwen3.5-35ba3b-2n8g-megatron-ep16tp2cp2 FULL_AND_PIECEWISE 242 → 51 s (−79%) 153 → 81 min
grpo-qwen3-8b-base-dapo-2n8g-long-megatron-qa-nvfp4-w4a16 FULL_AND_PIECEWISE 974 → 247 s (−75%) 164 → 55 min
grpo-math-qwen3-30ba3b-megatron-tp4-32k PIECEWISE 1356 → 354 s (−74%) 123 → 57 min
vlm_grpo-nemotron-omni-30ba3b-mmpr-4n8g-automodel-ep8.v1 FULL_AND_PIECEWISE 300 → 82 s (−73%) 81 → 41 min
dapo-nanov3.5-30BA3B-4n8g-automodel PIECEWISE 325 → 101 s (−69%) 152 → 65 min (Oct 5 A/B)
vlm_grpo-nemotron-omni-30ba3b-clevr-1n8g-automodel-ep8.v2 FULL_AND_PIECEWISE 168 → 58 s (−65%) 95 → 80 min
vlm_grpo-gemma4-e4b-geo3k-1n8g-automodel FULL_AND_PIECEWISE 65 → 26 s (−60%) 59 → 47 min
grpo-gspo-deepscaler-1.5b-8K FULL_AND_PIECEWISE + backend: eager 128 → 66 s (−48%) 224 → 134 min

How the graph mode was chosen

Every test had an eager arm, a PIECEWISE arm and a vLLM-default FULL_AND_PIECEWISE arm. PIECEWISE-only was a workaround for the vLLM 0.20 FULL-graph accuracy bug, so on vLLM 0.29 the mode was picked per test by A/B:

  • FULL_AND_PIECEWISE matched or beat PIECEWISE by 2–17% in generation on six recipes, so they use the default.
  • PIECEWISE won in three cases:
    • dapo-nanov3.5: same speed, but the FULL_AND_PIECEWISE arm failed check_metrics with a step-20 token_mult_prob_error of 6.5e9 (spikes on 6/20 steps, against 1/20).
    • qwen3-30b-32k: FULL_AND_PIECEWISE was 3% faster but added a step-1 spike (1.30).
    • qwen3.5 -fp8 child: FULL graphs left 833 Mamba cache blocks for max_num_seqs 1024, so vLLM failed at startup.
  • gspo: Inductor-compiled kernels raised the median token_mult_prob_error from 1.013 to 1.040 and failed the gen_kl_error gate (0.00063 > 0.0005). backend: eager keeps vLLM's custom kernels under graphs and holds the eager-level 1.013 / 0.00044. This matches grpo-deepscaler-1.5b-*.

Child recipes

  • Tested children: gspo -tq_simple and omni clevr -tq_mooncake inherit their parent's change and were A/B-tested themselves.
    • -tq_simple (backend: eager): 129 → 67 s per step, 226 → 135 min.
    • -tq_mooncake (FULL_AND_PIECEWISE): 174 → 29 s per step, 60 → 30 min.
    • Gates pass for both, and token_mult_prob_error / gen_kl_error stay at their eager levels.
  • Children that already ran graphs: grpo-qwen3.5-35ba3b-6n4g-async-1off-bf16-trtllm, grpo-qwen3.5-35ba3b-4n4g-megatron-ep16tp2-mxfp8-trtllm (GB200) and vlm_grpo-nemotron-omni-30ba3b-mmpr-4n8g-megatron-tp8ep16.v1.
    • Their now-redundant enforce_eager: false is removed; minimize-check rejects it once the parent no longer sets true.
    • mmpr-tp8ep16 pins fuse_allreduce_rms: true, the H100 default, so it does not inherit its parent's false.
    • I checked with nemo_rl.utils.config.load_config that their effective vLLM config is unchanged.

Original main-based validation

  • tools/config_cli.py minimize-check examples/configs/recipes/{llm,vlm}/*.yaml passes.
  • load_config on all 15 affected recipes, compared with main:
    • vllm_cfg differs only in enforce_eager (True → False).
    • vllm_kwargs.compilation_config equals what the winning arm ran.
    • No vllm_cfg became null.
  • Each graph arm's engine log shows the intended 'cudagraph_mode': <CUDAGraphMode.…> and Capturing CUDA graphs (…) lines.
  • The DRYRUN=1 tools/launch nightly total drops from 4789 to 4529. NUM_MINUTES keeps at least a 1.5× margin over the measured wall time (1.8–2.2× for every lowered value).
  • An independent self-review found the following, all fixed before this push:
    • an empty vllm_cfg: that would have loaded as null;
    • redundant child keys;
    • untested inheritance into children.

Current release scope and validation

  • PR target: r0.8.0; current PR commit: 31399f7aac74b8010827c451f7e53c44bd70245a; release base: b0617dab12f58a48b8a1a57e60e9e0db53d3e194.
  • Following review, withdrew all Nano 3.5 changes from the PR. examples/configs/recipes/llm/dapo-nanov3.5-30BA3B-4n8g-automodel-ep8.yaml and its matching shell driver are byte-for-byte identical to the release base, including enforce_eager: true, NUM_MINUTES=240, and checkpoint_must_save_by: 00:03:45:00. No PIECEWISE or fusion override is introduced for Nano.
  • All 19 other recipe/config/driver files are byte-for-byte unchanged from the previous PR head bb11e5513f555b1e7e9c45cf49b48b63f0439edf. The net PR diff now contains those 19 files plus the nightly-budget unit test. No training metric threshold was changed.
  • Nightly allocation recomputed by dry-running all 139 scripts: 4613 GPU-hours, up 64 from the prior PR head because Nano retains its full eager runtime budget. The budget assertion is 4633 = 4613 + 20.
  • Local validation: 15 existing CPU configuration/recipe-suite tests passed, including the updated budget test; one GPU/runtime-dependent dry-run test was excluded. Ruff and git diff --check passed. Both restored Nano files match the release base exactly.
  • The CI platform-selection feature remains removed; the PR retains CI:Lfast. Final-commit CI passed on attempt 1: run 39205885113 completed successfully on 31399f7aac74b8010827c451f7e53c44bd70245a. All 27 unit-test jobs and 21 H100 fast functional jobs, documentation tests/build, lint, branch freshness, script coverage, and all three coverage reports passed. The required CI quality check passed and was verified via the PR required checks. No retries or further code changes were needed. This is the existing FAST=1 subset, not a full nightly rerun; no GB200 GPU tests were run.
  • Formal CI also passed test_nightly_compute_stays_below_4633_hours, with the actual nightly allocation total 4613. The Other unit-test job completed with 4546 passed, 368 skipped, and 2 deselected.
  • Nano remains available as an unchanged release recipe. Its numerical-error investigation is tracked separately in #4777; withdrawal is not a root-cause fix.

Prior CI result before Nano withdrawal (October 19, 2026)

Run 39195619932 passed on attempt 1 for prior commit bb11e5513f555b1e7e9c45cf49b48b63f0439edf: all 27 unit-test jobs and 21 H100 fast functional jobs, documentation, lint, freshness, script coverage and coverage reports passed, including the required CI quality check. That revision still included Nano's PIECEWISE optimization and used budget 4549 / 4569.

CI:Lfast uses the existing FAST=1 subset and skips some full-training subtests; successful job counts do not imply full L1 or nightly coverage. GB200 GPU tests were not run by this tier. Release base: b0617dab12f58a48b8a1a57e60e9e0db53d3e194; test merge: df10fd54c5c42b8dea4b0b0a677532c6ad0640ba. The completed AutoModel job recorded the reused release image digest sha256:9fc74355741229e239480e712901b3e956541db072c3052cd45f78cdcf56d11b.

Historical release integration and CI (October 15, 2026)

  • PR target: r0.8.0.
  • PR commit tested on October 15: 6670519df7de945e194be6a6c15e12fb916ea8d1, containing the recipe commit aee4ef3e0f66545c8924ecdc61b6adedfc2aa40a and a CI platform-selection fix, on release commit a3ba27a28f455e939ffbb75f0270d2daf6fc912a.
  • That revision contained the original 21 recipe-related files plus 3 CI workflow/documentation/test files; the latter changes have now been reverted. The Nano rename conflict was resolved by preserving the release filename/checkpoint path ending in -automodel-ep8 and the PR's reduced checkpoint deadline.
  • Manual H100 validation of recipe commit aee4ef3e passed on attempt 2: all 27 unit-test groups and 21 H100 functional groups, documentation, lint and that run's quality gate succeeded. The run used test_to_run=L2 and test_platform=h100; only PPO_1 and Megatron_3 were retried, retaining the original successful results. No training code or metric thresholds were changed for the retries. This matrix is not a rerun of every historical nightly recipe below; GB200 validation remains separate.
  • Formal PR CI passed on attempt 2: push-triggered PR CI on 6670519df7de945e194be6a6c15e12fb916ea8d1 completed successfully. All 27/27 unit-test groups and 21/21 H100 functional groups, documentation tests/build, lint, script-coverage checks, and coverage-report jobs passed. The required CI quality check passed and is reported by gh pr checks --required. GB200 GPU build/tests were skipped as intended. This CI matrix does not rerun every historical nightly recipe below.
  • Formal CI source/environment: preflight selected L1 and h100, with release base a3ba27a28f455e939ffbb75f0270d2daf6fc912a and merge candidate 9e0f3a88096c3ad36cb738ebe4c61f6fb306ea91 (same code tree as the PR head). H100 image: 766267172432.dkr.ecr.us-east-1.amazonaws.com/rl:38720249750, digest sha256:af7404071a1d992020cffd23c7375e4f11147654ac2aec27b351075f1d57aba4. That run used the since-reverted CI-platform:h100 support to select H100 while retaining CI:L1. All 12 new platform-selection regression tests passed in formal CI, in addition to local tests and Ruff checks. Historical entry-point distinction: workflow_dispatch job checks are not eligible required PR checks (GitHub documentation).
  • Formal CI build/retry note: attempt 1 was intentionally cancelled for diagnosis before GPU tests started. Its log showed a cold FlashAttention build taking about 51 minutes, followed by image-layer export; no code build error was identified. Cancelling based on the shorter cached-build reference was premature. The full attempt-2 rerun passed, including the complete test matrix; no training code or metric thresholds were changed, and no test-group retries were needed within this attempt.
  • Release-base precision: at the final audit, r0.8.0 had advanced to 3dc075c389cd5c4049e4f14508987338b7c1d868, adding fix(nightly): make dpo-nanov3-30B3AB-1n8g-automodel-ep8.v2 deterministic #4619 (1678c667) and docs: make NeMo Gym the primary evaluation path #4687 (3dc075c3) after the tested base. This rerun retained the original PR-info snapshot and tested a3ba27, not those later release commits. At that audit the PR was conflict-free and two release commits behind, within the workflow's 10-commit freshness limit.
  • Formal CI follow-up on the historical failures below: PPO_1 passed, including both subtests and all 11 non-colocated metric checks; maximum critic gradient norm was 101.0140 < 350, maximum critic loss 1.52934 < 8, and maximum rollout probability error 1.02363336 < 1.05. Megatron_3 passed all six subtests; SFT completed in 4m0.1s, with step-3 loss 0.740125 < 0.8. Neither historical issue recurred in this formal run; their original root causes remain unproven. No metric gate was relaxed.
  • PPO failure investigation: ppo_non_colocated.sh completed both training steps and passed its other 10 checks, but max(train/critic/grad_norm) was 368.7537, above the unchanged 350 bound. The same test passed at 188.8472 on the exact release parent in release CI; its maximum rollout probability-error metric was identical (1.02363336) in both runs. This PR does not change the PPO implementation, default config, functional tests, or dependencies. Critic numerical variation is a hypothesis, not an established root cause. The single bounded retry passed: both PPO subtests completed, and all 11 non-colocated checks passed, with maximum critic gradient norm 40.6437 < 350 and maximum rollout probability error 1.02363336. The container digest matches attempt 1 (sha256:6829e4b4e1494fb708466afefb6022a6c1680e603298fefdeaed1dcfb249cbf3). The initial failure did not reproduce; this demonstrates run-to-run critic variation, not a root-cause fix. No code or threshold was changed.
  • Megatron_3 investigation: the first four subtests completed, then sft_megatron.sh printed its initial validation result and the start of epoch 1, followed by 85.5 minutes without further test output. The run was intentionally cancelled after approximately 110 minutes to retrieve logs; this is not a completed SFT validation. The same release-parent SFT subtest passed in 3m52s. The corresponding test and training implementation are unchanged in this PR. The bounded retry passed the full group: SFT completed in 3m44.6s, with step-3 loss 0.74016 < 0.8, and both ModelOpt rollout cases passed. Its image digest matches attempt 1. The stall did not recur; its root cause is not established.
  • Triggering note: the first H100 manual dispatch on the bot branch failed before any GPU tests because get-pr-info does not handle workflow_dispatch there (Could not determine pull request number). The linked replacement uses the same commit via the source-branch manual entry point.
  • The release base has changed dependencies and training code since the GPU rerun documented below. Those earlier results remain historical evidence, including the Nano numerical-stability concern; they do not certify the current commit.

GB200 validation

GB200 validation was run in two stages. These runs validate the snapshots named below; they predate the current release head and are not presented as tests of the current PR commit.

Original main-based PR snapshot

Source: 70ebabebad4817bf532bee4244b964d7e9080d72.

Recipe Slurm job Steps Result Final metric evidence
grpo-qwen3.5-35ba3b-4n4g-megatron-ep16tp2-mxfp8-trtllm 7812161 20/20 PASS mean gen_kl_error 0.002337 < 0.003; mean reward 0.557617 > 0.45; all losses finite
grpo-qwen3.5-35ba3b-6n4g-async-1off-bf16-trtllm 7812162 20/20 PASS mean gen_kl_error 0.001081 < 0.002; max reward 0.736328 > 0.5

Both jobs exited successfully. Their engine logs show enforce_eager=False, CUDAGraphMode.FULL_AND_PIECEWISE, and successful CUDA graph capture. No OOM, NCCL error, NaN, or traceback was found.

Local r0.8.0 validation rebase

Source: 25b9b39181d658b8274298295fcc9f20bfbede71, directly on release commit e7ad28433bc2740b23c2667589c8a8f3b3248a31.

Recipe Slurm job Steps Result Evidence
grpo-qwen3.5-35ba3b-6n4g-async-1off-bf16-trtllm 7889322 20/20 PASS exit 0; mean gen_kl_error 0.001009 < 0.002; max reward 0.767578 > 0.5
grpo-qwen3.5-35ba3b-4n4g-megatron-ep16tp2-mxfp8-trtllm (diagnostic only) 7889321 0/20 EXPECTED UNSUPPORTED CUDA graph capture completed, then refit setup stopped at MXFP8 refit does not support grouped MoE expert weights

The 4n4g row is not a failed release recipe: r0.8.0 never contained either this recipe or its grouped-MoE MXFP8 refit dependency. For diagnosis only, the exact recipe and driver from the original PR snapshot were restored outside the rebased PR. The failure confirms the missing #3724 dependency rather than a CUDA graph regression. The current release PR therefore omits the 4n4g change; it should be restored when the release commit is cherry-picked back to main, where #3724 is present.

Historical H100 validation after local rebase to r0.8.0

Runs completed on October 12, 2026; final results audited on October 15, 2026. All 13 affected H100 recipes completed their full configured steps and passed the release-native metric gates: 12 jobs exited successfully, and one Mooncake run had a post-recipe harness error, documented below. Nano still has a numerical-stability concern despite passing those gates.

Tested source and environment

  • Original PR commit: 70ebabebad4817bf532bee4244b964d7e9080d72.
  • Local validation rebase: 0f6e549f88b85e0cfe86784ff91de57d7fe76313, directly on r0.8.0 commit e7ad28433bc2740b23c2667589c8a8f3b3248a31. These GPU results came from a separate validation checkout on the earlier release snapshot. The PR has since been updated to the newer release base and commit listed above; these results must not be treated as tests of that newer commit.
  • Container: rl.71311563.sqsh, vLLM 0.29.0. Release dependency manifests and submodule pins were checked against the image. Three worker class-name differences were handled with task-local environment aliases after verifying equivalent registry entries; no dependency-version check was bypassed.
  • H100 only, 8 GPUs per node. Original node counts, full step counts, release-native gates, and PR time limits were retained. Actual engine settings and CUDA graph capture were checked. GB200 results are tracked separately and are not asserted here.
  • Preflight: 16 recipe-suite unit tests and configuration/runtime dry-run checks for all 13 recipes passed.

Recipe results

Wall times exclude queue time. PASS* means the native recipe and an independent post-run recheck passed, but the scheduler job did not exit successfully. All listed runs finished within their configured time limits.

Recipe Slurm job H100 nodes Steps Wall / limit Result
grpo-gspo-deepscaler-1.5b-8K-tq_simple 20044551 1 30/30 02:16:52 / 240 min PASS
grpo-gspo-deepscaler-1.5b-8K 20044552 1 30/30 02:14:56 / 240 min PASS
grpo-math-qwen3-30ba3b-megatron-tp4-32k 20044553 4 3/3 00:58:40 / 120 min PASS
grpo-qwen3-8b-base-dapo-2n8g-long-megatron-qa-nvfp4-w4a16 20044554 2 10/10 00:52:05 / 120 min PASS
grpo-qwen3.5-35ba3b-2n8g-megatron-ep16tp2-fp8 20044555 2 20/20 01:20:16 / 150 min PASS
grpo-qwen3.5-35ba3b-2n8g-megatron-ep16tp2cp2 20044556 2 20/20 01:25:42 / 150 min PASS
vlm_grpo-nemotron-omni-30ba3b-clevr-2n8g-megatron-tp8ep8.v1-tq_mooncake 20044559 2 10/10 00:32:00 / 60 min PASS*
vlm_grpo-nemotron-omni-30ba3b-clevr-2n8g-megatron-tp8ep8.v1 20044560 2 10/10 00:28:59 / 60 min PASS
vlm_grpo-nemotron-omni-30ba3b-mmpr-4n8g-automodel-ep8.v1 20044561 4 10/10 00:38:03 / 90 min PASS
vlm_grpo-nemotron-omni-30ba3b-mmpr-4n8g-megatron-tp8ep16.v1 20044562 4 10/10 03:15:35 / 240 min PASS
dapo-nanov3.5-30BA3B-4n8g-automodel 20044958 4 20/20 01:06:56 / 120 min PASS
vlm_grpo-nemotron-omni-30ba3b-clevr-1n8g-automodel-ep8.v2 20045189 1 10/10 01:21:02 / 120 min PASS
vlm_grpo-gemma4-e4b-geo3k-1n8g-automodel 20045192 1 20/20 00:45:45 / 90 min PASS

Mooncake harness exception (job 20044559): all 10 training steps and all three original metric-check rows passed. The external validation driver was edited while running and subsequently read from the wrong position, causing a command-not-found error after the recipe completed. Slurm therefore records FAILED, exit 127:0. An independent recheck of the saved metrics confirmed the original gates and exact steps 1–10. This is recorded as recipe success with a harness failure, not a clean scheduler pass.

Withdrawn Nano optimization: historical same-release eager control and numerical concern

Tracking issue: #4777 — Nano 3.5 PIECEWISE logprob-error tail spikes. The Nano optimization has been withdrawn from this PR and the release eager settings restored. The following data describes the earlier experimental configuration. The issue tracks the unresolved numerical concern; it is not a claim that the cause has been identified or fixed.

Both arms used the same release image, 4 nodes × 8 H100, and 20 steps. The control used unmodified r0.8.0 (enforce_eager=True, graph mode NONE); the rebased PR used PIECEWISE, enforce_eager=False, and fuse_allreduce_rms=False. These settings were verified in the actual engine logs.

Metric Rebased PR (20044958) Release eager (20044563)
Wall time 01:06:56 02:45:19
Median generation time / step 101.05 s 327.03 s
Release-native gates PASS PASS
Validation accuracy at step 20 0.44531250 0.44921875
Median token_mult_prob_error 1.01618254 1.01633626
Step-20 token_mult_prob_error 1.01600301 1.01723623
Mean gen_kl_error 0.00083536 0.00090594
Maximum token_mult_prob_error 380786.437500 2.436023
Steps with token_mult_prob_error ≥ 1.04 6/20 2/20
  • The rebased PR has large intermediate spikes: step 6 = 21.38, step 10 = 35,017.78, step 16 = 575.45, and step 19 = 380,786.44. The eager control also has outliers, with a maximum of 2.44.
  • Release-native Nano gates check step-20 validation accuracy > 0.4, median probability error < 1.04, and mean generation KL error < 0.001. They pass in both arms, but the median does not rule out extreme intermediate steps. The additional main-only step-20 probability-error threshold also passes in both arms; it is reported separately, not treated as a release-native gate.
  • The observed generation-time ratio is approximately 3.24× and the wall-time ratio approximately 2.47× in this single pair of runs. This is not a suite-wide speedup or evidence isolating a particular kernel: the configuration bundle and resulting generation trajectories differ.
  • Review caveat: this rerun confirms release-native recipe acceptance, but does not establish that Nano numerical stability is resolved. The larger tail errors in the PR arm warrant review; one run per arm is insufficient to establish causality or statistical significance.

For this release snapshot, the configured budget for these 13 recipes is 800 → 540 GPU-hours (−260, −32.5%); these are scheduler limits, not measured GPU-hour savings. The complete H100 nightly dry-run budget is 4509 GPU-hours, within the release limit of 4769. These release totals are separate from the original main snapshot totals above.

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.

@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test aee4ef3

@fujial-code fujial-code added the CI-platform:h100 Run the selected PR CI tier on H100; GB200 validation is handled separately. label Oct 15, 2026
@github-actions github-actions Bot added the CI Relating to CI label Oct 15, 2026
@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test 6670519

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team October 15, 2026 10:26

@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 eager nightly recipes onto vLLM CUDA graphs cuts generation time per step by roughly half or more, a clear win for nightly GPU-hours.

Great to see the eager / PIECEWISE / FULL_AND_PIECEWISE A/B posted per recipe, with the graph mode picked by that A/B rather than one blanket setting, and the same-release Nano eager control reported with its tail spikes: each recipe's effect can be read off clearly.

Scope: the recipe YAMLs and their test scripts, the nightly GPU-hours bound test, and the CI platform-selection change (workflow, cicd skill, new unit test).

Checked:

  • Effective config sweep — loading every recipe before and after the PR changes only the 13 intended recipes (the two tq children included), and the TRT-LLM children keep their effective vLLM config.
  • Per-recipe graph mode — FULL_AND_PIECEWISE vs PIECEWISE chosen by A/B, and gspo's backend: eager matches the deepscaler sibling.
  • Time budgets — the new NUM_MINUTES values are 1.8-2.2x the measured wall and checkpoint_must_save_by sits 15 minutes under them.
  • The mmpr tp8ep16 child's fuse_allreduce_rms: true equals vLLM's default for TP > 1 on Hopper/Blackwell (vllm/config/vllm.py:161), so its effective config is unchanged.

Remaining comments are on splitting the CI platform-selection change out of this PR (and whether the feature is needed at all, since CI:Lfast already runs with H100 only), the Nano tail spikes and the comment that describes them, and re-checking the nightly GPU-hours bound. The long recipe comments and the note in the mmpr tp8ep16 recipe are nits, not blocking merging.

Comment thread .github/workflows/cicd-main.yml Resolved
@yuki-97 yuki-97 added 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
@fujial-code fujial-code removed the CI-platform:h100 Run the selected PR CI tier on H100; GB200 validation is handled separately. label Oct 18, 2026
@github-actions github-actions Bot removed the CI Relating to CI label Oct 18, 2026
@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test 17ea2d2

@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test 39ba4ff

joyang-nv and others added 2 commits October 18, 2026 20:32
These recipes ran vLLM with enforce_eager: true. On cw_dfw H100 that left
generation launch-bound for decode-tail-bound GRPO/DAPO steps. Same-window
A/Bs (frozen container, identical code) show generation per step down
48-85% and nightly wall time down 15-66%. The tests' own check_metrics gates
pass, and token_mult_prob_error and gen_kl_error stay at their eager levels.

The graph mode per recipe is whichever arm won the A/B:
- vLLM default FULL_AND_PIECEWISE: qwen3-8b-nvfp4-w4a16, qwen3.5-35b-a3b cp2,
  gemma4-e4b, and the three Nemotron-Omni recipes. The omni recipes keep
  fuse_allreduce_rms: false, as tested.
- PIECEWISE:
  - dapo-nanov3.5-30BA3B: FULL_AND_PIECEWISE was no faster and failed
    check_metrics with a step-20 token_mult_prob_error spike.
  - qwen3-30b-a3b-32k: FULL_AND_PIECEWISE was 3% faster but added a
    token_mult_prob_error spike.
  - qwen3.5 -fp8 child: FULL graphs left fewer Mamba cache blocks than
    max_num_seqs, so vLLM failed at startup.
- FULL_AND_PIECEWISE with compilation_config.backend: eager: gspo-deepscaler-
  1.5b-8K. Inductor kernels failed its gen_kl_error gate; backend eager
  matches the grpo-deepscaler recipes.

Child recipes:
- gspo -tq_simple and omni clevr -tq_mooncake inherit their parent's change
  and were A/B tested themselves.
- The two GB200 qwen3.5 trtllm children and omni mmpr megatron-tp8ep16 already
  ran graphs. Their now-redundant enforce_eager: false is dropped, and
  mmpr-tp8ep16 pins fuse_allreduce_rms: true (the H100 default). Their
  effective vLLM config is unchanged.

NUM_MINUTES is lowered to about 1.5-2x the measured wall time, along with
checkpoint_must_save_by where the recipe sets it. The nightly GPU-hour total
goes from 4789 to 4529.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jonas Yang <[email protected]>
@fujial-code
fujial-code force-pushed the joyang/rollout-perf-cuda-graphs branch from 39ba4ff to bb11e55 Compare October 19, 2026 03:36
@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test bb11e55

@fujial-code

Copy link
Copy Markdown
Contributor

/ok to test 31399f7

@fujial-code fujial-code changed the title perf(tests): enable vLLM CUDA graphs in nine eager nightly recipes perf(tests): enable vLLM CUDA graphs in eight eager nightly recipes Oct 19, 2026
@yuki-97 yuki-97 added the cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main label Oct 19, 2026
@yuki-97
yuki-97 merged commit c1f6bc4 into r0.8.0 Oct 19, 2026
101 checks passed
@yuki-97
yuki-97 deleted the joyang/rollout-perf-cuda-graphs branch October 19, 2026 09:48
yuki-97 pushed a commit that referenced this pull request Oct 20, 2026
…) (#4787)

Signed-off-by: Jonas Yang <[email protected]>
Signed-off-by: fujial <[email protected]>
Co-authored-by: Jonas Yang CN <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
@terrykong terrykong mentioned this pull request Nov 21, 2026
1 task done
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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants