Skip to content

test: add per-suite weekly GPU-hour budgets and disable 39 P1 recipes - #3557

Open
terrykong wants to merge 12 commits into
mainfrom
test-suite-prune-p1
Open

terrykong wants to merge 12 commits into
mainfrom
test-suite-prune-p1

Conversation

@terrykong

@terrykong terrykong commented Aug 9, 2026 •

Copy link
Copy Markdown
Collaborator

What does this PR do ?

Retires the P1-marked recipes from the test-suite inventory and replaces the single nightly GPU-hour assertion with a per-(suite, SKU) weekly budget.

Nothing is deleted. Every retired recipe stays in the tree and simply stops running, so a config remains discoverable for every model. Recipe and driver files remain in place and can still be run manually.

Stack position: Root of the dependent series: #3558 (model-family directories), #3559 (hero-run README pointers), #3560 (suite declarations and tools/list-suites), #3561 (recipe naming), and #3562 (testing skill).

Disposition of the original 56 P1 recipes

count runs?
Retired to disabled.txt 39 no
Kept running — feature coverage or bump-gate integrity 11 (+1 re-homed upstream) yes
Kept running — worked example in a published guide 5 yes

Each P1 was checked for value riding along with the model. The inventory was built from a product view, so a model's tests often carry coverage, documentation, or support evidence that has nothing to do with the model itself.

disabled.txt costs no compute — generate_rl_dynamic.sh rejects any suite name not starting with nightly/release/performance, so nothing schedules it. Entries remain covered by test_shipped_config and test_all_tests_can_find_config_if_dryrun. They are grouped by retirement reason so the grouping can convert to a structured DISABLED_REASON in PR 3.

Kept running — feature coverage

To be re-homed onto Qwen2.5-Math-1.5B-Instruct in a follow-up:

  • the Automodel/Megatron sampling-parity pair with top_p=0.9/top_k=50
  • sft-llama3.2-1b-2n8g-hsdp — HSDP replication coverage via dp_replicate_size
  • grpo-llama3.2-1b-instruct-1n{8,4}g-megatron — plain Megatron convergence coverage in the gate guarding Megatron-LM and Megatron-Bridge bumps
  • {sft,dpo}-qwen2.5-math7b-1n8g-megatron_fused_linear_logprobs — chunked fused-linear logprobs coverage for SFT and DPO
  • sft-qwen2.5-math7b-2n{8,4}g-megatron — multi-node Megatron SFT combining TP, CP and SP

Permanent: both xtoken distillation recipes. Cross-tokenizer KD needs teacher and student from different tokenizer families, so the Llama student is intrinsic to what they test.

megatron_generation × non-colocated was on this list too. It has since been re-homed upstream: #3570 renamed it onto Qwen2.5-Math-1.5B-Instruct, and #3730 renamed that again while adding the colocated sibling — so the follow-up this PR was planning is already done.

Kept running — documentation

The five recipes that back user guides: the DAPO and Muon guides (plus the DAPO GB200 mirror, which no guide references but tracks its H100 twin), the audio and audio-visual guides, and a README news entry. They stop running once a recipe can exist without a driver.

Merged rather than retired

grpo-llama3.2-1b-instruct-1n8g-megatron_generation hands its gate coverage to the nanov3 megatron_generation legs already in nightly_mcore (-noncolocated-async-gym-quick and -colocated-reshard-async-gym-quick), so the bump gate keeps megatron_generation at no additional compute.

Budgets

The single nightly <= 5213 GPU-hours assertion becomes a per-(suite, SKU) weekly budget. Cost is GPU-hours per run × runs per week: nightly runs seven times a week; release and performance run once. H100 and GB200 have separate budgets because they are separate capacity pools. The nightly_mcore lanes run on Megatron-Core/Bridge bumps, not a weekly schedule, so they have no weekly ceiling. All their entries also run in nightly except two -quick legs per SKU.

