Skip to content

Commit c6ebd9a

Browse files
committed
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 40e4836 commit c6ebd9a

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
@@ -2468,7 +2468,7 @@ def test_fts_invalid_schedules(tmpdir, invalid_schedules, schedule_key: str, exp
24682468
"strategy, devices, accelerator, strategy_conf, results_key",
24692469
[
24702470
pytest.param("test_strategy", 1, "auto", "stgy_allow_untest", "allow_untest"),
2471-
pytest.param("ddp", 1, "auto", "stgy_disallow_untest", "disallow_untest", marks=RunIf(skip_windows=True)),
2471+
pytest.param("ddp", 1, "cpu", "stgy_disallow_untest", "disallow_untest", marks=RunIf(skip_windows=True)),
24722472
pytest.param("test_strategy", 1, "cpu", "cust_stgy_adapter_found", "cust_stgy_adapter_found"),
24732473
pytest.param("test_strategy", 1, "cpu", "cust_stgy_adapter_not_found", "cust_stgy_adapter_not_found"),
24742474
pytest.param("test_strategy", 1, "cpu", "cust_stgy_adapter_not_importable", "cust_stgy_adapter_not_importable"),

0 commit comments

Comments
 (0)