Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/204900
Note: Links to docs will display an error until the docs builds have been completed. ❌ 4 New Failures, 1 Unclassified FailureAs of commit f36741d with merge base bba8f39 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURE - DrCI could not classify the following job because the workflow did not run on the merge base. The failure may be pre-existing on trunk or introduced by this PR:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Nov 14, 2026
[FSDP2] Run fully_shard on the FlexShard engine runtime; delete FSDPParamGroup (AI-assisted)
#203764
Draft
Draft
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
spin fixlint)Linked issue or supporting maintainer
BC-breaking?
Summary (human written only)
Agent details (AI-generated)
A copy of #199232 and #199235 (the author's drafts
825ea582ac2and330bd32e9bf, written on main from Oct 6), rebased onto this stack and squashed into one commit, without their ghstack trailers. Main moved under two hunks of #199232, and its test linter asks one addition of the new test file; the rest applied as is:_dispatch.py: random ops now take their RNG offsets fromfirst_spec, the spec the local op runs on (the redistribute schema's first spec when the op redistributes its input, e.g.multinomial), rather than fromargs[0]._spec._lower_block_shard_specnow wrapsfirst_specat both call sites (_distribute_regionand_compute_rng_offsets). ABlockShardoperand's redistribute schema comes back from_propagate_block_shardmapped toBlockShard,ReplicateorPartial, and the lowering leaves specs withoutBlockShardunchanged, so random ops on other DTensors behave as on main._sharding_prop.py: [DTensor] Add BlockShard placement #199232 sends ops withBlockShardoperands to_propagate_block_shardwhere main had early returns foraten._local_scalar_denseandaten._assert_async.msg. Main's [DTensor] Reduce sharded any/all locally instead of all-gathering #204895 has since replaced those with replicate-only strategies, so theBlockSharddispatch is the only early return left there.anyon aBlockShardtensor (used bytrunc_normal_init) now stays local, as onShard.test_block_shard.pydeclareshw_classification = HardwareClassification.GENERICon its test classes, which main'sTEST_LINTERnow requires of new test files (the DTensor test bases fall back to CPU).Test Plan
On 4 GB300s, main bba8f39:
test_block_shard.py15 passed (the tests of both drafts),test_dtensor_checkpoint.py1 passed,test_state_dict_utils.py9 passed,test_planner.py23 passed, andtest_dtensor.py112 passed, 4 expected failures.spin lint -- --take RUFF,PYFMT,FLAKE8,PYREFLYis clean for the changed files, andTEST_LINTER,TESTOWNERS,TEST_HAS_MAINfor the test file.The two drafts' descriptions
[DTensor] Add BlockShard placement
This PR was authored with an AI assistant (Claude Code). The description below is AI-generated and is pending author review.
[DCP] Checkpoint BlockShard DTensors as multiple chunks per rank
This PR was authored with an AI assistant (Claude Code). The description below is AI-generated and is pending author review.