Skip to content

Commit 3e76d9e

Browse files
committed
update
1 parent 6b05701 commit 3e76d9e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/tests_pytorch/strategies/test_fsdp2.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ class InvalidMPPolicy:
170170
FSDP2Strategy(mp_policy=InvalidMPPolicy())
171171

172172

173-
@RunIf(min_torch="2.6.0")
174173
@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")
176175
def test_strategy_sync_batchnorm(tmp_path):
177176
"""Test to ensure that sync_batchnorm works when using FSDP and GPU, and all stages can be run."""
178177
model = TestFSDP2Model()
@@ -188,9 +187,8 @@ def test_strategy_sync_batchnorm(tmp_path):
188187
_run_multiple_stages(trainer, model, os.path.join(tmp_path, "last.ckpt"))
189188

190189

191-
@RunIf(min_torch="2.6.0")
192190
@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")
194192
def test_modules_without_parameters(tmp_path):
195193
"""Test that TorchMetrics get moved to the device despite not having any parameters."""
196194

0 commit comments

Comments
 (0)