Skip to content

[Testcase Refactoring] Add distributed test capability gates - #191919

Draft
danieldale2026 wants to merge 1 commit into
pytorch:mainfrom
danieldale2026:test/distributed-capability-gates
Draft

danieldale2026 wants to merge 1 commit into
pytorch:mainfrom
danieldale2026:test/distributed-capability-gates

Conversation

@danieldale2026

@danieldale2026 danieldale2026 commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor
  • Passes lint: scoped spin quicklint -a
  • Added/updated tests (added; not executed at this head)
  • Updated documentation (not applicable)
  • Included benchmark results (not applicable)

Linked issue or supporting maintainer

Part of #185590

BC-breaking?

No

Summary (human written only)

Support for distributed functionality and FP64 precision differs across hardware backends, and the test framework should not rely on hardcoded judgments tied to specific backends such as CUDA. By declaring and checking these capabilities in a uniform way, tests can run normally on devices that support them and skip sensibly on devices that do not, while missing capability declarations are caught promptly, improving the cross-hardware compatibility, maintainability, and reliability of PyTorch test results.

Agent details (if applicable)

AI attribution: the Summary is the author's own viewpoint (Chinese, translated to English by AI); the technical details below are AI-drafted.

This PR adds two capability identifiers to the device-type test framework: Capability.distributed.backend and Capability.dtype.fp64.

distributed.backend reflects whether a device's default distributed backend is available; dtype.fp64 reflects device FP64 support. PrivateUse1 providers own their capability registrations.

Requirements are checked at the existing method decorator: supported capabilities run normally, declared-unsupported raises SkipTest, and undeclared raises AssertionError.

Added TestFP64CapabilityDeclarations in test/test_testing.py, and the OpenReg fixture now builds fixture-local capability maps instead of mutating PrivateUse1TestBase globally.

Validation: scoped lint passed for the changed files under the existing configuration and exclusions; the added tests were not run (no source-consistent local build); CI workflows are action_required with no jobs run.

@pytorch-bot

pytorch-bot Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/191919

Note: Links to docs will display an error until the docs builds have been completed.

⚠️ 4 Awaiting Approval

As of commit f22c53d with merge base cf7d0e6 (image):

AWAITING APPROVAL - The following workflows need approval before CI can run:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@danieldale2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "module: tests/distributed"

@danieldale2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "module: tests/distributed"

@pytorch-bot pytorch-bot Bot added the module: tests/distributed This label covers all test cases within the Distributed sheet. label Aug 5, 2026
li-lizhe added a commit to li-lizhe/pytorch that referenced this pull request Aug 5, 2026
… gating

