Skip to content

Commit 029ebff

Browse files
committed
nitpick. and pause fsdp2 dev for now
1 parent cf6bbf1 commit 029ebff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/tests_pytorch/strategies/test_fsdp2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,5 +442,5 @@ def configure_optimizers(self):
442442
@pytest.mark.parametrize("strategy", ["fsdp2", "fsdp2_cpu_offload"])
443443
def test_fsdp2_requires_torch_2_6_or_newer(tmp_path, strategy):
444444
"""FSDP2 strategies should error on torch < 2.6."""
445-
with pytest.raises(ValueError, match="FSDP2Strategy requires torch>=2.6.0."):
445+
with pytest.raises(ModuleNotFoundError, match="FSDP2Strategy requires torch>=2.6.0."):
446446
Trainer(default_root_dir=tmp_path, fast_dev_run=True, strategy=strategy)

0 commit comments

Comments
 (0)