Deprecate the BasePlugin
#8988
Labels
deprecation
Includes a deprecation
design
Includes a design discussion
feature
Is an improvement or enhancement
help wanted
Open to be worked on
refactor
Milestone
Uh oh!
There was an error while loading. Please reload this page.
🚀 Feature
Deprecate the
BasePlugin
interfacehttps://github.com/PyTorchLightning/pytorch-lightning/blob/master/pytorch_lightning/plugins/base_plugin.py
cc @four4fish
Motivation
We are auditing the Lightning components and APIs to assess opportunities for improvements:
The BasePlugin initially started out as a unifying interface for the training type and precision plugins in lightning. however, both the training type and precision plugins have since evolved to be much broader in scope. almost all the new functionality has been added directly to these classes. it no longer makes sense to have a joint interface across these two classes, especially as we seek to evolve these independently.
Rather, the trend we're seeing is to have much narrower interfaces for specific functionality. Examples here are:
Upcoming:
Longer term, a promising direction is that the training type plugin (or whatever its evolution is) acts as a composition of components implementing these interfaces
Pitch
@awaelchli @tchaton @SeanNaren @justusschock as the plugin API is still in beta, does the 2 minor version cadence for deprecations still apply?
Alternatives
Additional context
If you enjoy Lightning, check out our other projects! ⚡
Metrics: Machine learning metrics for distributed, scalable PyTorch applications.
Flash: The fastest way to get a Lightning baseline! A collection of tasks for fast prototyping, baselining, finetuning and solving problems with deep learning
Bolts: Pretrained SOTA Deep Learning models, callbacks and more for research and production with PyTorch Lightning and PyTorch
Lightning Transformers: Flexible interface for high performance research using SOTA Transformers leveraging Pytorch Lightning, Transformers, and Hydra.
The text was updated successfully, but these errors were encountered: