Skip to content

perf(tests): cherry-pick CUDA graph recipe optimizations to main (#4569) - #4787

Merged
yuki-97 merged 3 commits into
mainfrom
fujial/cherry-pick-4569-main
Oct 20, 2026
Merged

yuki-97 merged 3 commits into
mainfrom
fujial/cherry-pick-4569-main

Conversation

@fujial-code

@fujial-code fujial-code commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Manually forward-port #4569 from r0.8.0 to main: enable vLLM CUDA graphs in the eight reviewed nightly recipes and retain their time-budget reductions. The source is release squash commit c1f6bc48a2d221ae07a79f5da94df7ded824a5ca. This branch includes main through 304415bc4b785a6217f72cb35c6c1bd4c7248171; the updated PR head is aa5e606bfe0be475479789cb42a95afce2a8fbb2.

The automatic cherry-pick failed on a content conflict in tests/unit/test_recipes_and_test_suites.py: main and release had different nightly-budget limits.

Conflict resolution and main-specific adaptation

  • Recomputed the latest main nightly allocation by dry-running all 146 scripts on both the main baseline and the updated PR: 5359 → 5163 GPU-hours (−196/night). Set the budget-test limit to 5183 = 5163 + 20, retaining the reviewed 20 GPU-hour headroom policy instead of copying a stale main or release limit. These are configured scheduler budgets, not measured runtime savings.
  • Removed the redundant enforce_eager: false override from the main-only grpo-qwen3.5-35ba3b-4n4g-megatron-ep16tp2-mxfp8-trtllm.yaml child after its parent stopped setting eager mode. Its fully resolved config was verified unchanged in the original forward-port, as was that of the existing async BF16 child.
  • All 19 recipe/config/driver files from the merged release change are byte-for-byte identical to that commit. The final diff is those 19 files, the main-only child cleanup, and the budget test. All 20 recipe/config/driver files remain unchanged from the previously validated PR head.
  • Nano 3.5 optimization remains excluded; its investigation stays in Track Nano 3.5 PIECEWISE logprob-error tail spikes in r0.8.0 validation #4777. No CI workflow/platform-selection changes or training-metric threshold changes are included.

Validation

For updated head aa5e606bfe0be475479789cb42a95afce2a8fbb2:

  • 15 existing CPU configuration/recipe-suite tests passed, including test_nightly_compute_stays_below_5183_hours and suite dry runs. One GPU/runtime-dependent test was deselected.
  • tools/config_cli.py minimize-check passed for all LLM/VLM recipe YAMLs.
  • Ruff checks, formatting, and git diff --check passed.
  • Updated-commit CI:Lfast is running: run 39394216098, triggered via /ok to test. Results are pending. This uses the existing H100 FAST=1 subset, not a full nightly training rerun.

The preceding run on a29fef55 (39370982637) failed in test_double_offload_onload_cycle[tp2_1worker]: SGLang/Triton reported an inaccessible pointer during a memory offload/onload cycle, followed by a server connection reset. All other test jobs passed; the aggregate CI quality check consequently failed. No SGLang implementation or test changes are included here. The new run will validate the synchronized commit.

Historical validation for previous head ee775d2552b8159921c1c70fa61a89ab9cab6fad:

  • CI run 39238065682 passed on attempt 1: 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, along with the required CI quality and DCO checks.
  • The previous budget test confirmed 4751 GPU-hours for the earlier 142-script nightly list. The Other unit-test job completed with 5698 passed, 376 skipped, and 2 deselected. Those figures describe the previous main snapshot, not the updated head.
  • Loaded all 12 changed recipe configs; compared the main-only MXFP8 and async BF16 children with the pre-change main configs and verified they were identical. Other config differences were confined to the reviewed graph/fusion settings and checkpoint deadlines.

Prior release CI and GPU recipe results in #4569 remain historical evidence for their named revisions. No GB200 training was launched for this forward-port.

Issues

Forward-port of merged #4569. Numerical investigation #4777 remains separate.

…4569)

Signed-off-by: Jonas Yang <[email protected]>
Signed-off-by: fujial <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: fujial <[email protected]>
(cherry picked from commit c1f6bc4)
Signed-off-by: fujial <[email protected]>
@fujial-code fujial-code added cherry-pick CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) labels Oct 19, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 19, 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 Author

/ok to test ee775d2

@fujial-code
fujial-code requested a review from yuki-97 October 20, 2026 04:34
@fujial-code

Copy link
Copy Markdown
Contributor Author

/ok to test a29fef5

@fujial-code

Copy link
Copy Markdown
Contributor Author

/ok to test aa5e606

@yuki-97
yuki-97 enabled auto-merge (squash) October 20, 2026 09:41
@yuki-97
yuki-97 merged commit 0d0e10f into main Oct 20, 2026
96 checks passed
@yuki-97
yuki-97 deleted the fujial/cherry-pick-4569-main branch October 20, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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