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

Remove TrainingTypePlugin.on_save and Accelerator.on_save #9023

Merged
merged 3 commits into from
Aug 23, 2021

Conversation

four4fish
Copy link
Contributor

@four4fish four4fish commented Aug 20, 2021

What does this PR do?

Fixes #8987
Double checked none of the plugins overridden on_save()

Does your PR introduce any breaking changes? If yes, please list them.

Removes on_save from TrainingTypePlugin and Accelerator

Before submitting

  • Was this discussed/approved via a GitHub issue? (not for typos and docs)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you make sure to update the documentation with your changes? (if necessary)
  • Did you write any new necessary tests? (not for typos and docs)
  • Did you verify new and existing tests pass locally with your changes?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you update the CHANGELOG? (not for typos, docs, test updates, or internal minor changes/refactorings)

PR review

Anyone in the community is welcome to review the PR.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:

  • Is this pull request ready for review? (if not, please submit in draft mode)
  • Check that all items from Before submitting are resolved
  • Make sure the title is self-explanatory and the description concisely explains the PR
  • Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?

Make sure you had fun coding 🙃

Copy link
Contributor

@ananthsub ananthsub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for picking this up @four4fish !

@PyTorchLightning/core-contributors I'm not sure what the deprecation policies & versioning guarantees are for plugins & accelerators.

the docs say this:

The Plugin API is in beta and subject to change. For help setting up custom plugins/accelerators, please reach out to us at support@pytorchlightning.ai

https://pytorch-lightning.readthedocs.io/en/latest/extensions/plugins.html

Does this mean we can make the change in-place like this?

deprecation policy aside, this PR is what we'll end up doing.

CHANGELOG.md Outdated Show resolved Hide resolved
@ananthsub ananthsub added breaking change Includes a breaking change checkpointing Related to checkpointing refactor design Includes a design discussion labels Aug 20, 2021
@codecov
Copy link

codecov bot commented Aug 20, 2021

Codecov Report

Merging #9023 (49825c7) into master (13e64e6) will decrease coverage by 4%.
The diff coverage is 0%.

@@           Coverage Diff           @@
##           master   #9023    +/-   ##
=======================================
- Coverage      93%     89%    -4%     
=======================================
  Files         175     175            
  Lines       14397   14391     -6     
=======================================
- Hits        13340   12750   -590     
- Misses       1057    1641   +584     

@ananthsub ananthsub added this to the v1.5 milestone Aug 20, 2021
Copy link
Contributor

@ananthsub ananthsub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussing with @carmocca - the plugins & accelerator API is not stable enough yet for it to warrant full backward compatibility. the blast radius of this change is small given none of the framework's implementations are affected. Therefore, I'm in favor of directly removing this.

CHANGELOG.md Outdated Show resolved Hide resolved
@four4fish four4fish changed the title Deprecate TrainingTypePlugin.on_save and Accelerator.on_save Remove TrainingTypePlugin.on_save and Accelerator.on_save Aug 21, 2021
@mergify mergify bot added the ready PRs ready to be merged label Aug 21, 2021
CHANGELOG.md Outdated Show resolved Hide resolved
@awaelchli awaelchli enabled auto-merge (squash) August 21, 2021 22:03
@carmocca carmocca disabled auto-merge August 22, 2021 00:02
@ananthsub ananthsub merged commit c912ebf into Lightning-AI:master Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Includes a breaking change checkpointing Related to checkpointing design Includes a design discussion ready PRs ready to be merged refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate TrainingTypePlugin.on_save
4 participants