@@ -4,20 +4,22 @@ trigger:
4
4
pull_request :
5
5
branches : ["master"]
6
6
7
- timeout : " 75" # minutes
8
- machine : " L4_X_2"
7
+ timeout : " 55" # minutes
9
8
parametrize :
10
9
matrix : {}
11
10
include :
12
- # note that this is setting also all oldest requirements which is linked to Torch == 2.0
11
+ # note that this is setting also all oldest requirements which is linked to Torch == 2.1
13
12
- image : " pytorchlightning/pytorch_lightning:base-cuda12.1.1-py3.10-torch2.1"
14
13
PACKAGE_NAME : " pytorch"
15
- - image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3-py3.12-torch2.7"
14
+ machine : " A100_X_2"
15
+ - image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3-py3.12-torch2.8"
16
16
PACKAGE_NAME : " pytorch"
17
+ machine : " L4_X_2"
17
18
# - image: "pytorchlightning/pytorch_lightning:base-cuda12.6.3-py3.12-torch2.7"
18
19
# PACKAGE_NAME: "pytorch"
19
- - image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3-py3.12-torch2.7 "
20
+ - image : " pytorchlightning/pytorch_lightning:base-cuda12.6.3-py3.12-torch2.8 "
20
21
PACKAGE_NAME : " lightning"
22
+ machine : " L4_X_2"
21
23
exclude : []
22
24
23
25
env :
30
32
python --version
31
33
pip --version
32
34
pip install -q fire wget packaging
35
+ pip list
33
36
set -ex
34
37
35
38
CUDA_VERSION="${image##*cuda}" # Remove everything up to and including "cuda"
@@ -40,12 +43,15 @@ run: |
40
43
echo "Torch URL: ${TORCH_URL}"
41
44
COVERAGE_SOURCE=$(python -c 'n = "$(PACKAGE_NAME)" ; print(dict(fabric="pytorch_lightning").get(n, n))')
42
45
echo "collecting coverage for: ${COVERAGE_SOURCE}"
46
+ TORCH_VER=$(python -c "import torch; print(torch.__version__.rsplit('.', 1)[0])")
43
47
44
48
if [ "${TORCH_VER}" == "2.1" ]; then
45
- recho "Set oldest versions"
46
- cd requirements/pytorch
49
+ echo "Set oldest versions"
50
+ pip uninstall -y deepspeed
47
51
pip install -U "lightning-utilities[cli]"
52
+ cd requirements/pytorch
48
53
python -m lightning_utilities.cli requirements set-oldest --req_files "['base.txt', 'extra.txt', 'strategies.txt', 'examples.txt']"
54
+ python -m lightning_utilities.cli requirements prune-pkgs --packages deepspeed --req_files strategies.txt
49
55
cd ../..
50
56
pip install "cython<3.0" wheel # for compatibility
51
57
fi
@@ -108,6 +114,7 @@ run: |
108
114
export PL_RUN_STANDALONE_TESTS=1
109
115
wget https://raw.githubusercontent.com/Lightning-AI/utilities/main/scripts/run_standalone_tests.sh
110
116
bash ./run_standalone_tests.sh "tests_pytorch"
117
+ export PL_RUN_STANDALONE_TESTS=0
111
118
112
119
echo "Testing: PyTorch standalone tasks"
113
120
cd tests_pytorch/
0 commit comments