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):
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" )
You can’t perform that action at this time.
0 commit comments