Skip to content

docs(automodel): rename the DTensor backend to Automodel - #4277

Merged
terrykong merged 7 commits into
r0.8.0from
yukih/rename-to-automodel-docs
Oct 15, 2026
Merged

terrykong merged 7 commits into
r0.8.0from
yukih/rename-to-automodel-docs

Conversation

@yuki-97

@yuki-97 yuki-97 commented Sep 26, 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 — 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 (this PR) — docs, example and reference configs, and the comments and messages under nemo_rl/; merges last as the final sweep

Covers Part B of #4535.

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 training backend to Automodel in every user-facing string: docs, example and
reference configs, and the comments, docstrings and runtime messages under nemo_rl/.
Prose
and two doc-page renames; the one runtime-visible change is examples/configs/ppo_math_1B.yaml's
W&B, SwanLab and MLflow project/run names, renamed on purpose as #4701 does for the recipes.

What changed

1. Call the backend Automodel in prose. docs/, README.md, AGENTS.md and skills/ say
Automodel wherever the backend is the subject, as do the # remove default FSDP optimizer comments
in the example and reference configs and the comments, docstrings and raise messages under
nemo_rl/. DTensor and FSDP2 stay where the mechanism is the subject: sharding behaviour,
isinstance(x, DTensor), FSDP2Config, and convert.py's "DTensor v1 layout", which names a real
historical checkpoint format.

2. Rename two doc pages and the asset directory. docs/guides/dtensor-tp-accuracy.md ->
automodel-tp-accuracy.md with docs/assets/dtensor-tp-accuracy/, and
docs/design-docs/fsdp2-parallel-plan.md -> automodel-parallel-plan.md, whose Fallback Priority
section is rewritten: it described three tiers from the deleted parallelize.py, where Automodel
actually has four, and the order holds only for dense models at tensor_parallel_size > 1. The old
published URLs keep working -- docs/conf.py already ships sphinx_reredirects with guides/eval
as the existing entry, so both renames get a redirect there. The TP-accuracy URL is also hardcoded
outside docs/ in nemo_rl/models/policy/lm_policy.py (a runtime error message the user reads) and
tests/unit/test_config_validation.py; both move with the page.

3. Correct what the docs claim about Automodel. README.md and docs/about/backends.md claimed
PP and omitted EP: AutomodelConfig has no pipeline_model_parallel_size, and lm_policy.py:149
pins pp_size = 1 for every non-Megatron path -- only the Megatron branch at :253 overwrites it.
Now TP, SP, CP, EP, and FSDP2. docs/design-docs/training-backends.md also called Automodel
"PyTorch's" training library; it is NVIDIA's, and that bullet now reuses the backends.md wording.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Sep 26, 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 added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Sep 26, 2026
@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Sep 26, 2026
@yuki-97
yuki-97 changed the base branch from main to r0.8.0 October 13, 2026 14:26
@yuki-97
yuki-97 force-pushed the yukih/rename-to-automodel-docs branch 2 times, most recently from bb21350 to 9e7f459 Compare October 13, 2026 14:32
@yuki-97 yuki-97 added CI:docs Run doctest cherry-pick-to-main Opt in: cherry-pick this PR's commit from the release branch back into main and removed 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 9e7f459

@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, expert-automodel) + devil's-advocate pass.

Verdict — 7 inline comments: doubled word / article typos left by the mechanical replace (5), logger project/run names changed in ppo_math_1B.yaml (1), one missing condition in the new parallel-plan paragraph (1); none blocking.

Verified clean

  • The Fallback Priority section lists the four tiers, their order and names exactly as Automodel selects them at the pinned SHA.
  • The new parallelism list TP, SP, CP, EP, and FSDP2 (no PP) matches AutomodelConfig and the pp_size = 1 pin for non-Megatron paths in lm_policy.py.
  • The two doc-page renames and the asset directory leave no broken link, anchor or image path; the TP-accuracy URL in lm_policy.py and test_config_validation.py moves with the page.
  • The changes under nemo_rl/ are comments, docstrings and message text only (AST-compared against base), and the example and reference configs stay byte-mirrors.

