We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6bbf1 commit 029ebffCopy full SHA for 029ebff
tests/tests_pytorch/strategies/test_fsdp2.py
@@ -442,5 +442,5 @@ def configure_optimizers(self):
442
@pytest.mark.parametrize("strategy", ["fsdp2", "fsdp2_cpu_offload"])
443
def test_fsdp2_requires_torch_2_6_or_newer(tmp_path, strategy):
444
"""FSDP2 strategies should error on torch < 2.6."""
445
- with pytest.raises(ValueError, match="FSDP2Strategy requires torch>=2.6.0."):
+ with pytest.raises(ModuleNotFoundError, match="FSDP2Strategy requires torch>=2.6.0."):
446
Trainer(default_root_dir=tmp_path, fast_dev_run=True, strategy=strategy)
0 commit comments