Skip to content

Commit 9744e80

Browse files
authored
Merge branch 'master' into len/indexbatchsampler
2 parents df93022 + b1a7b7e commit 9744e80

37 files changed

+610
-585
lines changed

.github/workflows/ci_test-base.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
run: |
3434
brew install libomp # https://github.com/pytorch/pytorch/issues/20030
3535
36+
- name: Weekly reset caching
37+
run: echo "::set-output name=period::$(python -c 'import time ; days = time.time() / 60 / 60 / 24 ; print(int(days / 7))' 2>&1)"
38+
id: times
39+
3640
# Note: This uses an internal pip API and may not always work
3741
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
3842
- name: Get pip cache
@@ -44,9 +48,9 @@ jobs:
4448
uses: actions/cache@v2
4549
with:
4650
path: ${{ steps.pip-cache.outputs.dir }}
47-
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ hashFiles('requirements.txt') }}
51+
key: ${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-py${{ matrix.python-version }}-${{ matrix.requires }}-${{ hashFiles('requirements.txt') }}
4852
restore-keys: |
49-
${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.requires }}-
53+
${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-py${{ matrix.python-version }}-${{ matrix.requires }}-
5054
5155
- name: Install dependencies
5256
run: |

.github/workflows/ci_test-full.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
with:
4242
python-version: ${{ matrix.python-version }}
4343

44+
- name: Weekly reset caching
45+
run: echo "::set-output name=period::$(python -c 'import time ; days = time.time() / 60 / 60 / 24 ; print(int(days / 7))' 2>&1)"
46+
id: times
47+
4448
- name: Update pip
4549
run: |
4650
# needed for `pip cache` command
@@ -87,9 +91,9 @@ jobs:
8791
uses: actions/cache@v2
8892
with:
8993
path: ${{ steps.pip-cache.outputs.dir }}
90-
key: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.release }}-${{ matrix.requires }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements/extra.txt') }}
94+
key: ${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-py${{ matrix.python-version }}-${{ matrix.release }}-${{ matrix.requires }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements/extra.txt') }}
9195
restore-keys: |
92-
${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.release }}-${{ matrix.requires }}-
96+
${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-py${{ matrix.python-version }}-${{ matrix.release }}-${{ matrix.requires }}-
9397
9498
- name: Pull checkpoints from S3
9599
run: |

.github/workflows/ci_test-mnodes.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,19 @@ jobs:
6565
with:
6666
python-version: ${{ matrix.python-version }}
6767

68+
- name: Weekly reset caching
69+
run: echo "::set-output name=period::$(python -c 'import time ; days = time.time() / 60 / 60 / 24 ; print(int(days / 7))' 2>&1)"
70+
id: times
71+
6872
# Note: This uses an internal pip API and may not always work
6973
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
7074
- name: Cache pip
7175
uses: actions/cache@v2
7276
with:
7377
path: ~/.cache/pip
74-
key: ${{ runner.os }}-pip-multi-node
78+
key: ${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-multi-node
7579
restore-keys: |
76-
${{ runner.os }}-pip-
80+
${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-
7781
7882
- name: Install dependencies
7983
run: |

.github/workflows/docs-checks.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,19 @@ jobs:
2929
with:
3030
python-version: 3.7
3131

32+
- name: Weekly reset caching
33+
run: echo "::set-output name=period::$(python -c 'import time ; days = time.time() / 60 / 60 / 24 ; print(int(days / 7))' 2>&1)"
34+
id: times
35+
3236
# Note: This uses an internal pip API and may not always work
3337
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
3438
- name: Cache pip
3539
uses: actions/cache@v2
3640
with:
3741
path: ~/.cache/pip
38-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
42+
key: ${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-${{ hashFiles('requirements.txt') }}
3943
restore-keys: |
40-
${{ runner.os }}-pip-
44+
${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-
4145
4246
- name: Install dependencies
4347
run: |

.github/workflows/release-pypi.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,23 @@ jobs:
8787
needs: [build-package, publish-package]
8888
steps:
8989
- uses: actions/checkout@v2
90+
9091
- uses: actions/setup-python@v2
9192
with:
9293
python-version: 3.7
94+
95+
- name: Weekly reset caching
96+
run: echo "::set-output name=period::$(python -c 'import time ; days = time.time() / 60 / 60 / 24 ; print(int(days / 7))' 2>&1)"
97+
id: times
98+
9399
# Note: This uses an internal pip API and may not always work
94100
# https://github.com/actions/cache/blob/master/examples.md#multiple-oss-in-a-workflow
95101
- name: Cache pip
96102
uses: actions/cache@v2
97103
with:
98104
path: ~/.cache/pip
99-
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
100-
restore-keys: ${{ runner.os }}-pip-
105+
key: ${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-${{ hashFiles('requirements.txt') }}
106+
restore-keys: ${{ runner.os }}-pip-td${{ steps.times.outputs.period }}-
101107

102108
- name: Install dependencies
103109
run: |

CHANGELOG.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
1818
- Added LightningCLI support for config files on object stores ([#7521](https://github.com/PyTorchLightning/pytorch-lightning/pull/7521))
1919

2020

21+
- Added `ModelPruning(prune_on_train_epoch_end=True|False)` to choose when to apply pruning ([#7704](https://github.com/PyTorchLightning/pytorch-lightning/pull/7704))
22+
23+
2124
- Added support for checkpointing based on a provided time interval during training ([#7515](https://github.com/PyTorchLightning/pytorch-lightning/pull/7515))
2225

2326

@@ -44,6 +47,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
4447
- Added `__len__` to `IndexBatchSamplerWrapper` ([#7681](https://github.com/PyTorchLightning/pytorch-lightning/pull/7681))
4548

4649

50+
- Added `should_rank_save_checkpoint` property to Training Plugins ([#7684](https://github.com/PyTorchLightning/pytorch-lightning/pull/7684))
51+
52+
4753
### Changed
4854

4955
- Changed calling of `untoggle_optimizer(opt_idx)` out of the closure function ([#7563](https://github.com/PyTorchLightning/pytorch-lightning/pull/7563)
@@ -59,14 +65,16 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5965

6066
- Changed `clip_grad_norm` to use `torch.nn.utils.clip_grad_norm_` ([#7025](https://github.com/PyTorchLightning/pytorch-lightning/pull/7025))
6167

68+
69+
- Validation is now always run inside the training epoch scope ([#7357](https://github.com/PyTorchLightning/pytorch-lightning/pull/7357))
70+
71+
6272
- Refactored Loops
6373
* Moved attributes `global_step`, `current_epoch`, `max/min_steps`, `max/min_epochs`, `batch_idx`, and `total_batch_idx` to TrainLoop ([#7437](https://github.com/PyTorchLightning/pytorch-lightning/pull/7025))
6474
* Refactored result handling in training loop ([#7506](https://github.com/PyTorchLightning/pytorch-lightning/pull/7506))
6575
* Moved attributes `hiddens` and `split_idx` to TrainLoop ([#7507](https://github.com/PyTorchLightning/pytorch-lightning/pull/7507))
6676
* Refactored the logic around manual and automatic optimization inside the optimizer loop ([#7526](https://github.com/PyTorchLightning/pytorch-lightning/pull/7526))
6777

68-
- `DataModule`s now avoid duplicate `{setup,teardown,prepare_data}` calls for the same stage ([#7238](https://github.com/PyTorchLightning/pytorch-lightning/pull/7238))
69-
7078

7179
- Moved `ignore_scalar_return_in_dp` warning suppression to the DataParallelPlugin class ([#7421](https://github.com/PyTorchLightning/pytorch-lightning/pull/7421/))
7280

@@ -126,10 +134,15 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
126134

127135
### Fixed
128136

137+
- Fixed ambiguous warning when both overfit and train dataloader shuffling are enabled ([#7685](https://github.com/PyTorchLightning/pytorch-lightning/pull/7685))
138+
129139
- Fixed dataloaders are not reset when tuning the model ([#7566](https://github.com/PyTorchLightning/pytorch-lightning/pull/7566))
130140

131141

132-
- Fixed parsing of multiple training dataloaders ([#7433](https://github.com/PyTorchLightning/pytorch-lightning/pull/7433))
142+
- Fixed global step update when the epoch is skipped ([#7677](https://github.com/PyTorchLightning/pytorch-lightning/pull/7677))
143+
144+
145+
- Fixed training loop total batch counter when accumulate grad batches was enabled ([#7692](https://github.com/PyTorchLightning/pytorch-lightning/pull/7692))
133146

134147

135148
- Fixed broadcasting in multi-node, multi-gpu DDP using torch 1.7 ([#7592](https://github.com/PyTorchLightning/pytorch-lightning/pull/7592))
@@ -138,13 +151,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
138151
- Fixed `ProgressBar` pickling after calling `trainer.predict` ([#7608](https://github.com/PyTorchLightning/pytorch-lightning/pull/7608))
139152

140153

141-
- Fixed recursive passing of `wrong_type` keyword argument in `pytorch_lightning.utilities.apply_to_collection` ([#7433](https://github.com/PyTorchLightning/pytorch-lightning/pull/7433))
154+
- Fixed print errors in `ProgressBar` when `trainer.fit` is not called ([#7674](https://github.com/PyTorchLightning/pytorch-lightning/pull/7674))
142155

143156

144-
- Fixed setting correct `DistribType` for `ddp_cpu` (spawn) backend ([#7492](https://github.com/PyTorchLightning/pytorch-lightning/pull/7492))
157+
## [1.3.2] - 2021-05-18
145158

159+
### Changed
146160

147-
- Fixed print errors in `ProgressBar` when `trainer.fit` is not called ([#7674](https://github.com/PyTorchLightning/pytorch-lightning/pull/7674))
161+
- `DataModule`s now avoid duplicate `{setup,teardown,prepare_data}` calls for the same stage ([#7238](https://github.com/PyTorchLightning/pytorch-lightning/pull/7238))
162+
163+
### Fixed
164+
165+
- Fixed parsing of multiple training dataloaders ([#7433](https://github.com/PyTorchLightning/pytorch-lightning/pull/7433))
166+
- Fixed recursive passing of `wrong_type` keyword argument in `pytorch_lightning.utilities.apply_to_collection` ([#7433](https://github.com/PyTorchLightning/pytorch-lightning/pull/7433))
167+
- Fixed setting correct `DistribType` for `ddp_cpu` (spawn) backend ([#7492](https://github.com/PyTorchLightning/pytorch-lightning/pull/7492))
168+
- Fixed incorrect number of calls to LR scheduler when `check_val_every_n_epoch > 1` ([#7032](https://github.com/PyTorchLightning/pytorch-lightning/pull/7032))
148169

149170

150171
## [1.3.1] - 2021-05-11
@@ -422,9 +443,6 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
422443
* Remove hardcoding of local rank in accelerator connector ([#6878](https://github.com/PyTorchLightning/pytorch-lightning/pull/6878))
423444

424445

425-
- Fixed incorrect number of calls to LR scheduler when `check_val_every_n_epoch > 1` ([#7032](https://github.com/PyTorchLightning/pytorch-lightning/pull/7032))
426-
427-
428446
## [1.2.7] - 2021-04-06
429447

430448
### Fixed

dockers/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ docker image build \
2020
--build-arg PYTORCH_VERSION=1.8 \
2121
.
2222
```
23-
or nightly version from Coda
23+
or nightly version from Conda
2424
```bash
2525
git clone <git-repository>
2626
docker image build \

dockers/base-ipu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
FROM ubuntu:20.04
1616

17-
MAINTAINER PyTorchLightning <https://github.com/PyTorchLightning>
17+
LABEL maintainer="PyTorchLightning <https://github.com/PyTorchLightning>"
1818

1919
ARG PYTHON_VERSION=3.8
2020
ARG PYTORCH_VERSION=1.7

dockers/base-xla/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
FROM google/cloud-sdk:slim
1616

17-
MAINTAINER PyTorchLightning <https://github.com/PyTorchLightning>
17+
LABEL maintainer="PyTorchLightning <https://github.com/PyTorchLightning>"
1818

1919
# CALL: docker image build -t pytorch-lightning:XLA-extras-py3.6 -f dockers/base-xla/Dockerfile . --build-arg PYTHON_VERSION=3.6
2020
# This Dockerfile installs pytorch/xla 3.7 wheels. There are also 3.6 wheels available; see below.

dockers/ipu-ci-runner/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ARG PYTORCH_VERSION=1.7
1717

1818
FROM pytorchlightning/pytorch_lightning:base-ipu-py${PYTHON_VERSION}-torch${PYTORCH_VERSION}
1919

20-
MAINTAINER PyTorchLightning <https://github.com/PyTorchLightning>
20+
LABEL maintainer="PyTorchLightning <https://github.com/PyTorchLightning>"
2121

2222
RUN echo "ALL ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
2323

0 commit comments

Comments
 (0)