Skip to content

Commit bc556b7

Browse files
authored
debug some failing standalone tests with compiler (#2075)
1 parent 3d33a05 commit bc556b7

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tests/test_pretrain.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ def test_optimizer_args(_, tmp_path):
4040

4141

4242
@_RunIf(min_cuda_gpus=2, standalone=True)
43-
# Set CUDA_VISIBLE_DEVICES for FSDP hybrid-shard, if fewer GPUs are used than are available
44-
@mock.patch.dict(os.environ, {"CUDA_VISIBLE_DEVICES": "0,1"})
4543
# If we were to use `save_hyperparameters()`, we would have to patch `sys.argv` or otherwise
4644
# the CLI would capture pytest args, but unfortunately patching would mess with subprocess
4745
# launching, so we need to mock `save_hyperparameters()`
@@ -87,8 +85,6 @@ def test_pretrain(_, tmp_path):
8785

8886

8987
@_RunIf(min_cuda_gpus=2, standalone=True)
90-
# Set CUDA_VISIBLE_DEVICES for FSDP hybrid-shard, if fewer GPUs are used than are available
91-
@mock.patch.dict(os.environ, {"CUDA_VISIBLE_DEVICES": "0,1"})
9288
@mock.patch("litgpt.pretrain.L.Fabric.load_raw")
9389
# See comment in `test_pretrain` why we need to mock `save_hyperparameters()`
9490
@mock.patch("litgpt.pretrain.save_hyperparameters")

0 commit comments

Comments
 (0)