Lower-priority notes that are not inline

  • Merge order: this PR needs a rebase after #4701 and #4703. docs/guides/lora.md:223-228 should keep #4701's filenames plus this PR's Automodel Backend column (this PR's rows still cite the four old fsdp2* filenames). tests/unit/test_config_validation.py:311-317 should take #4703's wording plus this PR's new URL.

Generated by Claude Code

Comment thread docs/about/algorithms/mopd.md Resolved
project: "ppo-dapo-dtensor-dev"
name: "ppo_dapo_dtensor_1B"
project: "ppo-dapo-automodel-dev"
name: "ppo_dapo_automodel_1B"

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.

examples/configs/ppo_math_1B.yaml:517

1 action item.

TL;DR — this hunk changes runtime values (the W&B, SwanLab and MLflow project/run names), although the PR body says "Prose only … no code behaviour change".

PR-introduced. Lines 516-526 rename ppo-dapo-dtensor-dev / ppo_dapo_dtensor_1B to ppo-dapo-automodel-dev / ppo_dapo_automodel_1B in three loggers, so anyone launching this config logs to a new series and the old dashboards stop receiving runs. Nothing keys on the old names (no test or script, and there is no mirror under tests/unit/reference_configs/).

Action: either revert the six values, or add one line to the PR body saying the logger project/run names are renamed on purpose (#4701's body already says this for recipe wandb.name).

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.

Intended to change -- updated the PR description to say so.

@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:24

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

Clean, careful sweep — thanks. All six "fixed in" self-review threads are fixed at head, and the logger rename is now explained in the PR description. Checked and fine: the 4-tier order and the tp_size > 1 raise match Automodel at 72daceff; "TP, SP, CP, EP, and FSDP2" matches NeMo RL (pp_size is pinned to 1); no test matches any changed message; the renamed pages, assets, toctree entries and anchors all resolve; example and reference configs stay in sync.

The 7 inline comments are all small wording or link fixes.

Before merge

Leftovers outside this PR's files, for the planned follow-up on main (no action here)

Upstream (Automodel, not this PR): the assert in get_hf_tp_shard_plan still says "dtensor_cfg.tensor_parallel_size" and "docs/design-docs/fsdp2-parallel-plan.md" (parallelizer.py#L1404-L1406). Worth a small Automodel issue or PR.

Generated by Claude Code

Comment thread docs/design-docs/training-backends.md Resolved
Comment thread docs/about/quick-start.md Resolved
Comment thread nemo_rl/models/policy/lm_policy.py Resolved
Comment thread docs/guides/yarn-long-context.md Resolved
Comment thread nemo_rl/utils/checkpoint.py Resolved
@yuki-97
yuki-97 force-pushed the yukih/rename-to-automodel-docs branch from 6139de3 to 25711dd Compare October 14, 2026 14:54
…P-accuracy and parallel-plan pages, correct the Automodel parallelism list

Signed-off-by: Yuki Huang <[email protected]>
…ition, rename one test docstring

Signed-off-by: Yuki Huang <[email protected]>
@yuki-97
yuki-97 force-pushed the yukih/rename-to-automodel-docs branch from 25711dd to 2a85514 Compare October 15, 2026 16:16
…ack scope, rename two runtime messages the docs describe

Signed-off-by: Yuki Huang <[email protected]>
…the train docstring and the CP quirks section

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

yuki-97 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test baddad4

@terrykong
terrykong merged commit 92b56f3 into r0.8.0 Oct 15, 2026
49 checks passed
@terrykong
terrykong deleted the yukih/rename-to-automodel-docs branch October 15, 2026 17:58
terrykong pushed a commit that referenced this pull request Oct 19, 2026
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:docs Run doctest Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants