Skip to content

ci: split the longest jobs to speed up L1 and Lfast - #4253

Merged
terrykong merged 4 commits into
mainfrom
yukih/split-ci
Sep 25, 2026
Merged

terrykong merged 4 commits into
mainfrom
yukih/split-ci

Conversation

@yuki-97

@yuki-97 yuki-97 commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Scope: L1 wall > 40 min in both reference runs, or Lfast wall > 30 min in both. Exactly five jobs qualify; all five are addressed.

Reference runs — L1: 35714138679 (A) / 35646798126 (B). Lfast: 35682197286 (C) / 35635727634 (D).

What changed

  1. L0_Unit_Tests_Megatron → 4 shards via pytest-shard.
  2. L1_Functional_Tests_SingleController → 3 shards (core smokes / fault tolerance / TQ recovery).
  3. L1_Functional_Tests_PPO → 2 shards (AutoModel / Megatron). Split for Lfast: all five of its tests are run_test fast, so Lfast pays the full cost and it is the 3rd longest lane there despite being mid-pack under L1.
  4. max_samples support for MMAUDataset and DailyOmniEvalDataset (+ dispatcher, both TypedDicts, both exemplar YAMLs), applied as audio_grpo_megatron 64/32, eval_audio 64, eval_daily_omni 256. audio_grpo_megatron was spending ~9 min downloading all of AVQA plus ~1.5 min building a 52k-example split for a run that does 8 rollouts; eval_daily_omni ran the full 1197-sample benchmark. AVQADataset already had the streaming branch; the two eval datasets did not.
  5. L1_Functional_Tests_Megatron_4 → L1_Functional_Tests_Megatron_Generation, grpo_megatron_nccl_reshard_refit → grpo_megatron_generation_nccl_reshard_refit. Naming only, not split — all nine tests are backend=megatron generation.

L1 wall (minutes, run (+pull))

Job A B after run (est.) after (measured)
L0_Unit_Tests_Megatron 69.8 (+12.8) 66.6 (+3.1) ~18.7 29.0 (+3.3)
L1_Functional_Tests_SingleController 66.0 (+0.0) 68.8 (+0.0) ~25.1 28.9 (+0.0)
gb200_L1_Functional_Tests_SingleController 54.8 (+0.0) 56.0 (+0.0) ~23.1 25.1 (+9.7)
L1_Functional_Tests_Eval 37.9 (+12.3) 33.1 (+0.0) ~18.3 17.3 (+12.4)
L1_Functional_Tests_Megatron_1 37.2 (+12.6) 33.5 (+0.0) ~26.7 27.9 (+12.1)
L1_Functional_Tests_PPO 33.8 (+12.5) 33.0 (+0.0) ~22.3 27.1 (+0.0)

after is the longest resulting shard. Measured from run 35965385352 (all green).

Lfast wall (minutes, run (+pull))

Job C D after run (est.) after run (derived)
L0_Unit_Tests_Megatron 53.2 (+0.0) 52.0 (+3.4) ~14.7 —
fast_L1_Functional_Tests_SingleController 51.8 (+0.0) 54.4 (+0.0) ~21.1 23.2
fast_L1_Functional_Tests_PPO 34.6 (+0.0) 37.4 (+0.0) ~22.5 26.1
fast_L1_Functional_Tests_Megatron_1 32.3 (+0.0) 35.0 (+3.3) ~21.8 14.9
fast_L1_Functional_Tests_Eval 32.2 (+0.0) 30.1 (+0.0) ~12.7 12.4

after run (derived) is not from an Lfast run — this PR is labelled CI:L1. It sums only the run_test fast entries of each shard in the measured L1 run (those are what FAST=1 executes) plus the ~0.65 min container start. L0_Unit_Tests_Megatron cannot be derived this way: its FAST mode is an --ignore list at the pytest invocation, not per-test flags. No pull column: Lfast reuses the rl:main image, and pull was 0.0 for nearly every job in runs C and D.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Sep 23, 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.

@yuki-97 yuki-97 changed the title ci: split the longest L1 and Lfast jobs, cap dataset samples in the audio tests ci: split the longest jobs to speed up L1 and Lfast Sep 23, 2026
@yuki-97 yuki-97 added the CI:L1 Run doctests, unit tests, and functional tests label Sep 23, 2026
@yuki-97

yuki-97 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 529f8ec

@yuki-97

yuki-97 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test cdece46

… cap samples in the audio functional tests

Signed-off-by: Yuki Huang <[email protected]>
@yuki-97

yuki-97 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 77e31cf

@yuki-97 yuki-97 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Self-review (agent team) — LGTM, no action needed.

4 agents (rl-expert, bug-finder, test-agent, devil-advocate) reviewed 77e31cf against the green L1 run 35965385352:

  • L0_Unit_Tests_Megatron_{1..4}: pytest-shard splits by node-id hash, so shards are disjoint and complete — 163/165/175/177 items, union covers every node id of the pre-split job.
  • L1_Functional_Tests_SingleController_{1..3} / PPO_{1,2}: every test from the old scripts lands in exactly one shard with the same fast flag; every shard still has ≥2 tests under FAST=1.
  • max_samples is wired on all three paths: MMAU 64 samples (score 0.7344), Daily-Omni 256 (0.5742 vs ≥0.4), AVQA 64/32.
  • No stale references to the renamed scripts; CI auto-discovers the new files via plan-tests.sh.

4 candidate findings were raised and all fell below threshold after devil's-advocate verification.

Generated by Claude Code

@yuki-97
yuki-97 marked this pull request as ready for review September 24, 2026 14:13
@yuki-97
yuki-97 requested a review from terrykong September 24, 2026 14:24
@terrykong
terrykong merged commit 4aaa48f into main Sep 25, 2026
206 of 211 checks passed
@terrykong
terrykong deleted the yukih/split-ci branch September 25, 2026 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L1 Run doctests, unit tests, and functional tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants