Skip to content

[ci] pin rl+hf tests to partial_dtensor - #4228

Merged
pianpwk merged 4 commits into
mainfrom
gh/pianpwk/81/head
Aug 19, 2026
Merged

pianpwk merged 4 commits into
mainfrom
gh/pianpwk/81/head

Conversation

@pianpwk

@pianpwk pianpwk commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

fixing CI, the specific RL test still needs HF weight loading fix

Stack from ghstack (oldest at bottom):

[ghstack-poisoned]
[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 19, 2026
@pianpwk
pianpwk changed the base branch from gh/pianpwk/81/base to main August 19, 2026 17:03
@pianpwk
pianpwk marked this pull request as ready for review August 19, 2026 17:04
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Aug 19, 2026
ghstack-source-id: 3ec8fc0

Pull Request resolved: #4228
@pianpwk pianpwk changed the title [ci] pin graph_trainer precompile, rl+hf tests to partial_dtensor [ci] pin rl+hf tests to partial_dtensor Aug 19, 2026
@pianpwk
pianpwk merged commit b64d3f6 into main Aug 19, 2026
9 checks passed
saforem2 added a commit to saforem2/torchtitan that referenced this pull request Aug 20, 2026
…ng removed upstream

Both config registries pinned spmd_backend="full_dtensor" since the 79th sync.
Two independent reasons that is wrong now:

1. Upstream is DELETING the backend. 601cf4d ("Remove the full_dtensor SPMD
   backend", pytorch#4217, 2026-08-19) drops full_dtensor.py entirely -- 167 lines
   already gone in upstream/main. The next sync removes the file our
   parallelize.py imports resolve_fsdp_mesh from. Pinning to it is a dead end
   with a known expiry.

2. The evidence for the original pin did not cover compiled runs. Its comment
   cites job 12473350 as "full_dtensor runs 4/4 steps", but that probe ran
   --compile.no-enable. Compiled agpt on full_dtensor hits the vc_check
   DeviceMesh assertion, which is how the user's agpt_20b run failed.

partial_dtensor is the supported fallback, is what upstream pins for its own
rl+hf CI suites (b64d3f6, pytorch#4228), and is the same code path that produced
every production trajectory before pytorch#4085 renamed "default" -> "partial_dtensor".

spmd_types stays unusable for now and the comment records why, with a pointer
to the writeup: it is an UPSTREAM gap, not ours -- core llama3 through core's
own trainer fails identically (12473444) while partial_dtensor passes in the
same job. resolve_fsdp_mesh already guards this shape, but only when the whole
storage mesh is size 1.

Verification of partial for the MoE configs is in flight; moe_10b_2b and
moe_small have both already passed 5/5 on it. One arm in that job (moe_small
on full_dtensor) reported a bogus ImportError -- I installed spmd_types 0.2.3
into the venv six seconds before it ran, so it read a half-swapped package.
That arm is void, not a result, and it is the reason not to pip-install while
jobs are live.
acisseJZhong pushed a commit that referenced this pull request Aug 21, 2026
fixing CI, the specific RL test still needs HF weight loading fix

Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.13.0)
(oldest at bottom):
* __->__ #4228

(cherry picked from commit b64d3f6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/rl CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants