Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump pytorch-lightning[extra] from 1.9.4 to 2.0.0 in /requirements #1178

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 15, 2023

Bumps pytorch-lightning[extra] from 1.9.4 to 2.0.0.

Release notes

Sourced from pytorch-lightning[extra]'s releases.

Lightning 2.0: Fast, Flexible, Stable

Lightning AI is excited to announce the release of Lightning 2.0 ⚡

Over the last couple of years PyTorch Lightning has become the preferred deep learning framework for researchers and ML developers around the world, with close to 50 million downloads and 18k OSS projects, from top universities to leading labs.

With the help of over 800 contributors, we have added many features and functionalities to make it the most complete research toolkit possible, but some of these changes also introduced issues:

  • API changes to the trainer
  • Trainer code became harder to follow
  • Many integrations made Lightning appear bloated
  • The trainer became harder to customize / takes away what I instead need to tweak / have control over.

To make the research experience better, we are introducing 2.0:

  • No API changes - We commit to backward compatibility in the 2.0 series
  • Simplified abstraction layers, removed legacy functionality, integrations out of the main repo. This improves the project's readability and debugging experience.
  • Introducing Fabric. Scale any PyTorch model with just a few lines of code. Read-on!

Highlights

PyTorch 2.0 and torch.compile

Lightning 2.0 is best friends with PyTorch 2.0. You can torch.compile your LightningModules now!

import torch
import lightning as L
model = LitModel()
This will compile forward and {training,validation,test,predict}_step
compiled_model = torch.compile(model)
trainer = L.Trainer()
trainer.fit(compiled_model)

PyTorch reports that on average, "models runs 43% faster in training on an NVIDIA A100 GPU. At Float32 precision, it runs 21% faster on average and at AMP Precision it runs 51% faster on average" (source). If you want to learn more about torch.compile and how such speedups can be achieved, read the official PyTorch 2.0 blog post.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pytorch-lightning[extra]](https://github.com/Lightning-AI/lightning) from 1.9.4 to 2.0.0.
- [Release notes](https://github.com/Lightning-AI/lightning/releases)
- [Commits](Lightning-AI/pytorch-lightning@1.9.4...2.0.0)

---
updated-dependencies:
- dependency-name: pytorch-lightning[extra]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Packaging and dependencies python Pull requests that update Python code labels Mar 15, 2023
@github-actions github-actions bot added documentation Improvements or additions to documentation scripts Training and evaluation scripts trainers PyTorch Lightning trainers labels Mar 16, 2023
@github-actions github-actions bot added datamodules PyTorch Lightning datamodules testing Continuous integration testing labels Mar 16, 2023
@adamjstewart
Copy link
Collaborator

adamjstewart commented Mar 16, 2023

PyTorch Lightning was renamed to Lightning back in v1.8, but the old package name is still updated on PyPI. The old name is deprecated and may be removed someday. Also, the docs now only document the new name, causing the docs to fail to build. I switched to the new name, which bumps our min lightning version (and radiant-mlhub too), but simplifies the import name and makes things future proof.

Source: Lightning-AI/pytorch-lightning#17095

@adamjstewart adamjstewart added this to the 0.4.1 milestone Mar 16, 2023
@adamjstewart
Copy link
Collaborator

pytorch_lightning type hints are public, but lightning type hints aren't. We can fix that: Lightning-AI/pytorch-lightning#17100

adamjstewart
adamjstewart previously approved these changes Mar 16, 2023
@adamjstewart adamjstewart enabled auto-merge (squash) March 16, 2023 04:16
@adamjstewart adamjstewart merged commit 392d467 into main Mar 16, 2023
@adamjstewart adamjstewart deleted the dependabot/pip/requirements/pytorch-lightning-extra--2.0.0 branch March 16, 2023 16:14
calebrob6 pushed a commit that referenced this pull request Apr 10, 2023
…1178)

* Bump pytorch-lightning[extra] from 1.9.4 to 2.0.0 in /requirements

Bumps [pytorch-lightning[extra]](https://github.com/Lightning-AI/lightning) from 1.9.4 to 2.0.0.
- [Release notes](https://github.com/Lightning-AI/lightning/releases)
- [Commits](Lightning-AI/pytorch-lightning@1.9.4...2.0.0)

---
updated-dependencies:
- dependency-name: pytorch-lightning[extra]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove deprecated features

* pytorch_lightning -> lightning

* bump radiant-mlhub too

* isort fix

* lightning does not yet have public type hints

* More ignores

* blanket ignore

* blanket ignore

* Fix function typo

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
…icrosoft#1178)

* Bump pytorch-lightning[extra] from 1.9.4 to 2.0.0 in /requirements

Bumps [pytorch-lightning[extra]](https://github.com/Lightning-AI/lightning) from 1.9.4 to 2.0.0.
- [Release notes](https://github.com/Lightning-AI/lightning/releases)
- [Commits](Lightning-AI/pytorch-lightning@1.9.4...2.0.0)

---
updated-dependencies:
- dependency-name: pytorch-lightning[extra]
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove deprecated features

* pytorch_lightning -> lightning

* bump radiant-mlhub too

* isort fix

* lightning does not yet have public type hints

* More ignores

* blanket ignore

* blanket ignore

* Fix function typo

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datamodules PyTorch Lightning datamodules dependencies Packaging and dependencies documentation Improvements or additions to documentation python Pull requests that update Python code scripts Training and evaluation scripts testing Continuous integration testing trainers PyTorch Lightning trainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant