23
23
# how much time to give 'run always even if cancelled tasks' before stopping them
24
24
cancelTimeoutInMinutes : 2
25
25
26
- pool : dsvm -spot-pool
26
+ pool : gridai -spot-pool
27
27
28
28
# strategy:
29
29
# matrix:
@@ -58,25 +58,31 @@ jobs:
58
58
export GIT_TERMINAL_PROMPT=1
59
59
#sudo apt-get install -y cmake
60
60
# python -m pip install "pip==20.1"
61
- pip install --requirement requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html
61
+ pip install --requirement requirements.txt
62
62
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'fairscale' not in line] ; open(fname, 'w').writelines(lines)"
63
63
python -c "fname = 'requirements/extra.txt' ; lines = [line for line in open(fname).readlines() if 'horovod' not in line] ; open(fname, 'w').writelines(lines)"
64
64
pip install --requirement ./requirements/devel.txt --upgrade-strategy only-if-needed
65
65
pip install git+https://$(AUTH_TOKEN)@github.com/PyTorchLightning/[email protected] --no-cache-dir
66
66
pip list
67
67
displayName: 'Install dependencies'
68
68
69
- - script : |
69
+ - bash : |
70
70
python tests/collect_env_details.py
71
+ python -c "import torch ; mgpu = torch.cuda.device_count() ; assert mgpu >= 2, f'GPU: {mgpu}'"
71
72
displayName: 'Env details'
72
73
74
+ # todo: require proper fix in docker image
75
+ - bash : |
76
+ pip install torchtext==0.7 -U
77
+ displayName: 'HotFix'
78
+
73
79
- bash : |
74
80
wget https://pl-public-data.s3.amazonaws.com/legacy/checkpoints.zip -P legacy/
75
81
unzip -o legacy/checkpoints.zip -d legacy/
76
82
ls -l legacy/checkpoints/
77
83
displayName: 'Get legacy checkpoints'
78
84
79
- - script : |
85
+ - bash : |
80
86
python -m coverage run --source pytorch_lightning -m pytest pytorch_lightning tests -v --durations=50
81
87
displayName: 'Testing: standard'
82
88
@@ -90,12 +96,14 @@ jobs:
90
96
codecov --token=$(CODECOV_TOKEN) --flags=gpu,pytest --name="GPU-coverage" --env=linux,azure
91
97
displayName: 'Statistics'
92
98
93
- - script : |
94
- python -m pytest benchmarks pl_examples -v --maxfail=2 --durations=0
95
- displayName: 'Testing: extended'
96
-
97
- - script : |
98
- python setup.py install --user --quiet
99
- bash pl_examples/run_ddp-example.sh
100
- pip uninstall -y pytorch-lightning
101
- displayName: 'Examples'
99
+ - bash : |
100
+ python -m pytest benchmarks -v --maxfail=2 --durations=0
101
+ displayName: 'Testing: benchmarks'
102
+
103
+ # todo: put this back just when TorchVision can download datasets
104
+ # - bash: |
105
+ # python -m pytest pl_examples -v --maxfail=2 --durations=0
106
+ # python setup.py install --user --quiet
107
+ # bash pl_examples/run_ddp-example.sh
108
+ # pip uninstall -y pytorch-lightning
109
+ # displayName: 'Examples'
0 commit comments