Skip to content

docs(automodel): finish the backend rename on main - #4815

Merged
terrykong merged 2 commits into
mainfrom
yukih/rename-automodel-main-leftovers
Oct 20, 2026
Merged

terrykong merged 2 commits into
mainfrom
yukih/rename-automodel-main-leftovers

Conversation

@yuki-97

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

Copy link
Copy Markdown
Contributor

Final sweep of the DTensor -> Automodel rename series (#4282, #4283, #4701, #4703, #4277).
Those PRs targeted r0.8.0 and deliberately left anything that exists only on main.

What does this PR do ?

Cleans up the remaining DTensor/FSDP2 backend mentions on main, including the ones that exist only there.

Closes #4535.

Verification

Re-ran each of the five PRs' own checks against main: worker class and module names, the
rl.backend tag and Timer labels; dtensor_cfg readers, DTensorConfig, dtensor_enabled;
recipe and driver filenames and every reference to them; test names, shard labels and
tests/unit/models/dtensor/; and a repo-wide backend-sense sweep. Nothing else remains.

🤖 Generated with Claude Code

@copy-pr-bot

copy-pr-bot Bot commented Oct 20, 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 Oct 20, 2026
@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 20, 2026
@yuki-97

yuki-97 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 96141da

@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, run directly without spawning the agent team: the diff is comments, docs and one test name, with no runtime path touched. No devil's-advocate pass.

Verdict — no findings. LGTM, no action needed.

Verified clean

  • The dtensor_cfg: → automodel_cfg: change in docs/guides/sft.md matches the code: lm_policy.py reads policy.automodel_cfg.enabled, and dtensor_cfg only survives in the migration errors (outdated_config_checks.py, lm_policy.py, lm_value.py).
  • The reworded comments and messages agree with the code they sit on: the xtoken backend gate asserts automodel_cfg.enabled for the student and every teacher, AutomodelPolicyWorker overrides both _get_replica_group and _local_coords from worker_mixin.py, and initialize_refit_metadata rejects non-Megatron policies.
  • A repo-wide sweep of origin/main for DTensor/FSDP2 in the backend sense finds nothing left. The remaining hits name tensor types or mechanisms (isinstance(..., DTensor), xferdtensor, FSDP2Config, the "DTensor v1" checkpoint-layout error, the docs/conf.py redirects), which are correct to keep.
  • The renamed test test_refit_memory_release_rejects_automodel_policy has no stale references in its body, and no other test name or file path still carries the old backend name.

Generated by Claude Code

@yuki-97
yuki-97 marked this pull request as ready for review October 20, 2026 14:52
@yuki-97

yuki-97 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 0086399

@yuki-97
yuki-97 requested a review from terrykong October 20, 2026 14:53
@terrykong
terrykong enabled auto-merge (squash) October 20, 2026 17:54
@terrykong
terrykong merged commit cc0dead into main Oct 20, 2026
99 checks passed
@terrykong
terrykong deleted the yukih/rename-automodel-main-leftovers branch October 20, 2026 21:46
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) Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename the remaining DTensor-named tests and wording to Automodel

2 participants