Repository navigation
Conversation
1c8e71a to
2af9f47
Compare
Highlights1. Rebased onto current main; the retirement set is 39 recipes. The 39 entries move to 2. Re-derived all six GPU-hour ceilings from the rebased tree.
Every usage figure comes from 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 Others
|
|
/ok to test 937726d |
There was a problem hiding this comment.
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/launchper 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 equalsceil((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), andTEST_DRYRUN=1passes for all 302 drivers. - The inlined
grpo-llama3.2-1b-instruct-1n8g-fsdp2tp2-temp0.8-topp0.9-topk50.yamlexpands byte-identically to its base-tree config, andconfigs-minimize-checkpasses on every recipe. Thetools/launchGPUS_PER_NODEreset sits beforeeval "$config"and the default/export, and every GB200 script declares 4, so no lane is mis-billed. - Sole-coverage claims hold:
top_p: 0.9only in the sampling-parity pair,dp_replicate_sizeonly in the HSDP recipe. No doc, README, skill or example points at a retired recipe, and the new bisect example'sSED_CLAUSESmatchsft-llama3.1-8b-1n8g-fsdp2tp2.shexactly.
Lower-priority notes that are not inline
- The
test_response_dataset.py:498edit ("nightly recipe" → "recipe") is unneeded: the intent recipe still runs innightly. 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 todisabled.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 theL0_Unit_Tests_Otherlog.
Generated by Claude Code
| # 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. |
There was a problem hiding this comment.
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.shnightly_mcore_gb200.txt: the4n4gtwins
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.
| # 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.
There was a problem hiding this comment.
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?
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]>
… note Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
…oc edit Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
…ghtlies Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
e95aad2 to
ec37252
Compare
|
/ok to test ec37252 |
Signed-off-by: Yuki Huang <[email protected]>
|
/ok to test 3185e1a |
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
disabled.txtEach 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.txtcosts no compute —generate_rl_dynamic.shrejects any suite name not starting withnightly/release/performance, so nothing schedules it. Entries remain covered bytest_shipped_configandtest_all_tests_can_find_config_if_dryrun. They are grouped by retirement reason so the grouping can convert to a structuredDISABLED_REASONin PR 3.Kept running — feature coverage
To be re-homed onto Qwen2.5-Math-1.5B-Instruct in a follow-up:
top_p=0.9/top_k=50sft-llama3.2-1b-2n8g-hsdp— HSDP replication coverage viadp_replicate_sizegrpo-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 DPOsft-qwen2.5-math7b-2n{8,4}g-megatron— multi-node Megatron SFT combining TP, CP and SPPermanent: 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_generationhands its gate coverage to the nanov3megatron_generationlegs already innightly_mcore(-noncolocated-async-gym-quickand-colocated-reshard-async-gym-quick), so the bump gate keepsmegatron_generationat no additional compute.Budgets
The single
nightly <= 5213 GPU-hoursassertion 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. Thenightly_mcorelanes 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-quicklegs 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_NODEleaked between scripts intools/launch. It is exported but was not reset per iteration, unlikeSEGMENT_SIZEandJOB_REAPER_COMMENTdirectly 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.nightlynightly_gb200releaserelease_gb200performanceperformance_gb200headroomis the actual capacity left; the parenthesized room is the design allowance before rounding. The scheduled total excludes bump-triggerednightly_mcoreruns.nightly_mcorenightly_mcore_gb200performanceandperformance_gb200keep all 43 recipes unchanged; this PR only adds their budget assertions.Before your PR is "Ready for review"
Pre checks:
docs/testing.md,docs/design-docs/generation.mdandtests/test_suites/README.md.