Repository navigation
docs(automodel): rename the DTensor backend to Automodel - #4277
Conversation
bb21350 to
9e7f459
Compare
|
/ok to test 9e7f459 |
yuki-97
left a comment
There was a problem hiding this comment.
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) matchesAutomodelConfigand thepp_size = 1pin for non-Megatron paths inlm_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.pyandtest_config_validation.pymoves 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-228should keep #4701's filenames plus this PR'sAutomodelBackend column (this PR's rows still cite the four oldfsdp2*filenames).tests/unit/test_config_validation.py:311-317should take #4703's wording plus this PR's new URL.
Generated by Claude Code
| project: "ppo-dapo-dtensor-dev" | ||
| name: "ppo_dapo_dtensor_1B" | ||
| project: "ppo-dapo-automodel-dev" | ||
| name: "ppo_dapo_automodel_1B" |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Intended to change -- updated the PR description to say so.
terrykong
left a comment
There was a problem hiding this comment.
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
- CI hasn't run on head 6139de3. The last
/ok to testwas on 9e7f459 (sphinx-build and Docs_Tests passed). Since then 7 prose lines changed, one intests/unit/test_config_validation.py#L312. Please run/ok to test 6139de320ddf6c9d2ab5780926c3940f6ac674ac. - This PR conflicts with #4701 in the recipe table of
docs/guides/lora.md: #4701 renames the file links, this PR renames the Backend column.README.mdanddocs/guides/models/gemma/gemma4.mdoverlap too. Keep both sides when rebasing.
Leftovers outside this PR's files, for the planned follow-up on main (no action here)
nemo_rl/telemetry/setup.py#L206: "(megatron vs dtensor)"nemo_rl/distributed/batched_data_dict.py#L869: "FSDP2 and megatron policies"dapo-nanov3.5-30BA3B-4n8g-automodel.yaml#L2: "automodel (DTensor v2) backend"
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
6139de3 to
25711dd
Compare
…nd messages Signed-off-by: Yuki Huang <[email protected]>
…nce configs Signed-off-by: Yuki Huang <[email protected]>
…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]>
25711dd to
2a85514
Compare
…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]>
…eir published URLs Signed-off-by: Yuki Huang <[email protected]>
|
/ok to test baddad4 |
…o Automodel (#4790) Signed-off-by: Yuki Huang <[email protected]>
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/. Proseand two doc-page renames; the one runtime-visible change is
examples/configs/ppo_math_1B.yaml'sW&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.mdandskills/sayAutomodel wherever the backend is the subject, as do the
# remove default FSDP optimizercommentsin the example and reference configs and the comments, docstrings and
raisemessages undernemo_rl/. DTensor and FSDP2 stay where the mechanism is the subject: sharding behaviour,isinstance(x, DTensor),FSDP2Config, andconvert.py's "DTensor v1 layout", which names a realhistorical checkpoint format.
2. Rename two doc pages and the asset directory.
docs/guides/dtensor-tp-accuracy.md->automodel-tp-accuracy.mdwithdocs/assets/dtensor-tp-accuracy/, anddocs/design-docs/fsdp2-parallel-plan.md->automodel-parallel-plan.md, whose Fallback Prioritysection is rewritten: it described three tiers from the deleted
parallelize.py, where Automodelactually has four, and the order holds only for dense models at
tensor_parallel_size > 1. The oldpublished URLs keep working --
docs/conf.pyalready shipssphinx_reredirectswithguides/evalas the existing entry, so both renames get a redirect there. The TP-accuracy URL is also hardcoded
outside
docs/innemo_rl/models/policy/lm_policy.py(a runtime error message the user reads) andtests/unit/test_config_validation.py; both move with the page.3. Correct what the docs claim about Automodel.
README.mdanddocs/about/backends.mdclaimedPP and omitted EP:
AutomodelConfighas nopipeline_model_parallel_size, andlm_policy.py:149pins
pp_size = 1for every non-Megatron path -- only the Megatron branch at:253overwrites it.Now
TP, SP, CP, EP, and FSDP2.docs/design-docs/training-backends.mdalso called Automodel"PyTorch's" training library; it is NVIDIA's, and that bullet now reuses the
backends.mdwording.🤖 Generated with Claude Code