A ceiling is current weekly usage plus suggested_room, rounded up to the next 100: 32 GPU-hours × 7 runs for nightly and 128 GPU-hours for weekly lanes, halved on GB200. When a new or updated test exceeds the ceiling, the assertion prints the re-baselined ceiling to set. Room is absolute rather than a percentage.

Drive-by fix

GPUS_PER_NODE leaked between scripts in tools/launch. It is exported but was not reset per iteration, unlike SEGMENT_SIZE and JOB_REAPER_COMMENT directly above — so once a 4-GPU script was processed, every later script omitting the key was billed at 4 GPUs per node.

Net effect

Measured against main at 681ca04 using DRYRUN=1 tools/launch, with the same corrected accounting on both trees. Upstream additions keep their existing lanes; the retirement set remains 39.

lane GPU-h/week before after ceiling headroom
nightly 36,477 32,970 33,200 230 (room 224)
nightly_gb200 8,603 7,875 8,000 125 (room 112)
release 11,290 8,954 9,100 146 (room 128)
release_gb200 3,820 3,208 3,300 92 (room 64)
performance 11,936 11,936 12,100 164 (room 128)
performance_gb200 6,626 6,626 6,700 74 (room 64)
scheduled total 78,752 71,569 −7,183 (−9.1%)

headroom is the actual capacity left; the parenthesized room is the design allowance before rounding. The scheduled total excludes bump-triggered nightly_mcore runs.

bump lane GPU-h/run before after
nightly_mcore 559 526
nightly_mcore_gb200 154 134

performance and performance_gb200 keep all 43 recipes unchanged; this PR only adds their budget assertions.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests?
  • Did you run the unit tests and functional tests locally? — No pytest or GPU tests were run on this host. Static script/recipe accounting, lane disjointness and nightly GPU counts pass (325 scripts and matching recipes). All eight lane accounting dry runs and all three ruff checks pass on the tracked source tree. Execution of the pytest suite remains for CI.
  • Did you add or update any necessary documentation? — refreshed the retired-recipe references in docs/testing.md, docs/design-docs/generation.md and tests/test_suites/README.md.

@terrykong
terrykong requested review from a team as code owners August 9, 2026 21:14
@copy-pr-bot

copy-pr-bot Bot commented Aug 9, 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 Aug 9, 2026
@terrykong terrykong changed the title test: retire P1 recipes and budget every suite by weekly GPU-hours test: add per-suite weekly GPU-hour budgets and disable 43 P1 recipes Aug 10, 2026
Comment thread tests/test_suites/nightly_gb200.txt Resolved
@yuki-97

yuki-97 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Highlights

1. Rebased onto current main; the retirement set is 39 recipes. The 39 entries move to disabled.txt; their recipes and drivers remain in place. Upstream additions keep their existing lanes. The four fused-linear SFT/DPO and multi-node Megatron SFT recipes restored during the previous revision remain enabled.

2. Re-derived all six GPU-hour ceilings from the rebased tree.

lane GPU-h/week previous ceiling new ceiling
nightly 32,970 29,800 33,200
nightly_gb200 7,875 6,300 8,000
release 8,954 9,600 9,100
release_gb200 3,208 2,800 3,300
performance 11,936 12,100 12,100
performance_gb200 6,626 6,700 6,700

Every usage figure comes from DRYRUN=1 tools/launch on the rebased tree. Three lanes exceed their previous ceilings; the H100 release ceiling decreases with its new usage, and both performance ceilings stay unchanged.

3. Exceeding a budget prompts re-baselining. The ceiling is current weekly usage plus fixed room, rounded up to the next 100: 32 GPU-hours × 7 runs for nightly, 128 GPU-hours for weekly lanes, halved on GB200. The assertion prints the ceiling to set. The PR description now uses these measurements and reports bump-triggered nightly_mcore costs separately from the scheduled weekly total.

Others

  • Rebased onto main at 681ca04. Renamed Automodel paths and current upstream recipe/driver contents are preserved; upstream test removals stay removed.
  • docs/design-docs/generation.md points its complete example at grpo-nanov3-30BA3B-2n8g-megatron_generation-noncolocated-async-gym.yaml, which remains in nightly.