Refactor TestTPFSDPIntegration to the device-agnostic pattern from the
testcase-refactoring initiative (pytorch#185590) so it runs on out-of-tree
PrivateUse1 backends (NPU) without patching common_fsdp module globals.

Introduce TPFSDPIntegrationTestBase(FSDPTestContinuous) that resolves the
device and backend at runtime: _resolved_device_type() resolves the
generic "privateuse1" token to the registered backend name, backend_str
goes through dist.get_default_backend_for_device (npu->hccl, cuda->nccl,
no hardcoding), and world_size is accelerator-aware. This mirrors
DTensorPPTestBase in pytorch#192051. Tag the class
HardwareClassification.ACCELERATOR, since all three methods run
multi-device FSDP+TP collectives on an accelerator.

Replace @skip_if_lt_x_gpu(4) with @requires_world_size(4) plus
@requires_capabilities(Capability.distributed.backend/dtensor/fsdp), the
same gates pytorch#192045 uses for the FSDP+DTensor path. Drop the module-level
device_type global and point its six call sites at
self._resolved_device_type(); the nested TestModel captures the resolved
device via closure. Switch instantiate_parametrized_tests to
instantiate_device_type_tests(only_for=["cuda","xpu","privateuse1"],
allow_xpu=True) so per-device variants are generated and registered
PrivateUse1 backends are auto-discovered. No torch_npu or backend-specific
import is introduced; backend capability registration is handled
separately via register_privateuse1_capabilities (pytorch#192043).

Test Plan:
The capability-gated form depends on pytorch#190846 (Capability/
requires_capabilities) and pytorch#191919 (Capability.distributed namespace +
generalized requires_world_size), not on main yet, so opened as draft
until they land (same as pytorch#192045/pytorch#192046). NPU runtime additionally
needs pytorch#192043 (register_privateuse1_capabilities) plus the backend's
distributed.* registration in the torch_npu repo.

The full capability-gated form was validated end-to-end on 4x Ascend
910B4 (privateuse1=npu) by porting the foundation mechanism onto a
local checkout (the foundation PRs do not apply cleanly to the older
base). With NPU registering distributed.backend/dtensor/fsdp as
supported, instantiate_device_type_tests generates the
TestTPFSDPIntegrationPRIVATEUSE1 variant and all three tests pass:

  python test/distributed/fsdp/test_fsdp_tp_integration.py
  # Testing class TestTPFSDPIntegrationPRIVATEUSE1 on 4 npu
  # Ran 3 tests ... OK

This exercises the FSDPTestContinuous x PrivateUse1TestBase MRO and the
@requires_capabilities / @requires_world_size gates on a multiprocess
test, both previously open risks for this test type.

Authored with the assistance of an AI assistant (Claude Code).

Co-Authored-By: Claude <[email protected]>
@JamesD18

JamesD18 commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

On replacing skip_if_lt_x_gpu with requires_world_size -- I'd push back on swapping them, for two reasons:

  1. The two decorators serve different purposes. requires_world_size(4) does more than skip -- it also tells the test harness to spawn 4 ranks for this test (see test_c10d_nccl.py). Currently only the NCCL test file uses it, in about a dozen places. Going the other direction, skip_if_lt_x_gpu is used across hundreds of files with over a thousand call sites; replacing it with requires_world_size would set an attribute that most classes never read, so it'd just be swapping the skip mechanism for no real gain.

  2. Distributed skip decorators currently fall into three families: import-time unittest_skip markers (requires_nccl and the like), setUp-time SkipTest (requires_capabilities belongs here too), and subprocess-time sys.exit exit codes (skip_if_lt_x_gpu and the like). Coexistence is already the status quo. As long as the capability-registration mechanism is fixed so that coexistence doesn't block test execution, I'd leave existing tests as they are. If we do want to unify, change skip_if_lt_x_gpu itself -- don't make 1000+ call sites swap decorators one by one.

li-lizhe added a commit to li-lizhe/pytorch that referenced this pull request Aug 5, 2026
… gating

Refactor TestTPFSDPIntegration to the device-agnostic pattern from the
testcase-refactoring initiative (pytorch#185590) so it runs on out-of-tree
PrivateUse1 backends (NPU) without patching common_fsdp module globals.

Introduce TPFSDPIntegrationTestBase(FSDPTestContinuous) that resolves the
device and backend at runtime: _resolved_device_type() resolves the
generic "privateuse1" token to the registered backend name, backend_str
goes through dist.get_default_backend_for_device (npu->hccl, cuda->nccl,
no hardcoding), and world_size is accelerator-aware. This mirrors
DTensorPPTestBase in pytorch#192051. Tag the class
HardwareClassification.ACCELERATOR, since all three methods run
multi-device FSDP+TP collectives on an accelerator.

Replace @skip_if_lt_x_gpu(4) with @requires_world_size(4) plus
@requires_capabilities(Capability.distributed.backend/dtensor/fsdp), the
same gates pytorch#192045 uses for the FSDP+DTensor path. Drop the module-level
device_type global and point its six call sites at
self._resolved_device_type(); the nested TestModel captures the resolved
device via closure. Switch instantiate_parametrized_tests to
instantiate_device_type_tests(only_for=["cuda","xpu","privateuse1"],
allow_xpu=True) so per-device variants are generated and registered
PrivateUse1 backends are auto-discovered. No torch_npu or backend-specific
import is introduced; backend capability registration is handled
separately via register_privateuse1_capabilities (pytorch#192043).

Test Plan:
The capability-gated form depends on pytorch#190846 (Capability/
requires_capabilities) and pytorch#191919 (Capability.distributed namespace +
generalized requires_world_size), not on main yet, so opened as draft
until they land (same as pytorch#192045/pytorch#192046). NPU runtime additionally
needs pytorch#192043 (register_privateuse1_capabilities) plus the backend's
distributed.* registration in the torch_npu repo.

The full capability-gated form was validated end-to-end on 4x Ascend
910B4 (privateuse1=npu) by porting the foundation mechanism onto a
local checkout (the foundation PRs do not apply cleanly to the older
base). With NPU registering distributed.backend/dtensor/fsdp as
supported, instantiate_device_type_tests generates the
TestTPFSDPIntegrationPRIVATEUSE1 variant and all three tests pass:

  python test/distributed/fsdp/test_fsdp_tp_integration.py
  # Testing class TestTPFSDPIntegrationPRIVATEUSE1 on 4 npu
  # Ran 3 tests ... OK

This exercises the FSDPTestContinuous x PrivateUse1TestBase MRO and the
@requires_capabilities / @requires_world_size gates on a multiprocess
test, both previously open risks for this test type.

Authored with the assistance of an AI assistant (Claude Code).
@jishuangfeng

Copy link
Copy Markdown

Nice preflight.
One gap: it lives only in DeviceTypeTestBase.setUp(), so distributed tests subclassing MultiProcessTestCase directly (without instantiate_device_type_tests) still spawn workers before any check. Do you plan to wire it into MultiProcessTestCase.setUp() in this PR, or follow up separately?

@jbschlosser jbschlosser added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Aug 5, 2026
li-lizhe added a commit to li-lizhe/pytorch that referenced this pull request Aug 6, 2026
… gating

Refactor TestTPFSDPIntegration to the device-agnostic pattern from the
testcase-refactoring initiative (pytorch#185590) so it runs on out-of-tree
PrivateUse1 backends (NPU) without patching common_fsdp module globals.

Introduce TPFSDPIntegrationTestBase(FSDPTestContinuous) that resolves the
device and backend at runtime: _resolved_device_type() resolves the
generic "privateuse1" token to the registered backend name, backend_str
goes through dist.get_default_backend_for_device (npu->hccl, cuda->nccl,
no hardcoding), and world_size is accelerator-aware. This mirrors
DTensorPPTestBase in pytorch#192051. Tag the class
HardwareClassification.ACCELERATOR, since all three methods run
multi-device FSDP+TP collectives on an accelerator.

Replace @skip_if_lt_x_gpu(4) with @requires_world_size(4) plus
@requires_capabilities(Capability.distributed.backend/dtensor/fsdp), the
same gates pytorch#192045 uses for the FSDP+DTensor path. Drop the module-level
device_type global and point its six call sites at
self._resolved_device_type(); the nested TestModel captures the resolved
device via closure. Switch instantiate_parametrized_tests to
instantiate_device_type_tests(except_for="cpu",
allow_xpu=True) so per-device variants are generated and registered
PrivateUse1 backends are auto-discovered. No torch_npu or backend-specific
import is introduced; backend capability registration is handled
separately via register_privateuse1_capabilities (pytorch#192043).

Test Plan:
The capability-gated form depends on pytorch#190846 (Capability/
requires_capabilities) and pytorch#191919 (Capability.distributed namespace +
generalized requires_world_size), not on main yet, so opened as draft
until they land (same as pytorch#192045/pytorch#192046). NPU runtime additionally
needs pytorch#192043 (register_privateuse1_capabilities) plus the backend's
distributed.* registration in the torch_npu repo.

The full capability-gated form was validated end-to-end on 4x Ascend
910B4 (privateuse1=npu) by porting the foundation mechanism onto a
local checkout (the foundation PRs do not apply cleanly to the older
base). With NPU registering distributed.backend/dtensor/fsdp as
supported, instantiate_device_type_tests generates the
TestTPFSDPIntegrationPRIVATEUSE1 variant and all three tests pass:

  python test/distributed/fsdp/test_fsdp_tp_integration.py
  # Testing class TestTPFSDPIntegrationPRIVATEUSE1 on 4 npu
  # Ran 3 tests ... OK

This exercises the FSDPTestContinuous x PrivateUse1TestBase MRO and the
@requires_capabilities / @requires_world_size gates on a multiprocess
test, both previously open risks for this test type.

Authored with the assistance of an AI assistant (Claude Code).
@danieldale2026
danieldale2026 requested a review from JamesD18 August 7, 2026 08:02
danieldale2026 added a commit to danieldale2026/pytorch that referenced this pull request Aug 7, 2026
…e preflight from setUp

Per review feedback from @JamesD18 (pytorch#191919):
- requires_world_size has harness/spawn semantics beyond device availability;
  changing it here would affect existing NCCL call sites that do not inherit
  DeviceTypeTestBase.
- Restore the original implementation (uses torch.cuda.device_count).
- Remove _check_required_world_size() and its call from DeviceTypeTestBase.setUp().
- Keep only the capability preflight (_check_capabilities) in setUp().
- common_distributed.py no longer appears in this PR's incremental diff.

Per review feedback from @jishuangfeng (pytorch#191919):
- The preflight is intentionally limited to DeviceTypeTestBase-instantiated
  tests. Direct MultiProcessTestCase subclasses do not expose get_capabilities()
  or device_type, so capability resolution is not wired into MultiProcessTestCase.

Device-count admission continues via @skip_if_lt_x_gpu (hardware-agnostic
via pytorch#187650). Capability admission via @requires_capabilities only.

Authored with AI assistance.
@danieldale2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Aug 7, 2026
danieldale2026 added a commit to danieldale2026/pytorch that referenced this pull request Aug 7, 2026
Per review feedback on pytorch#191919 (@JamesD18), requires_world_size has
harness/spawn semantics beyond device availability and should not be
used as a drop-in replacement for skip_if_lt_x_gpu.

- test_fine_tuning.py: @requires_world_size(4) -> @skip_if_lt_x_gpu(4)
- test_save_load_api.py: @requires_world_size(2) -> @skip_if_lt_x_gpu(2)

Both retain @requires_capabilities for capability admission (dist.backend,
dist.dtensor, dist.fsdp). Device-count admission uses @skip_if_lt_x_gpu
(hardware-agnostic via pytorch#187650).

Authored with AI assistance.
@can-gaa-hou

Copy link
Copy Markdown
Collaborator

@claude review this pr with pr review skill

@claude

claude Bot commented Sep 7, 2026 •

Copy link
Copy Markdown

Claude finished @can-gaa-hou's task in 25m 21s —— View job


Reviewed with the /pr-review skill: the capability framework is sound in shape, but the newly added capabilities are declared unevenly across device bases, which — given that an undeclared capability is a hard AssertionError rather than a skip — turns the first consumer PR into an error on MPS/Lazy/PrivateUse1, so I'd request changes before this lands.

Full review details

PR Review: #191919

Summary

Adds distributed.*, memory.*, stream.*, dtype.fp64, and lib.safetensors test capabilities to common_device_type.py, moves the @requires_capabilities check into a DeviceTypeTestBase.setUp() preflight, and removes Capability.lib.triton. The framework shape is reasonable, but the capability declaration matrix is inconsistent in ways that will produce hard errors (not skips) for the consumer PRs this is meant to unblock, and several new capabilities are speculative surface with no consumer and no discriminating predicate.

Infrastructure

  • torch/testing/_internal/common_device_type.py:376-395 — the new capabilities are declared unevenly, and undeclared means hard error, not skip. _check_capabilities raises AssertionError for missing declarations and unittest.SkipTest only for declared-but-false. The resulting matrix after this PR:

    Base distributed.backend distributed.dtensor distributed.fsdp memory.non_blocking_copy stream.generic
    CPUTestBase / CUDATestBase / XPUTestBase yes yes yes yes yes
    MPSTestBase (:998) no no no no no
    HPUTestBase (:1099) yes no yes no no
    LazyTestBase (:974) — no override no no no no no
    PrivateUse1TestBase (:1123) — no override no no no no no

    So the moment a consumer PR writes @requires_capabilities(Capability.distributed.backend), that test errors on MPS, Lazy, and every out-of-tree PrivateUse1 backend rather than skipping. That inverts the goal of this stack: out-of-tree backends are the population least able to declare in-tree capabilities, and they are the ones that get a failure. Either declare every capability in DeviceTypeTestBase._capabilities() with a conservative lambda: False default so subclasses only override what they support, or change the missing-declaration path to SkipTest with a warning. The current design makes every capability addition a latent break for any base that does not race to declare it. Fix this →

  • common_device_type.py:1099-1112 — HPUTestBase declares distributed.backend and distributed.fsdp but not distributed.dtensor, while CPU/CUDA/XPU declare all three. There is no stated reason HPU would support FSDP but not DTensor — FSDP2 is built on DTensor. Worse, the new test test_hpu_distributed_capabilities_follow_backend_availability (test_testing.py:494-500) asserts the gap:

    self.assertEqual(
        set(capabilities) & distributed_capabilities,
        {Capability.distributed.backend, Capability.distributed.fsdp},
    )

    This locks in what looks like an oversight, so a later PR that adds the missing declaration has to also edit an assertion that reads as intentional. Either declare dtensor for HPU, or document why it is intentionally absent.

API Design

  • common_device_type.py:334-338, 494-501 — Capability.lib.safetensors contradicts this PR's own rationale for removing Capability.lib.triton. The PR body argues Triton must stay outside the registry because it "depends on the package" and is "an independent runtime condition rather than a backend device capability," and that keeping it out "avoids requiring out-of-tree device backends to register a non-device capability." But lib.safetensors is registered as importlib.util.find_spec("safetensors") is not None — a pure package-presence check with zero device dependence, i.e. exactly the category just evicted. It is also now in the base class, so it is precisely the "non-device capability" every out-of-tree backend inherits. Pick one rule: either package-presence conditions belong in the registry (in which case lib.triton should have stayed) or they do not (in which case drop lib.safetensors and the class lib: container along with it).

  • All seven new capability constants have zero consumers. distributed.dtensor, distributed.fsdp, memory.non_blocking_copy, stream.generic, and lib.safetensors are not referenced by any @requires_capabilities call site anywhere in the repo outside this file's docstring and the OpenReg self-test. Per CLAUDE.md ("Don't design for hypothetical future requirements"), add each constant in the PR that first consumes it. Right now the framework is publishing an interface whose semantics cannot be reviewed because no caller demonstrates intent — most visibly memory.non_blocking_copy and stream.generic, whose meaning is undefined without a consumer.

  • common_device_type.py:1335-1343 — requires_capabilities docstring is now wrong. It still says the decorator "Wraps the test to call type(self).get_capabilities() at runtime and skip if any required capability is unsupported." After this PR the authoritative check happens in setUp(); the wrapper is a redundant second check. The docstring is the contract for a decorator meant to be used across hundreds of tests — it needs to state that the check runs at setUp time, and (per the point above) that an undeclared capability is a hard error.

Testing

  • test/cpp_extensions/open_registration_extension/torch_openreg/tests/test_testing.py:433-525 — TestFP64CapabilityDeclarations asserts in-tree CPU/CUDA/MPS/XPU/HPU capability declarations, but lives in a PrivateUse1/OpenReg file (# Owner(s): ["module: PrivateUse1"]). That file only runs under the dedicated openreg CI config (.ci/pytorch/test.sh test_openreg() -> run_test.py --openreg), which requires building the torch_openreg C++ extension. So regressions in CUDA/XPU/MPS/HPU capability declarations are guarded by a job that most PRs touching those bases never trigger, and by an owner label that will never route to the right reviewers. These assertions belong somewhere that runs broadly (e.g. test/test_testing.py); leave only the PrivateUse1-specific gating behavior (TestCapabilityGating, TestNoCapabilityPreflight) in the OpenReg file. Fix this →

  • test_testing.py:394-415, 423-430 — the fixture monkeypatches the generated class after instantiation. _capabilities and setUp are reassigned onto globals()["TestCapabilityGatingOPENREG"], and _openreg_capability_test_setup calls PrivateUse1TestBase.setUp(self) directly, bypassing the MRO. That is exactly the "dynamically setattr a field on an object" pattern CLAUDE.md calls out, and the direct-base call means the fixture is not testing the real dispatch path a consumer test would take. [Testcase Refactoring] Let out-of-tree PrivateUse1 backends register their own capabilities #192043 reportedly adds a register_privateuse1_capabilities() hook for this; either wait for it or subclass PrivateUse1TestBase with a normal _capabilities() override in the test file rather than patching the generated class.

  • common_device_type.py:503-509 — the setUp preflight is silently skipped when a generic test class defines setUp without calling super().setUp(). Because instantiate_device_type_tests builds the class as type(name, (base, generic_test_class), {}) (:1398), DeviceTypeTestBase precedes the generic class in the MRO, so a generic setUp that omits the super() call drops the preflight entirely. Today the redundant wrapper check masks it (the test still skips, just later), but the OpenReg fixture asserts on completed_setup_tests as though the preflight is guaranteed. Nothing tests the omitted-super() path; add coverage for it, or the guarantee this PR's description claims is untested.

Code Quality

  • common_device_type.py:919-927, 1048-1056 — distributed.backend, distributed.dtensor, and distributed.fsdp are bound to literally identical expressions (lambda: _distributed_backend_available(cls.device_type)) on both CUDATestBase and XPUTestBase. Three distinct capability names that always return the same value are false granularity: a consumer gating on distributed.fsdp gets no more information than gating on distributed.backend, but a reader will reasonably assume the names mean different things. Either give each a predicate that actually discriminates (e.g. DTensor/FSDP feature availability, not just backend availability) or collapse to the one capability that is genuinely being tested.

  • common_device_type.py:930-933, 1059-1064 — memory.non_blocking_copy and stream.generic are tautologically true where they are declared. Both are _device_module_available(cls.device_type), but CUDATestBase is only appended to device_type_test_bases when torch.cuda.is_available() is already true (:1178), and the same holds for the XPU path. Inside a running CUDA/XPU test the predicate can never be false, so these declarations always report support and never gate anything.

  • **common_device_type.py:876-879 (CPU) — stream.generic: lambda: Falseis factually wrong.**torch/cpu/init.pydefinesStream (:136), Event (:154), current_stream (:172), and stream (:215) specifically to support device-agnostic code. A test gated on stream.genericwould be skipped on CPU even though the generic stream API is present. If the intent is "no *real* asynchronous stream semantics," the capability is misnamed — saystream.async_execution` or similar.

  • **common_device_type.py:376-377, 489-492 — every predicate is evaluated on every check, and the check runs twice per test.** get_capabilities()calls *all* registered predicates, not just the required ones, so asking fordtype.bf16also runsimportlib.util.find_spec("safetensors")and up to three_distributed_backend_available()calls. The latter reachesis_backend_available->_check_single_backend_availability->Backend._ensure_backend_registered, which scans importlib.metadata.entry_points(group="torch.distributed.backends") (torch/distributed/distributed_c10d.py:552-558). There is no caching, and _check_capabilitiesis invoked both fromsetUp() (:507) and from the requires_capabilities wrapper (:1349`) — so that work happens twice for every gated test. Evaluate only the required keys, and drop the now-redundant wrapper check (or keep the wrapper solely for the direct-call case the OpenReg test exercises and make that explicit).

  • **common_device_type.py:398-403 — dead exception handler.** _distributed_backend_availablecatches(AttributeError, ValueError)arounddist.get_default_backend_for_device, but it already returned early on not dist.is_available(), and the function raises ValueError for unknown devices (distributed_c10d.py:2215). The AttributeError` arm is unreachable. Separately, swallowing the exception means a genuinely misconfigured device silently reports "no distributed support" and its tests silently skip rather than surfacing the misconfiguration.

  • common_device_type.py:993-1009, 1015-1027 — MPSTestBase._capabilities()` is relocated with no functional change, adding ~24 lines of pure churn to the diff for a PR that is otherwise asking reviewers to focus on new declarations. Leave it where it was.

Recommendation

Request Changes

The blocking items are the uneven declaration matrix combined with hard-error-on-undeclared (Infrastructure, first bullet) — as written, the consumer PRs this stack exists to unblock will error rather than skip on MPS, Lazy, and out-of-tree PrivateUse1 backends — and the placement of in-tree capability assertions in an OpenReg-only test file, which means those assertions will not run in the CI that would catch a regression. The lib.safetensors / lib.triton inconsistency should be resolved one way or the other before the registry semantics are set, and the three identical distributed.* predicates should either discriminate or collapse.

| Branch: `test/distributed-capability-gates`

@danieldale2026

Copy link
Copy Markdown
Contributor Author

AI assistance disclosure: This response was prepared with AI assistance, then reviewed and explicitly authorized for publication by the PR author. I verified the reconciliation against the current PR head d686ba574 and am posting it to address the bot review and request a current-head re-review.

Thanks for the detailed review. I reconciled all 14 points against the current head, d686ba574:

  1. Fixed: undeclared capabilities now raise unittest.SkipTest, not AssertionError. CPU/CUDA/XPU/MPS declare distributed/memory/stream capabilities; HPU/Lazy/PrivateUse1 remain undeclared and now skip cleanly instead of hard-erroring.

  2. Fixed: HPUTestBase no longer advertises any distributed capability, and the declaration test now asserts an empty distributed-capability intersection.

  3. Addressed in the PR Motivation. Triton requires package + registered device interface + usable backend, so find_spec is incomplete and has_triton() remains the gate. For safetensors, package presence is the complete prerequisite, so the base find_spec("safetensors") predicate is intentional.

  4. The lack of in-PR consumers is intentional. This is the framework layer of an already-split stack; consumer migrations live in separate dependent PRs to preserve focused file ownership and review scope.

  5. Fixed: the requires_capabilities docstring now documents both missing/unsupported SkipTest behavior and the setUp preflight.

  6. Fixed: TestFP64CapabilityDeclarations moved to common test/test_testing.py; OpenReg retains only PrivateUse1-specific gating tests.

  7. The generated-class assignment is test-local instrumentation. It does not bypass the preflight or cooperative MRO: the generated MRO is TestCapabilityGatingOPENREG -> PrivateUse1TestBase -> DeviceTypeTestBase -> TestCapabilityGating -> TestCase; the direct call enters DeviceTypeTestBase.setUp, whose super() continues into the generic class. [Testcase Refactoring] Let out-of-tree PrivateUse1 backends register their own capabilities #192043’s registration hook is still open, so this PR does not depend on it.

  8. The omitted-super() conclusion is inverted. The device base precedes the generic class, so DeviceTypeTestBase.setUp runs the preflight first and only then calls the generic setUp. A generic setUp that omits super() cannot skip the already-completed preflight; this was also verified with an exact-head runtime probe.

  9. CUDA/XPU currently share the backend-availability predicate for the three distributed capability names, but the names represent distinct consumer requirements. The matrix already differs on CPU, MPS, and out-of-tree providers; collapsing the names would lose that contract granularity.

  10. The memory/stream predicates are expected to be true on an active CUDA/XPU base, but still gate across backends: CPU/MPS declare false and undeclared backends skip. A capability need not vary within one supported base to be useful.

  11. CPU exposes Stream/Event API stubs, but their wait/record operations are documented no-ops. stream.generic is intended to gate real asynchronous accelerator-stream behavior used by the downstream consumer, not mere API-symbol presence, so CPU remains false. I agree the name is broad and can clarify it if maintainers prefer.

  12. Confirmed that the full map is evaluated in both preflight and wrapper paths. The paths serve different behavior: preflight runs before generic setup, while the wrapper preserves direct-call/non-generated use. We intentionally do not cache dynamic predicates. Built-in backends also use their direct is_<backend>_available fast path rather than scanning entry points on each check.

  13. Partially agreed: AttributeError is redundant on this source and can be narrowed as cleanup. ValueError is intentional because “no default backend registered for this device” means the capability is unsupported and the test should skip, not fail the framework.

  14. The relocation itself is unnecessary, but the current MPS method is no longer functionally unchanged: it now adds dtype.fp64, distributed.*, memory.*, and stream.*. Restoring its original location would be diff-only cleanup, not a correctness fix.

The old blocking findings (hard error on undeclared capabilities and OpenReg-only placement of in-tree declaration tests) are fixed on d686ba574. The focused common tests execute 4/4, and the full OpenReg run completed with 262 executed, 0 failures, and 0 timeouts. Could you please re-review the current head?

@Niran814804102 Niran814804102 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Niran814804102 Niran814804102 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Inherited from PR#190834, for the case where the capability map is missing, we need to be aware that the current code will raise AsssertionError.

@KarhouTam

Copy link
Copy Markdown
Collaborator

@claude review these changes, check if changes are clear and safe.

@claude

claude Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

Claude finished @KarhouTam's task in 23m 5s —— View job


The framework mechanics are safe and the setUp preflight is correctly ordered, but the head commit 925b73cf re-introduces AssertionError for undeclared capabilities — which contradicts the PR description and turns any future consumer test into a hard error on Lazy, HPU, and out-of-tree PrivateUse1 backends, so I'd resolve that before landing.

Full review details

PR Review: #191919

Summary

Adds distributed.*, memory.*, stream.*, dtype.fp64, and lib.safetensors capability constants, factors the @requires_capabilities check into a shared _check_capabilities helper, and runs it as a preflight from a new DeviceTypeTestBase.setUp(). The mechanics I was most worried about check out — the preflight is ordered before generic setUp, _required_capabilities survives instantiation, and no device base or generic test class is shadowed. But the head commit reverses the PR description on the most consequential behavioral question, and several new capability predicates are either factually wrong or carry no information.

Infrastructure

  • common_device_type.py:386 — the head commit contradicts the PR description, and this is the blocking issue. The PR body states "Missing-capability preflight and @requires_capabilities now raise unittest.SkipTest instead of AssertionError," and the author's reply to the earlier bot review says point 1 was "Fixed: undeclared capabilities now raise unittest.SkipTest, not AssertionError." But commit 925b73cf ("[Test] Raise on missing device capabilities"), the current head, reverts exactly that:

    -        raise unittest.SkipTest(
    +        raise AssertionError(
    

    So _check_capabilities again hard-errors on a missing declaration. Combined with the declaration matrix this PR leaves behind, that is a latent break. After this PR:

    Base distributed.backend distributed.dtensor distributed.fsdp memory.non_blocking_copy stream.generic
    CPU / CUDA / XPU (:876, :919, :1053) declared declared declared declared declared
    MPS (:1003) declared declared declared declared declared
    HPU (:1104) absent absent absent absent absent
    Lazy (:974, no override) absent absent absent absent absent
    PrivateUse1 (:1122, no override) absent absent absent absent absent

    The moment a consumer PR writes @requires_capabilities(Capability.distributed.backend), that test errors on HPU, Lazy, and every out-of-tree PrivateUse1 backend rather than skipping — and the error fires from setUp(), so it is a test failure, not an opt-out. That is backwards: out-of-tree backends are the population least able to declare in-tree capability constants, and they are the ones this design fails. Note @Niran814804102's approving review flags the same thing ("for the case where the capability map is missing, we need to be aware that the current code will raise AssertionError").

    Either the description or the code is wrong. Pick one: (a) make missing-declaration a SkipTest, or (b) declare every constant in DeviceTypeTestBase._capabilities() with a conservative lambda: False default so subclasses only override what they support and "missing" becomes unreachable. Option (b) is the more robust of the two, since it also makes AssertionError a genuine programming-error signal (a typo'd capability name) rather than a backend-coverage signal. Fix this →

API Design

  • common_device_type.py:882 — CPUTestBase declares distributed.fsdp: lambda: False while declaring distributed.dtensor as available. FSDP2 is built on DTensor, and the repo does run FSDP with gloo on CPU (test/distributed/_composable/fsdp/test_fully_shard_training.py:536 creates a backend="gloo" group). If the intent is "no sharded FSDP on CPU," the constant name does not say that; as written a consumer gating an FSDP test on distributed.fsdp will silently skip on CPU where the test would actually pass. Either declare it from the same backend predicate as dtensor, or rename it to what is actually being gated.

  • common_device_type.py:884 — CPUTestBase declares stream.generic: lambda: False, which is factually wrong for the name given. torch/cpu/__init__.py defines Stream (:136), Event (:154), current_stream (:172), and stream (:215) precisely so device-generic code can call them on CPU. A test gated on stream.generic skips on CPU even though the generic stream API is present and functional. If the intent is "no real asynchronous stream semantics" (the CPU wait_stream/record_event bodies are no-ops), the capability is misnamed — stream.async_execution or similar would be accurate. The author acknowledged this in the prior review thread ("I agree the name is broad and can clarify it if maintainers prefer"); it should be clarified before the name is locked in, since renaming a capability constant after consumers adopt it is a much larger change.

  • common_device_type.py:919-927, 1053-1061 — three distinct capability names bound to one literally identical expression. On both CUDA and XPU, distributed.backend, distributed.dtensor, and distributed.fsdp are all lambda: _distributed_backend_available(cls.device_type). A consumer gating on distributed.fsdp learns nothing that distributed.backend would not have told it. Three names that can never disagree on the devices that actually run distributed CI is false granularity — a reader will reasonably assume the names mean different things. Give dtensor/fsdp predicates that discriminate, or collapse to the one capability genuinely being tested.

  • common_device_type.py:1062-1067 / 930-933 — memory.non_blocking_copy and stream.generic are tautologically true where declared. Both are _device_module_available(cls.device_type), but CUDATestBase is only appended to device_type_test_bases when torch.cuda.is_available() already holds (:1177-1178), and XPU is gated on TEST_XPU (:1280-1281). Inside a running CUDA/XPU test the predicate cannot be false. The author's response argues these still discriminate across backends, which is true — but a predicate that is a constant on every device that evaluates it should be written as the constant, so a reader isn't misled into thinking it probes something.

  • common_device_type.py:334-338, 498-501 — lib.safetensors in the base class contradicts this PR's stated rule for evicting lib.triton. The PR argues Triton cannot be a registry capability because availability is not a pure package check, and that keeping it out avoids making out-of-tree backends register a non-device capability. But lib.safetensors is importlib.util.find_spec("safetensors") is not None — zero device dependence — and it is declared on DeviceTypeTestBase, so it is exactly the "non-device capability" every out-of-tree backend now inherits. The reasoning is defensible as stated in the PR body (complete vs. incomplete predicate), but the outcome is that the registry now contains one library capability and deliberately excludes another, with no mechanism preventing the next contributor from adding a lib.foo whose predicate is incomplete. Document the rule in the class lib: docstring — "only libraries whose availability is fully determined by package presence" — or the distinction will not survive the next addition.

Testing

  • test_testing.py:3183-3191 — test_static_fp64_capabilities calls CUDATestBase._capabilities() on every platform, including CPU-only CI. CUDATestBase._capabilities() imports PLATFORM_SUPPORTS_FP8, PLATFORM_SUPPORTS_FLASH_ATTENTION, PLATFORM_SUPPORTS_MEM_EFF_ATTENTION, and SM80OrLater from common_cuda (:903-909). These are LazyVals so merely building the dict is safe, but the test is asserting properties of a device base that is not instantiable on the machine running it, and test_existing_capability_declarations (:3154) additionally invokes the MPS and CPU predicates. This works today only because every touched predicate happens to be a constant or a LazyVal; the moment someone makes a CUDA predicate eagerly query the driver, this test breaks on CPU CI in a way that looks unrelated to their change. Add @onlyCUDA-style gating for the CUDA/XPU assertions, or assert only on the .keys() of the non-local bases and leave predicate evaluation to the device where it applies.

  • test_testing.py:3146 — the class name TestFP64CapabilityDeclarations no longer describes the class. It now also asserts fp8/bf16/attention declarations (:3147-3181), HPU's distributed-capability absence and lib.safetensors inheritance (:3193-3204). Name it for what it covers (e.g. TestCapabilityDeclarations) so the next person adding a non-fp64 declaration assertion knows this is the right home.

  • test_testing.py:3193-3204 — test_hpu_has_no_distributed_capabilities locks in the absence of a declaration, which is the state that produces the hard error described above. If the matrix is fixed per the Infrastructure finding, this assertion has to be rewritten. As written, a contributor who later declares HPU distributed capabilities must also edit an assertion that reads as a deliberate contract, with no comment explaining that the absence is a scope decision rather than a statement about HPU.

  • **test/cpp_extensions/.../test_testing.py:404-408, 420-423 — the fixture reassigns _capabilitiesandsetUponto the generated class at module scope.**_capability_test_cls.setUp = _openreg_capability_test_setupreplaces the MRO-providedsetUpwith a function that callsPrivateUse1TestBase.setUp(self) directly (:400). That happens to reach DeviceTypeTestBase.setUptoday, but it pins the test to the current inheritance shape: if asetUpis ever added toPrivateUse1TestBaseor another class is inserted between it andDeviceTypeTestBase, the fixture silently stops exercising the path it claims to test while still passing. CLAUDE.mdcalls out exactly this dynamic-attribute pattern. SubclassPrivateUse1TestBasewith a normal_capabilities()override and asetUpthat callssuper().setUp()`, rather than patching the generated class.

  • **test/cpp_extensions/.../test_testing.py:347-351 — test_capability_stackedis added but not accounted for in thetearDownClasscontract.** The expected set at:320-324lists three tests, and stacked/unsupported are expected to skip — but nothing asserts thattest_capability_stacked` was skipped rather than never collected. A collection regression that dropped the method entirely would leave this suite green. Assert the skip count, or add the skipped names to a separate expected-skip set.

Code Quality

  • **common_device_type.py:398-403 — the AttributeErrorarm of_distributed_backend_availableis unreachable.**dist.get_default_backend_for_deviceraises onlyValueError for an unregistered device (torch/distributed/distributed_c10d.py:2213-2215), and the function already returned early on not dist.is_available(), so distcannot be a stub at that point. DropAttributeError. Separately, swallowing ValueErrormeans a genuinely misconfigured device reports "no distributed support" and its tests silently skip rather than surfacing the misconfiguration — acceptable as a deliberate choice, but worth a one-line comment saying so, since the emptyexcept` reads as defensive rather than intentional.

  • **common_device_type.py:376-392 vs 1345-1349 — the capability check now runs twice per gated test.** setUp()calls_check_capabilities (:507) and the requires_capabilities wrapper calls it again (:1348). get_capabilities()evaluates *every* registered predicate, not just the required ones, so a test asking fordtype.bf16also runsfind_spec("safetensors")and three_distributed_backend_available()calls — each of which reachesis_backend_available->_check_single_backend_availability (distributed_c10d.py:1998-2008), which for a non-built-in backend scans entry points. Twice. Restrict the evaluation to the required keys ({k: v for k, v in _capabilities().items() if k in required}`), which fixes both the redundancy and the unrelated-predicate cost in one edit.

  • common_device_type.py:998-1013 — MPSTestBase._capabilities()is relocated aboveget_primary_device` with no functional need. It does gain new entries, but moving it as well means the diff shows a delete-plus-add for a method a reviewer must now manually align to see what actually changed. Leave it in place and add the new keys.

Recommendation

Request Changes

The blocker is the AssertionError-on-missing behavior at common_device_type.py:386, which the head commit re-introduced against the PR description's own claim, combined with the five new capabilities being undeclared on HPU, Lazy, and PrivateUse1. As it stands the first consumer PR that uses these constants produces errors — not skips — on exactly the backends this capability system exists to accommodate. Either flip that path to SkipTest or give every constant a lambda: False default on the base class, and reconcile the PR description with whichever you choose.

Secondary but worth settling before the names are consumed: stream.generic is false on CPU despite CPU having the generic stream API, distributed.fsdp is false on CPU despite gloo-based FSDP tests existing, and the three distributed.* names are indistinguishable on CUDA/XPU. On safety specifically, I did verify the parts that would have been serious: the new setUp is correctly ordered before generic setup, no device base or generic test class in-tree has a conflicting setUp, _required_capabilities survives copy.deepcopy (functions are atomic) and @wraps (which copies __dict__), and _testMethodName always resolves during setUp. The mechanism is sound; the declaration data it operates on is not yet.

| Branch: `test/distributed-capability-gates`

@danieldale2026

Copy link
Copy Markdown
Contributor Author

@fffrog — your earlier requested-changes review is the one still holding this PR at CHANGES_REQUESTED, so I am asking only you here. The status summary below was prepared with AI assistance; I read it and verified each item against the current PR state before posting.

Current head: 925b73cf90951785818f7389c7d2f9f23ec6a270 ("[Test] Raise on missing device capabilities"). Your requested-changes review was for e3192ffab8 and was waiting on dependency #190846; #190846 has since landed in main, so the condition you were waiting on is satisfied. CI on the current head is green: the pull, Lint, BC Lint, and docs-build workflows all ran against this head and completed successfully (156 checks passing, 1 skipped, 1 neutral, 0 failed). Both review threads are resolved, and the current head already has an approval. The PR description has also been corrected to match the current head: a declared but unsupported capability raises unittest.SkipTest, while a missing (undeclared) capability raises AssertionError.

Could you please re-review the current head when you have a chance?

pytorchmergebot pushed a commit that referenced this pull request Sep 21, 2026
…agnostic (#192694)

`requires_world_size` is the world-size gate that capability-gated FSDP test migrations (e.g. #192208 and the `test_fsdp_*` series) are migrating **to** from `skip_if_lt_x_gpu`. It hardcodes `torch.cuda.device_count()`, so on any non-CUDA accelerator (XPU/HPU/PrivateUse1) every `@requires_world_size(n)` test is skipped even when devices are present.

Generalizes the skip to `torch.accelerator.current_accelerator(check_available=True)` + `torch.get_device_module(acc.type).device_count()`, mirroring `skip_if_lt_x_gpu`'s generalization in #187650. Without this, #187650 alone does not unblock the migrated tests because they call `requires_world_size`, not `skip_if_lt_x_gpu`; #187650 generalized the old function while the migrations target the new one.

Sibling to #187650. Independent of the capability foundation PRs #190846/#191919/#192043 (this changes `common_distributed.requires_world_size`, they change `common_device_type.py`).

## Test plan
Validated on Ascend 910B (PrivateUse1, `torch.accelerator.device_count()=4`): `@requires_world_size(2)` tests run instead of being skipped ("requires 2 accelerators, found 4"); the 6 capability-gated `test_fsdp_*` files pass on 4-card NPU (56 tests, 0 failures). Container-side shims of the foundation PRs (#190846/#191919) were applied only to provide the Capability/requires_capabilities imports (not yet on main); this change is independent of those.

Pull Request resolved: #192694
Approved by: https://github.com/wjlFlyer, https://github.com/fffrog
danieldale2026 added a commit to danieldale2026/pytorch that referenced this pull request Sep 22, 2026
Replay the accepted pytorch#193067 consumer on the separate pytorch#191919 dependency
layer. Both classes now use device-type instantiation with explicit device
plumbing and capability gates; all 21 tests, assertions, parameterizations,
and resource gates are retained. Consumer scope is one state-dict file.

Prepared with an AI assistant (Codex); human publication review is pending.

Test Plan
```bash
/usr/bin/python3 -B agent_space/comment-closure/validate.py consumer-applied test/distributed/fsdp/test_fsdp_state_dict.py
/usr/bin/python3 -B agent_space/comment-closure/semantics.py A
git diff --check
```
In-memory compilation, five applicable cached lint checks, and AST checks
passed. The +185/-68 patch exactly matches the accepted input.
Runtime and collection NOT_RUN; canonical fixed-commit review pending.
danieldale2026 added a commit to danieldale2026/pytorch that referenced this pull request Sep 22, 2026
Replay the pytorch#194204 consumer topic from
31cee02 on the local pytorch#191919 dependency.
Retain current main's FSDPTestContinuous base and both subgroup cleanups.
Preserve the parent's DEVICE_BEFORE initialization correction, device
plumbing, open accelerator admission and all 24 test methods. This local
replay does not update pytorch#194204; the four tail API signatures remain a
separate child increment.

Prepared with an AI assistant (Codex); human publication review is pending.

Test Plan
```bash
/usr/bin/python3 -B /home/daniel/workspace/pytorch-dev/worktrees/pytorch/pr193067-comment-closure-20260922/agent_space/comment-closure/validate.py parent test/distributed/fsdp/test_fsdp_optim_state.py
/usr/bin/python3 -B /home/daniel/workspace/pytorch-dev/worktrees/pytorch/pr193067-comment-closure-20260922/agent_space/comment-closure/semantics.py B
git diff --check
```
In-memory compilation, five cached lint checks and static AST preservation
passed. Exact parent content plus the three main drift behaviors verified.
Two accepted parent assertions require CPU instead of excluding CUDA/XPU.
Runtime and collection NOT_RUN; canonical fixed-commit review pending.
danieldale2026 added a commit to danieldale2026/pytorch that referenced this pull request Sep 28, 2026
Integrate main be43976 into
pytorch#191919 at 925b73c. Both histories
changed the test_testing import block, causing the sole merge conflict.
Preserve the exact union of both input import sets, retaining TestCase.
Remove the prior erroneous gc and HardwareClassification additions. Keep the automatic
framework merge and freeze the parent before child consumer work.

Prepared with an AI assistant (Codex); human source review required.

Test Plan
```bash
python3 agent_space/correct_parent_alignment.py
```
Python stdlib AST/compile and selected import inventory passed for the three
parent paths. Full read-only main/index/worktree comparison confirms exactly
three parent delta paths. No torch import or execution. Lint explicitly waived;
collection, runtime, and build not run.
@danieldale2026

Copy link
Copy Markdown
Contributor Author

I reviewed this replay and its validation evidence. I believe it preserves the previously reviewed capability contract while retaining the intervening main changes. The local lint limitation is disclosed rather than hidden or fixed outside this PR's scope. The quoted summary was prepared with agent assistance.

@fffrog @Niran814804102, could you re-review #191919 at 6246cad866ef0f104268ab60be63a27f77bc89c7?

The four original commits were replayed onto main@e64cf981aab7c56671112c2922a69da0cec0f0d7, preserving PrivateUse1/custom filtering, cgroup-aware host-memory handling and JUnit changes. The scope remains the same three files. #190846's foundation is in the replay base. Missing capability registration still raises AssertionError; declared unsupported capabilities still skip.

Source-consistent CPU/Gloo and OpenReg validation is recorded in the updated body, including the two expected capability skips and the artifact-wrapper retry. Full local quicklint still reports a Pyrefly error in an unchanged Dynamo file. The same checker reproduced that diagnostic in a source-pinned main static projection; this was not all of baseline quicklint, and no all-green result is claimed. The completed checker receipts were independently verified after the enclosing agent timed out during report preparation. Accelerator hardware coverage and current-head CI remain separate gates.

Independent review also identified an unchanged early-preflight limitation when a generic class's copied setUp shadows the device-base hook. The decorator still checks at body entry, but the OpenReg fixture's before-setup guarantee should not be generalized to every consumer. This is disclosed as a separate follow-up rather than expanded into the replay.

The prior approval and CI at 925b73cf90951785818f7389c7d2f9f23ec6a270 are historical, not approval or CI for this new head. This asks for current-head review; it does not assert that the earlier changes-requested review has been cleared.

Replay the capability-based test gates onto main while retaining
distributed.backend and dtype.fp64. Preserve main's MPS dtype-selection
behavior and provider-owned declarations. The removed dtensor/fsdp
capability aliases stay absent, with no Dynamo changes.

Prepared with AI assistance (Codex).

Test Plan
---------
The accepted artifact harness executed the stock scoped precommit command
with the retained spin launcher, fixed offline tools and read-only source
guard. All 20 applicable checkers completed, including actual PYREFLY with
zero errors; its existing project exclusions and suppressions still apply.

```sh
/usr/bin/python3 -I -B agent_space/local-integration/publication-20261006/consolidated-precommit/cp_execute_02.py plan-ready-02.json gate-02.json
```

The stock command executed inside that recorded enclosure was:

```sh
spin quicklint -a -- test/cpp_extensions/open_registration_extension/torch_openreg/tests/test_testing.py test/test_testing.py torch/testing/_internal/common_device_type.py
```

Exact outer/child argv and diagnostics are retained in
agent_space/local-integration/publication-20261006/consolidated-precommit.
The 162 accepted static assertions are retained evidence, not freshly
rerun. Runtime and collection are NOT_RUN because the available native
build does not match this main-based candidate.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: tests/distributed This label covers all test cases within the Distributed sheet. open source topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

Status: Ready for Review(Initial)

Development

Successfully merging this pull request may close these issues.

10 participants