Skip to content

Commit 6b05701

Browse files
committed
meow
1 parent 224a125 commit 6b05701

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/tests_pytorch/strategies/test_fsdp2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ def configure_optimizers(self):
440440
trainer.fit(model, ckpt_path=checkpoint_path_full)
441441

442442

443-
@RunIf(max_torch="2.5")
443+
@RunIf(max_torch="2.5", min_cuda_gpus=1)
444444
@pytest.mark.parametrize("strategy", ["fsdp2", "fsdp2_cpu_offload"])
445445
def test_fsdp2_requires_torch_2_6_or_newer(tmp_path, strategy):
446446
"""FSDP2 strategies should error on torch < 2.6."""
447447
with pytest.raises(ValueError, match="FSDP2Strategy requires torch>=2.6.0."):
448-
Trainer(accelerator="cpu", default_root_dir=tmp_path, fast_dev_run=True, strategy=strategy)
448+
Trainer(default_root_dir=tmp_path, fast_dev_run=True, strategy=strategy)

0 commit comments

Comments
 (0)