@yuki-97 yuki-97 added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Oct 1, 2026
@yuki-97

yuki-97 commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

/ok to test 937726d

@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.

Self-review via /review-pr-team: 5 agents (rl-expert, bug-finder, test-agent, design-reviewer, devil-advocate) + devil's-advocate pass.

Verdict — 5 inline comments, all about accuracy: the nightly_mcore "subset" premise behind leaving those lanes unbudgeted, three disabled.txt group headers whose reasons do not match their entries (these become DISABLED_REASON in #3560), one orphaned nightly.txt header, and PR-description counts. None of them blocks; the budget mechanics are correct.

Verified clean

  • Budget numbers: two agents independently ran DRYRUN=1 tools/launch per lane at base and head. Every cell of the Net-effect table reproduces, every lane is under its ceiling (tightest: performance_gb200, 74 GPU-h of headroom), and each ceiling equals ceil((per_week + suggested_room) / 100) * 100, the formula the failure message prints.
  • Manifest accounting: exactly 43 drivers leave the running lanes and exactly 43 entries are added to disabled.txt. The no-overlap, scripts-accounted-for, recipes-accounted-for and GPUs-per-node invariants all pass when replicated statically (302 listed = 302 discovered), and TEST_DRYRUN=1 passes for all 302 drivers.
  • The inlined grpo-llama3.2-1b-instruct-1n8g-fsdp2tp2-temp0.8-topp0.9-topk50.yaml expands byte-identically to its base-tree config, and configs-minimize-check passes on every recipe. The tools/launch GPUS_PER_NODE reset sits before eval "$config" and the default/export, and every GB200 script declares 4, so no lane is mis-billed.
  • Sole-coverage claims hold: top_p: 0.9 only in the sampling-parity pair, dp_replicate_size only in the HSDP recipe. No doc, README, skill or example points at a retired recipe, and the new bisect example's SED_CLAUSES match sft-llama3.1-8b-1n8g-fsdp2tp2.sh exactly.

Lower-priority notes that are not inline

  • The test_response_dataset.py:498 edit ("nightly recipe" → "recipe") is unneeded: the intent recipe still runs in nightly. Reverting it drops one file from the diff.
  • The inlined topk50 yaml is left over from the delete-based design: the parent was restored in 07d25f044, and the Megatron twin still inherits. Reverting it would shrink the diff and keep the pair symmetric. The resolved config is the same either way. Not planned — reverting would leave a running recipe inheriting from a parent this PR moves to disabled.txt, so the flatten stays.
  • The L0 budget tests have not run on this head yet; check the six test_suite_weekly_gpu_hours_within_budget[...] cases in the L0_Unit_Tests_Other log.

Generated by Claude Code

Comment on lines +80 to +82
# The nightly_mcore lanes are deliberately absent. They are subsets of the
# nightly lanes, so bounding nightly bounds them transitively; giving them their
# own ceiling would mean two numbers to retune every time a nightly test lands.

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.

tests/unit/test_recipes_and_test_suites.py:80-82

2 action items. PR-introduced (the comment and the PR description; the four legs themselves predate this PR).

AI-1

"Subsets of the nightly lanes" is not true. comm against the nightly manifests leaves four legs that run only in the mcore lanes:

  • nightly_mcore.txt: grpo-nanov3-30BA3B-2n8g-megatron_generation-{noncolocated,colocated-reshard}-async-gym-quick.sh
  • nightly_mcore_gb200.txt: the 4n4g twins

Each costs 26 GPU-h per run (DRYRUN=1 tools/launch), so 52 of nightly_mcore_gb200's 126 GPU-h per run (~41%) is not bounded by nightly_gb200. disabled.txt:80-82 already gives the real reason these lanes need no weekly ceiling: they are bump-validation lanes, not a recurring suite.

Suggested change
# The nightly_mcore lanes are deliberately absent. They are subsets of the
# nightly lanes, so bounding nightly bounds them transitively; giving them their
# own ceiling would mean two numbers to retune every time a nightly test lands.
# The nightly_mcore lanes are deliberately absent: they run when a Megatron-Core
# or Megatron-Bridge bump triggers them, not on a weekly schedule. Apart from the
# megatron_generation -quick smoke legs, every entry also runs in a nightly lane.

AI-2

The PR description's Net-effect table bills nightly_mcore (3,619) and nightly_mcore_gb200 (882) at 7 runs/week, and counts them in the weekly total. That contradicts the cadence above. Show them per bump run (517 / 126) and leave them out of the weekly total, or drop the two rows.

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.

fixed in b65e6b7, but @terrykong wdyt of the 4 -quick that only in nightly_mcore.txt, but not in nightly.txt? do you think we need to change something?

Comment thread tests/test_suites/disabled.txt Resolved
Comment thread tests/test_suites/disabled.txt Resolved
Comment thread tests/test_suites/nightly.txt Resolved
terrykong and others added 11 commits November 4, 2026 05:56
PR 1 of 5 in the test-suite overhaul. Nothing below it; PR 2 (recipe
directory restructure) sits above and depends on this landing first so it
moves 34 fewer files.

Of the 56 recipes marked P1 in the test-suite inventory: 34 deleted, 9 kept
but disabled, 13 still running. Each P1 was checked for value riding along
with the model, since the inventory was built from a product view and a
model's tests often carry things that have nothing to do with the model.

Kept and still running because they are the only instance of some coverage,
to be re-homed onto Qwen2.5-Math-1.5B-Instruct in a follow-up:
  - the DTensor/Megatron sampling-parity pair: the only recipes setting
    top_p=0.9 / top_k=50, and they only mean anything as a pair
  - sft-llama3.2-1b-2n8g-hsdp: the only recipe setting dp_replicate_size
  - grpo-llama3.2-1b-instruct-2n8g-megatron_generation-noncolocated: the
    only megatron_generation x non-colocated combination
  - grpo-llama3.2-1b-instruct-1n{8,4}g-megatron: the only plain Megatron
    convergence test in the gate guarding Megatron-LM and Megatron-Bridge
    bumps. No equivalent exists on a small Qwen yet, so it stays until one
    does.
Both xtoken distillation recipes stay permanently: cross-tokenizer KD needs
a teacher and student from different tokenizer families, so the Llama
student is intrinsic to what they test.

Kept and still running until a recipe can exist without a driver: the five
recipes that are the worked examples in docs/guides/{dapo,muon-optimizer,
grpo-audio,grpo-audio-visual}.md and the README model table. Deleting them
would orphan published guides. They cost ~1,300 GPU-hours/week.

Kept but disabled: nine models had every one of their recipes marked P1, so
deleting them all would leave no config for the model anywhere -- and for
Qwen2.5-32B, GPT-OSS and DeepSeek-R1-Distill the docs still describe support
we could no longer demonstrate. One representative recipe per model now sits
in disabled.txt: MiniMax-M2.7, Qwen2.5-32B, DeepSeek-R1-Distill-Qwen-7B,
Gemma3-27B, Llama-3.1-70B, Mistral-Medium-3.5, Mistral-Nemo, Nano-12B-v2 and
GPT-OSS-20B. Nothing schedules disabled.txt, so they cost no compute, but
they stay schema-validated and path-checked and so cannot rot.

grpo-llama3.2-1b-instruct-1n8g-megatron_generation is retired and its gate
coverage moves to grpo-nanov3-30BA3B-2n8g-megatron_generation, which already
runs nightly, so the bump gate keeps megatron_generation at no extra cost.

Still to re-home in a follow-up: SFT chunked-linear-CE, and multi-node
Megatron SFT (TP4+CP2+SP).

Budgets: the single "nightly <= 3800 GPU-hours" assertion is replaced by a
per-(suite, SKU) weekly budget. Cost is now GPU-hours per run times runs per
week, because the lanes run at different cadences and per-run numbers are not
comparable across them. Budgets are per SKU since H100 and GB200 capacity are
separate pools. Ceilings sit ~15% above current usage; the previous 3800 left
1.2% headroom, which is why a valid new test was parked in disabled.txt
rather than landing. On failure the assertion prints the lane's most
expensive tests so the author can see what to trade.

Also fixes GPUS_PER_NODE leaking between scripts in tools/launch. It is
exported but was not reset per iteration, so once a 4-GPU GB200 script was
processed every later script omitting the key was billed at 4 GPUs per node.

Net effect, weekly GPU-hours:
  nightly              26565 -> 22974 (86% of new budget)
  nightly_gb200         3003 ->  2247 (86%)
  nightly_mcore         3430 ->  3255 (85%)
  nightly_mcore_gb200    476 ->   308 (77%)
  release               8730 ->  6394 (86%)
  release_gb200         3308 ->  2696 (86%)
  total                45512 -> 37874  (-7638, -17%)

performance and performance_gb200 are unchanged; their 39 recipes are
hand-tuned for peak throughput and are left for their owner to rule on. They
gain a budget assertion but no edits.

Signed-off-by: Terry Kong <[email protected]>
Restores the 34 recipes the previous commit deleted and moves them to
disabled.txt alongside the 9 already parked there. Nothing is removed from the
tree now; the retired recipes simply stop running.

The earlier split -- delete the redundant ones, disable only those that were
the last config for their model -- optimised for a small tree. Keeping
everything visible is worth more: a config in disabled.txt is discoverable by
someone browsing the repo or asking whether a model is supported, whereas one
in git history is only findable if you already know it existed.

Compute is unchanged either way. Nothing schedules disabled.txt --
generate_rl_dynamic.sh rejects any suite name that does not start with
nightly, release or performance -- so these cost nothing, while remaining
schema-validated by test_all_config_files_have_required_keys and path-checked
by test_all_tests_can_find_config_if_dryrun.

disabled.txt now holds 45 entries, grouped by why each was retired (GB200
mirrors of a retired H100 recipe, transfer-queue wrappers whose backends keep
other providers, models retired by the inventory, and recipes superseded by a
survivor) so the grouping can convert to a structured DISABLED_REASON when the
manifests are retired.

Also restores the two grpo-gemma3-27b-it skip entries in
test_all_config_no_tp_size_accuracy_issues. That test globs configs from disk
rather than from the suite lists, so bringing the configs back without their
exemptions would have failed it.

No change to the GPU-hour budgets or to any lane's contents.

Signed-off-by: Terry Kong <[email protected]>
Three review fixes.

The nightly_mcore lanes no longer get their own ceiling. They are subsets of
the nightly lanes, so bounding nightly bounds them transitively, and a separate
number would have to be retuned every time a nightly test lands or leaves.

Removes notes.txt, which was an untracked scratch file swept in by a broad
`git add`. It was never meant to be part of this change.

Drops the internal path from the nemo-ci reference in the budget comment. The
schedule names are what a reader needs; the repository path is not.

Signed-off-by: Terry Kong <[email protected]>
@yuki-97
yuki-97 force-pushed the test-suite-prune-p1 branch from e95aad2 to ec37252 Compare November 4, 2026 15:35
@yuki-97

yuki-97 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

/ok to test ec37252

@yuki-97 yuki-97 changed the title test: add per-suite weekly GPU-hour budgets and disable 43 P1 recipes test: add per-suite weekly GPU-hour budgets and disable 39 P1 recipes Nov 4, 2026
Comment thread tests/test_suites/disabled.txt Resolved
Comment thread tests/test_suites/disabled.txt Resolved
@yuki-97

yuki-97 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

/ok to test 3185e1a

@terrykong terrykong removed the Documentation Improvements or additions to documentation label Nov 28, 2026

This branch has not been deployed

No deployments
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.

2 participants