Skip to content

Update docs regarding deprecation window #15089

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

Merged
merged 1 commit into from
Oct 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/source-pytorch/versioning.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ For API removal, renaming or other forms of backwards-incompatible changes, the
#. A deprecation process is initiated at a minor version ``X``, producing a deprecation warning at runtime and in the documentation.
#. The deprecated API remains unchanged during the deprecation phase for two minor versions.
#. The breaking change takes effect at a minor version ``X+2``.
#. From version ``X+2`` onward, the deprecation warning gets converted into a helpful error, which will remain as long as possible.

The ``X+2`` rule is a recommendation and not a strict requirement. Shorter or longer deprecation cycles may apply to some cases. In the past, DDP2 was removed without a deprecation process because the feature was broken and unusable beyond fixing as discussed in `#12584 <https://github.com/Lightning-AI/lightning/issues/12584>`_. Also, `#10410 <https://github.com/Lightning-AI/lightning/issues/10410>`_ is an example that a longer deprecation applied to. We deprecated the accelerator arguments, such as ``Trainer(gpus=...)``, in 1.7, however, because the APIs were so core that they would impact almost all use cases, we decided not to introduce the breaking change until 2.0.

Expand Down