@@ -50,23 +50,23 @@ jobs:
50
50
strategy :
51
51
matrix :
52
52
" 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"
54
54
PACKAGE_NAME : " pytorch"
55
55
" PyTorch | latest " :
56
- image : " pytorchlightning/pytorch_lightning:base-cuda -py3.12-torch2.7-cuda12.6.3 "
56
+ image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3 -py3.12-torch2.8 "
57
57
PACKAGE_NAME : " pytorch"
58
58
# "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"
60
60
# PACKAGE_NAME: "pytorch"
61
61
" Lightning | latest " :
62
- image : " pytorchlightning/pytorch_lightning:base-cuda -py3.12-torch2.7-cuda12.6.3 "
62
+ image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3 -py3.12-torch2.8 "
63
63
PACKAGE_NAME : " lightning"
64
64
pool : lit-rtx-3090
65
65
variables :
66
66
DEVICES : $( python -c 'print("$(Agent.Name)".split("_")[-1])' )
67
67
FREEZE_REQUIREMENTS : " 1"
68
68
PIP_CACHE_DIR : " /var/tmp/pip"
69
- PL_RUN_CUDA_TESTS : " 1"
69
+ RUN_ONLY_CUDA_TESTS : " 1"
70
70
container :
71
71
image : $(image)
72
72
# default shm size is 64m. Increase it to avoid:
82
82
echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/cu${cuda_ver}/torch_stable.html"
83
83
scope=$(python -c 'n = "$(PACKAGE_NAME)" ; print(dict(pytorch="pytorch_lightning").get(n, n))')
84
84
echo "##vso[task.setvariable variable=COVERAGE_SOURCE]$scope"
85
- python_ver=$(python -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')")
86
- echo "##vso[task.setvariable variable=PYTHON_VERSION_MM]$python_ver"
87
85
displayName: "set env. vars"
88
86
- bash : |
89
87
echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/test/cu${CUDA_VERSION_MM}"
@@ -105,8 +103,16 @@ jobs:
105
103
displayName: "Image info & NVIDIA"
106
104
107
105
- bash : |
108
- python .actions/assistant.py replace_oldest_ver
106
+ set -ex
109
107
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
110
116
condition: contains(variables['Agent.JobName'], 'oldest')
111
117
displayName: "setting oldest dependencies"
112
118
0 commit comments