File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ def test_optimizer_args(_, tmp_path):
40
40
41
41
42
42
@_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" })
45
43
# If we were to use `save_hyperparameters()`, we would have to patch `sys.argv` or otherwise
46
44
# the CLI would capture pytest args, but unfortunately patching would mess with subprocess
47
45
# launching, so we need to mock `save_hyperparameters()`
@@ -87,8 +85,6 @@ def test_pretrain(_, tmp_path):
87
85
88
86
89
87
@_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" })
92
88
@mock .patch ("litgpt.pretrain.L.Fabric.load_raw" )
93
89
# See comment in `test_pretrain` why we need to mock `save_hyperparameters()`
94
90
@mock .patch ("litgpt.pretrain.save_hyperparameters" )
You can’t perform that action at this time.
0 commit comments