@@ -50,16 +50,16 @@ jobs:
5050 strategy :
5151 matrix :
5252 " PyTorch | oldest " :
53- image : " pytorchlightning/pytorch_lightning:base-cuda -py3.10-torch2.1-cuda12.1 .1"
53+ image : " pytorchlightning/pytorch_lightning:base-cuda12.1.1 -py3.10-torch2.1"
5454 PACKAGE_NAME : " pytorch"
5555 " PyTorch | latest " :
56- image : " pytorchlightning/pytorch_lightning:base-cuda -py3.12-torch2.8-cuda12.6.3 "
56+ image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3 -py3.12-torch2.8"
5757 PACKAGE_NAME : " pytorch"
5858 # "PyTorch | future":
59- # image: "pytorchlightning/pytorch_lightning:base-cuda -py3.12-torch2.7-cuda12.6.3 "
59+ # image: "pytorchlightning/pytorch_lightning:base-cuda12.6.3 -py3.12-torch2.7"
6060 # PACKAGE_NAME: "pytorch"
6161 " Lightning | latest " :
62- image : " pytorchlightning/pytorch_lightning:base-cuda -py3.12-torch2.8-cuda12.6.3 "
62+ image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3 -py3.12-torch2.8"
6363 PACKAGE_NAME : " lightning"
6464 pool : lit-rtx-3090
6565 variables :
@@ -103,8 +103,16 @@ jobs:
103103 displayName: "Image info & NVIDIA"
104104
105105 - bash : |
106- python .actions/assistant.py replace_oldest_ver
106+ set -ex
107107 pip install "cython<3.0" wheel # for compatibility
108+ pip install -U "lightning-utilities[cli]"
109+ cd requirements/pytorch
110+ # replace range by pin minimal requirements
111+ python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'extra.txt', 'strategies.txt', 'examples.txt']"
112+ # drop deepspeed since it is not supported by our minimal Torch requirements
113+ python -m lightning_utilities.cli requirements prune-pkgs --packages deepspeed --req_files strategies.txt
114+ # uninstall deepspeed since some older docker images have it pre-installed
115+ pip uninstall -y deepspeed
108116 condition: contains(variables['Agent.JobName'], 'oldest')
109117 displayName: "setting oldest dependencies"
110118
0 commit comments