From 93a6cffa24b0098ab89c20cabec1f0ae8579ecfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20W=C3=A4lchli?= Date: Tue, 1 Nov 2022 11:04:04 +0100 Subject: [PATCH] Lightning 1.8.0 release (#15435) Co-authored-by: Jirka Borovec Co-authored-by: Jirka --- .github/workflows/ci-app-examples.yml | 4 +--- .github/workflows/ci-app-tests.yml | 2 -- .github/workflows/docs-deploy.yml | 2 +- requirements/app/examples.txt | 3 +-- src/lightning_app/CHANGELOG.md | 2 +- src/lightning_app/__setup__.py | 5 +++-- src/lightning_app/__version__.py | 2 +- src/lightning_lite/__version__.py | 2 +- src/pytorch_lightning/CHANGELOG.md | 27 +++++++-------------------- src/pytorch_lightning/__version__.py | 2 +- 10 files changed, 17 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci-app-examples.yml b/.github/workflows/ci-app-examples.yml index 35c748a4da..d05d272401 100644 --- a/.github/workflows/ci-app-examples.yml +++ b/.github/workflows/ci-app-examples.yml @@ -73,8 +73,6 @@ jobs: restore-keys: ${{ runner.os }}-pip-py${{ matrix.python-version }}-${{ matrix.pkg-name }}-${{ matrix.requires }}- - name: Install dependencies - env: # TODO: drop this when we will be using regular releases for testing - PACKAGE_NAME: pytorch run: | pip --version pip install -r requirements/app/devel.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html @@ -88,7 +86,7 @@ jobs: - name: Install Yarn run: npm install -g yarn - - name: Install Lightning as top-level + - name: Install Lightning package env: PACKAGE_NAME: ${{ matrix.pkg-name }} run: pip install -e . diff --git a/.github/workflows/ci-app-tests.yml b/.github/workflows/ci-app-tests.yml index 2449690207..f6f479dd1c 100644 --- a/.github/workflows/ci-app-tests.yml +++ b/.github/workflows/ci-app-tests.yml @@ -82,8 +82,6 @@ jobs: pip list - name: Install dependencies - env: # TODO: drop this when we will be using regular releases for testing - PACKAGE_NAME: pytorch run: | pip install -r requirements/app/devel.txt --quiet --find-links ${TORCH_URL} pip list diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index f11515b4d0..e200329e4b 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -38,7 +38,7 @@ jobs: restore-keys: | ${{ runner.os }}-deploy-docs-pip- - - name: Install dependencies + - name: Install package & dependencies env: FREEZE_REQUIREMENTS: 1 run: | diff --git a/requirements/app/examples.txt b/requirements/app/examples.txt index b3e9285c31..f3e716ce9f 100644 --- a/requirements/app/examples.txt +++ b/requirements/app/examples.txt @@ -1,2 +1 @@ -# TODO: as the package is assumed to be independent we shall be using already released versions -pytorch-lightning @ https://github.com/Lightning-AI/lightning/archive/refs/heads/master.zip +pytorch-lightning>=1.8.0rc1 diff --git a/src/lightning_app/CHANGELOG.md b/src/lightning_app/CHANGELOG.md index c5d1388561..a3c9ae0538 100644 --- a/src/lightning_app/CHANGELOG.md +++ b/src/lightning_app/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## [1.8.0] - 2022-MM-DD +## [1.8.0] - 2022-11-01 ### Added diff --git a/src/lightning_app/__setup__.py b/src/lightning_app/__setup__.py index 55ba6d09fa..af5d7582cd 100644 --- a/src/lightning_app/__setup__.py +++ b/src/lightning_app/__setup__.py @@ -35,8 +35,9 @@ def _prepare_extras() -> Dict[str, Any]: "ui": setup_tools.load_requirements(file_name="ui.txt", **common_args), "test": setup_tools.load_requirements(file_name="test.txt", **common_args), } - extras["dev"] = extras["cloud"] + extras["ui"] + extras["test"] # + extras['docs'] - extras["all"] = extras["cloud"] + extras["ui"] + extras["extra"] = extras["cloud"] + extras["ui"] + extras["dev"] = extras["extra"] + extras["test"] # + extras['docs'] + extras["all"] = extras["dev"] return extras diff --git a/src/lightning_app/__version__.py b/src/lightning_app/__version__.py index 76a9c93fd6..6aaa73b808 100644 --- a/src/lightning_app/__version__.py +++ b/src/lightning_app/__version__.py @@ -1 +1 @@ -version = "1.8.0rc2" +version = "1.8.0" diff --git a/src/lightning_lite/__version__.py b/src/lightning_lite/__version__.py index 76a9c93fd6..6aaa73b808 100644 --- a/src/lightning_lite/__version__.py +++ b/src/lightning_lite/__version__.py @@ -1 +1 @@ -version = "1.8.0rc2" +version = "1.8.0" diff --git a/src/pytorch_lightning/CHANGELOG.md b/src/pytorch_lightning/CHANGELOG.md index f3e1f93d24..52a778873b 100644 --- a/src/pytorch_lightning/CHANGELOG.md +++ b/src/pytorch_lightning/CHANGELOG.md @@ -4,27 +4,8 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). -## [unreleased] - 2022-MM-DD -### Added - -- Added an error message when attempting to launch processes with `python -i` and an interactive-incompatible strategy ([#15293](https://github.com/Lightning-AI/lightning/pull/15293)) - - -### Changed - -- The `NeptuneLogger` now uses `neptune.init_run` instead of the deprecated `neptune.init` to initialize a run ([#15393](https://github.com/Lightning-AI/lightning/pull/15393)) - - -### Fixed - -- Fixed a pickling error when using `RichProgressBar` together with checkpointing ([#15319](https://github.com/Lightning-AI/lightning/pull/15319)) -- Fixed the `RichProgressBar` crashing when used with distributed strategies ([#15376](https://github.com/Lightning-AI/lightning/pull/15376)) -- Fixed an issue with `RichProgressBar` not resetting the internal state for the sanity check progress ([#15377](https://github.com/Lightning-AI/lightning/pull/15377)) -- Fixed an issue with DataLoader re-instantiation when the attribute is an array and the default value of the corresponding argument changed ([#15409](https://github.com/Lightning-AI/lightning/pull/15409)) - - -## [1.8.0] - 2022-MM-DD +## [1.8.0] - 2022-11-01 ### Added @@ -57,6 +38,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Added `inference_mode` flag to Trainer to let users enable/disable inference mode during evaluation ([#15034](https://github.com/Lightning-AI/lightning/pull/15034)) - Added `LightningLite.no_backward_sync` for control over efficient gradient accumulation with distributed strategies ([#14966](https://github.com/Lightning-AI/lightning/pull/14966)) - Added a sanity check that scripts are executed with the `srun` command in SLURM and that environment variables are not conflicting ([#15011](https://github.com/Lightning-AI/lightning/pull/15011)) +- Added an error message when attempting to launch processes with `python -i` and an interactive-incompatible strategy ([#15293](https://github.com/Lightning-AI/lightning/pull/15293)) ### Changed @@ -84,6 +66,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - The `Callback.on_load_checkpoint` now gets the full checkpoint dictionary and the `callback_state` argument was renamed `checkpoint` ([#14835](https://github.com/Lightning-AI/lightning/pull/14835)) - Moved the warning about saving nn.Module in `save_hyperparameters()` to before the deepcopy ([#15132](https://github.com/Lightning-AI/lightning/pull/15132)) - To avoid issues with forking processes, from PyTorch 1.13 and higher, Lightning will directly use the PyTorch NVML-based check for `torch.cuda.device_count` and from PyTorch 1.14 and higher, Lightning will configure PyTorch to use a NVML-based check for `torch.cuda.is_available`. ([#15110](https://github.com/Lightning-AI/lightning/pull/15110), [#15133](https://github.com/Lightning-AI/lightning/pull/15133)) +- The `NeptuneLogger` now uses `neptune.init_run` instead of the deprecated `neptune.init` to initialize a run ([#15393](https://github.com/Lightning-AI/lightning/pull/15393)) ### Deprecated @@ -191,6 +174,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Avoided initializing optimizers during deepspeed inference ([#14944](https://github.com/Lightning-AI/lightning/pull/14944)) - Fixed `LightningCLI` parse_env and description in subcommands ([#15138](https://github.com/Lightning-AI/lightning/pull/15138)) - Fixed an exception that would occur when creating a `multiprocessing.Pool` after importing Lightning ([#15292](https://github.com/Lightning-AI/lightning/pull/15292)) +- Fixed a pickling error when using `RichProgressBar` together with checkpointing ([#15319](https://github.com/Lightning-AI/lightning/pull/15319)) +- Fixed the `RichProgressBar` crashing when used with distributed strategies ([#15376](https://github.com/Lightning-AI/lightning/pull/15376)) +- Fixed an issue with `RichProgressBar` not resetting the internal state for the sanity check progress ([#15377](https://github.com/Lightning-AI/lightning/pull/15377)) +- Fixed an issue with DataLoader re-instantiation when the attribute is an array and the default value of the corresponding argument changed ([#15409](https://github.com/Lightning-AI/lightning/pull/15409)) ## [1.7.7] - 2022-09-22 diff --git a/src/pytorch_lightning/__version__.py b/src/pytorch_lightning/__version__.py index 76a9c93fd6..6aaa73b808 100644 --- a/src/pytorch_lightning/__version__.py +++ b/src/pytorch_lightning/__version__.py @@ -1 +1 @@ -version = "1.8.0rc2" +version = "1.8.0"