Skip to content

Commit 9d01e0d

Browse files
fix: 3.3 tests
1 parent 17485ee commit 9d01e0d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/e2e/mnist.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
print("MASTER_PORT: is ", os.getenv("MASTER_PORT"))
4141

4242
print("ACCELERATOR: is ", os.getenv("ACCELERATOR"))
43-
ACCELERATOR = os.getenv("ACCELERATOR")
43+
ACCELERATOR = os.getenv("ACCELERATOR", "auto")
4444

4545
# If GPU is requested but CUDA is not available, fall back to CPU
4646
if ACCELERATOR == "gpu" and not torch.cuda.is_available():
@@ -253,7 +253,7 @@ def test_dataloader(self):
253253
callbacks=[TQDMProgressBar(refresh_rate=20)],
254254
num_nodes=int(os.environ.get("GROUP_WORLD_SIZE", 1)),
255255
devices=int(os.environ.get("LOCAL_WORLD_SIZE", 1)),
256-
replace_sampler_ddp=False,
256+
use_distributed_sampler=False,
257257
strategy="ddp",
258258
)
259259

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
--extra-index-url https://download.pytorch.org/whl/cu118
22
torch==2.7.1+cu118
33
torchvision==0.22.1+cu118
4-
pytorch_lightning==1.9.5
4+
pytorch_lightning==2.4.0
55
torchmetrics==1.8.2
66
minio

0 commit comments

Comments
 (0)