File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
tests/tests_pytorch/strategies Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,8 @@ class InvalidMPPolicy:
170
170
FSDP2Strategy (mp_policy = InvalidMPPolicy ())
171
171
172
172
173
- @RunIf (min_torch = "2.6.0" )
174
173
@pytest .mark .filterwarnings ("ignore::FutureWarning" )
175
- @RunIf (min_cuda_gpus = 2 , skip_windows = True , standalone = True )
174
+ @RunIf (min_cuda_gpus = 2 , skip_windows = True , standalone = True , min_torch = "2.6.0" )
176
175
def test_strategy_sync_batchnorm (tmp_path ):
177
176
"""Test to ensure that sync_batchnorm works when using FSDP and GPU, and all stages can be run."""
178
177
model = TestFSDP2Model ()
@@ -188,9 +187,8 @@ def test_strategy_sync_batchnorm(tmp_path):
188
187
_run_multiple_stages (trainer , model , os .path .join (tmp_path , "last.ckpt" ))
189
188
190
189
191
- @RunIf (min_torch = "2.6.0" )
192
190
@pytest .mark .filterwarnings ("ignore::FutureWarning" )
193
- @RunIf (min_cuda_gpus = 1 , skip_windows = True )
191
+ @RunIf (min_cuda_gpus = 1 , skip_windows = True , min_torch = "2.6.0" )
194
192
def test_modules_without_parameters (tmp_path ):
195
193
"""Test that TorchMetrics get moved to the device despite not having any parameters."""
196
194
You can’t perform that action at this time.
0 commit comments