[PyTorch] Skip test_nvfp4_partial_cast_matches_full test when NVFP4 is not available.#2735
[PyTorch] Skip test_nvfp4_partial_cast_matches_full test when NVFP4 is not available.#2735ksivaman wants to merge 1 commit intoNVIDIA:mainfrom
test_nvfp4_partial_cast_matches_full test when NVFP4 is not available.#2735Conversation
Signed-off-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
|
/te-ci pytorch L1 |
Greptile SummaryThis PR fixes a misplaced The fix moves the guard to
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant pytest as pytest runner
participant T as test_nvfp4_partial_cast_matches_full
participant SP as subprocess (torch.distributed.run)
participant W as _test_nvfp4_partial_cast_matches_full (worker)
pytest->>T: invoke test
alt NVFP4 not available (NEW behaviour)
T->>T: is_nvfp4_available() → False
T->>pytest: pytest.skip(reason)
Note over SP,W: subprocess never launched
else NVFP4 available
T->>SP: subprocess.run(..., check=True)
SP->>W: run_parallel_nvfp4_partial_cast_test()
W->>W: distributed quantisation assertions
W-->>SP: success / AssertionError
SP-->>T: exit 0 / non-zero
T-->>pytest: pass / CalledProcessError
end
Last reviewed commit: c1fb5d7 |
KshitijLakhani
left a comment
There was a problem hiding this comment.
LGTM !
Good to merge once CI passes fully !
Thanks !
Description
#2691 introduced this test but the NVFP4 condition wasn't checked properly.
Type of change
Changes
test_nvfp4_partial_cast_matches_fulltest when NVFP4 is not available.Checklist: