Skip to content

Commit 78e6e22

Browse files
booxterspeediedan
authored andcommitted
tests: fix test_fts_distributed_compat on MacOS
lightning raises the following error when initializing the Trainer: ValueError: You set `strategy=ddp` but strategies from the DDP family are not supported on the MPS accelerator. Either explicitly set `accelerator='cpu'` or change the strategy. Signed-off-by: Ihar Hrachyshka <[email protected]>
1 parent aa750cf commit 78e6e22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_finetuning_scheduler_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2491,7 +2491,7 @@ def test_fts_invalid_schedules(tmpdir, invalid_schedules, schedule_key: str, exp
24912491
"strategy, devices, accelerator, strategy_conf, results_key",
24922492
[
24932493
pytest.param("test_strategy", 1, "auto", "stgy_allow_untest", "allow_untest"),
2494-
pytest.param("ddp", 1, "auto", "stgy_disallow_untest", "disallow_untest", marks=RunIf(skip_windows=True)),
2494+
pytest.param("ddp", 1, "cpu", "stgy_disallow_untest", "disallow_untest", marks=RunIf(skip_windows=True)),
24952495
pytest.param("test_strategy", 1, "cpu", "cust_stgy_adapter_found", "cust_stgy_adapter_found"),
24962496
pytest.param("test_strategy", 1, "cpu", "cust_stgy_adapter_not_found", "cust_stgy_adapter_not_found"),
24972497
pytest.param("test_strategy", 1, "cpu", "cust_stgy_adapter_not_importable", "cust_stgy_adapter_not_importable"),

0 commit comments

Comments
 (0)