Repository navigation
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/197677
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (3 Unrelated Failures)As of commit 6408324 with merge base b7954b2 ( 🟢 GREEN LIGHT - PR approved to be merged without human review:
reason: NEW FAILURES SUPPRESSED BY AI (non-blocking) - The following job failed, but the AI CI Advisor judged the failure not to be evidence against this change:
CRCR (non-blocking) - The following CRCR downstream CI jobs failed but are non-blocking:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-py3-arm64 / test (default, 3, 3, macos-m1-stable) Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 1 checks: trunk / macos-py3-arm64 / test (default, 3, 3, macos-m1-stable) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Reuse the continuous FSDP fixture for five mixed precision training tests, preserving rank counts, scoped collective patches, and all test bodies. Leave single-test JVP and threaded cast fixtures unchanged. Test plan: CUDA build and lint pass; five four-GPU tests improve from 62.716s to 34.871s, reversed order 34.825s, postbuild 33.498s. Two GPUs pass in 12.796s; one and zero GPUs preserve five skips. Pull Request resolved: #197678 Approved by: https://github.com/pytorchgreenlight, https://github.com/Skylion007 ghstack dependencies: #197647, #197648, #197677
Mark the single-rank save/load tests as GENERIC and the multi-rank
consolidation and resharding tests as ACCELERATOR, and instantiate the latter
with instantiate_device_type_tests(except_for=("cpu",), allow_xpu=True) so any
registered accelerator collects them.
The resharding classes keep DTensorContinuousTestBase from pytorch#197677; its process
pool is spawned lazily to support device-type instantiation, as in
test_fsdp_dtensor_state_dict.py. Test bodies keep using self.device_type; the
`device` argument is only accepted to satisfy device-type instantiation.
TestCompressedTensorsMXFP4ShardedLoad (added in pytorch#201291) is left unchanged.
This replaces the earlier version of this PR, which targeted the file before
pytorch#197677.
Test Plan:
```bash
spin quicklint test/distributed/checkpoint/test_hf_safetensor_e2e.py
```
No runtime available locally: the file depends on DCP helpers newer than the
available NPU nightly, and there is no local CUDA build. Relying on CI.
Prepared with AI assistance and reviewed by the contributor.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_018dErhVMhZwJQXMUAkGfe9X
Stack from ghstack (oldest at bottom):
Reuse continuous DTensor workers across placement-change and mesh-change checkpoint tests. Preserve rank counts, temporary-directory cleanup, assertions, and the single-test consolidation fixture.
Test plan: CUDA build and lint pass; five four-GPU cases improve from 73.563s to 57.569s, reversed order 54.946s, postbuild 57.005s. Two-GPU and CPU-fallback runs preserve two and five expected skips.