Skip to content

test(suites): rename the backend token in recipe filenames to automodel - #4701

Merged
terrykong merged 8 commits into
r0.8.0from
yukih/rename-recipe-filenames-to-automodel
Oct 14, 2026
Merged

terrykong merged 8 commits into
r0.8.0from
yukih/rename-recipe-filenames-to-automodel

Conversation

@yuki-97

@yuki-97 yuki-97 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Part of the DTensor v1 removal series -- overall status is tracked in the description of #4198.
The rename is split in three:

  1. test(suites): rename the backend token in recipe filenames to automodel #4701 (this PR) — recipe filenames: dtensor, fsdp2*, fsdp4ep4 / fsdp8ep8 → automodel*
  2. test(automodel): rename the dtensor-named tests and merge the two worker files #4703 — unit and functional tests: test names, shard labels, and the merge of test_dtensor_worker.py into test_automodel_worker.py
  3. docs(automodel): rename the DTensor backend to Automodel #4277 — docs, example and reference configs, and the comments and messages under nemo_rl/; merges last as the final sweep

Scoped to r0.8.0. Leftovers that exist only on main are not swept here, and the cherry-picks
will not sweep them either -- once all three have landed on main, a follow-up PR against main
cleans up everything that remains.

What does this PR do ?

Renames the backend token in every recipe and driver filename to automodel. 78 pairs renamed,
no recipe's settings change.

What changed

1. The backend token. dtensor, dtensor2tp1 and fsdp2* all named the one non-Megatron
backend:

before after
fsdp2tp1, dtensor2tp1, fsdp2, fsdp2-automodel automodel
fsdp2tp2, fsdp2tp8sp, dtensor-tp4cp2 … automodel-tp2, automodel-tp8sp, automodel-tp4cp2 …
fsdp4ep4, fsdp8ep8 automodel-ep4, automodel-ep8

Degrees that only restate a default are dropped (tp1 is never set; fsdp4/fsdp8 on 1n4g/1n8g
is full-shard). The rest were checked against each recipe's own tensor_parallel_size /
expert_parallel_size. Drivers need no edit -- common.env:50 derives CONFIG_PATH from
basename $0 .sh.

2. Everything that names them. Six suite lists, both naming-convention docs, the recipe lists in
test_config_validation.py and test_recipe_settings.py, README.md, three docs/ guides and two
tools/ scripts. tests/unit/test_recipes_and_test_suites.py already guards both directions of
driver ↔ recipe ↔ suite-list, and passes.

Deliberately not changed

  1. The 58 recipes with no backend token at all (43 under llm/performance/, the deepscaler family
    tests/test_suites/README.md already documents as an exception, and sft-llama3.2-1b-2n8g-hsdp).
    Adding a token is the opposite change from removing an obsolete one.
  2. FSDP2Config, use_torch_fsdp2, fsdp2-parallel-plan.md -- FSDP2 is the mechanism there.
  3. research/flow_grpo/'s -dp8 recipes.

W&B: 62 recipes change logger.wandb.name, so those runs start a new series.

🤖 Generated with Claude Code

@yuki-97 yuki-97 added 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) labels Oct 13, 2026
@yuki-97

yuki-97 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 04e6cfb

@copy-pr-bot

copy-pr-bot Bot commented Oct 13, 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 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 via /review-pr-team: 3 agents (rl-expert, bug-finder, test-agent) + devil's-advocate pass.

Verdict — no findings above the confidence bar. LGTM, no action needed.

Verified clean

  • All 11 suite lists keep identical membership and order under the old→new mapping; every driver still has a same-basename recipe, and every defaults: chain (301 recipes) resolves.
  • Across all 78 pairs the resolved settings differ only in name-derived keys (checkpoint_dir, log_dir, wandb.name, mlflow.run_name), so the "no recipe's settings change" claim holds.
  • A whole-tree grep (incl. .github/, tools/, docs/, research/) finds no remaining reference to any old recipe or driver name; the 20 -tq_* wrappers still resolve to a base driver.
  • The tp / ep tokens that were kept agree with the resolved automodel_cfg values.

Lower-priority notes that are not inline

  • docs/guides/lora.md:223-228 conflicts with #4277 (same six rows: this PR renames the files, #4277 renames the Backend column). Whoever merges second should keep the new filenames plus the Automodel column.

Generated by Claude Code

@yuki-97
yuki-97 marked this pull request as ready for review October 13, 2026 16:23
@yuki-97
yuki-97 requested a review from terrykong October 13, 2026 16:23

@terrykong terrykong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Merge blocker: please rebase onto r0.8.0. L0_Unit_Tests_Other is red on test_nightly_compute_stays_below_4769_hours (4773 GPU-hours; CI run). This PR didn't cause it: GPU-hours are the same at base and head. The merge base (#4697) raised the xtoken nightly limit from 30 to 60 min, and #4704 (fa1ae62, already on r0.8.0) raises the cap to 4790. After rebasing, re-run /ok to test <new full sha>.

Clean, careful rename. The 157 renamed files differ from base only in name strings, every defaults: parent resolves, the suite lists keep the same entries in the same order, no old name is left anywhere, and the cherry-pick onto main merges clean today. It also fixes a tools/config_cli.py example that pointed at a missing file.

3 inline comments:

Follow-up, not for this PR: nightly_mcore.txt, nightly_mcore_gb200.txt, nightly_mlm.txt and nightly_mlm_gb200.txt aren't read by any unit test, so a stale entry there would silently drop a job from those lanes. A small test that every entry exists would close that.

Generated by Claude Code

Comment thread tests/test_suites/README.md Resolved
@yuki-97
yuki-97 force-pushed the yukih/rename-recipe-filenames-to-automodel branch from 04e6cfb to 64b2e18 Compare October 14, 2026 14:53
@yuki-97

yuki-97 commented Oct 14, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 5f5a3f7

@terrykong
terrykong merged commit 2f1707c into r0.8.0 Oct 14, 2026
95 checks passed
@terrykong
terrykong deleted the yukih/rename-recipe-filenames-to-automodel branch October 14, 2026 17:55
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) Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants