---
title: "lightning 2.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each lightning release removed, renamed or changed: 147 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/lightning
last_updated: 2026-12-04
---

# lightning breaking changes

lightning 2.0.0 (March 15, 2023) is its newest release with breaking changes, 147 of them. The first: Removed experimental fault-tolerance support in lightning 2.0.0. Every breaking API change we have recorded in lightning on PyPI: 147 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.6.6`, released September 10, 2026. 

Its 2.0.0 release requires [Python 3.8](https://since.dev/calendar/python/3.8.md) or later. [Python end of life dates](https://since.dev/calendar/python.md).

## lightning 2.0.0 breaking changes

lightning 2.0.0, released March 15, 2023: 147 breaking changes.

- **Removed**  

The PL_FAULT_TOLERANT_TRAINING flag no longer enables fault tolerance. Use the OnExceptionCheckpoint callback instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed**  

Lightning 2.0 no longer supports PyTorch 1.10. Upgrade PyTorch to a supported version. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed**  

Lightning 2.0 supports Python 3.8 and later. Upgrade Python if you run 3.7. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `accumulate_grad_batches`  

Passing a dict to accumulate_grad_batches is no longer supported. Pass a GradientAccumulationScheduler callback instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `amp_backend`  

The apex backend was removed. Use precision="16-mixed" instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `amp_level`  

The Apex-only argument was removed along with the apex backend. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `auto_lr_find`  

The argument was removed. Use the Tuner class with lr_find instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `auto_scale_batch_size`  

The argument was removed. Use the Tuner class with scale_batch_size instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `auto_select_gpus`  

The argument was removed. Use devices="auto" or the find_usable_cuda_devices utility. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `DDPFullyShardedStrategy`  

The Fairscale strategy was removed. Use the native FSDPStrategy. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `DDPShardedStrategy`  

The Fairscale strategies were removed. Use the native FSDPStrategy. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `dp`  

The dp strategy was removed. Use strategy="ddp" for multi-GPU training. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `gpus`  

Use accelerator and devices instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `ipus`  

Use accelerator and devices instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `LightningLite`  

LightningLite was removed. Use Lightning Fabric instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `move_metrics_to_cpu`  

The argument was removed. Manage metric device placement yourself. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `multiple_trainloader_mode`  

The Trainer argument was removed. Wrap the loaders in CombinedLoader with a mode instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `num_processes`  

Use accelerator and devices instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `resume_from_checkpoint`  

The argument was removed. Pass ckpt_path to fit, test or other trainer methods. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `test_step_end`  

The hook was removed. Use on_test_batch_end instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `tpu_cores`  

Use accelerator and devices instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `track_grad_norm`  

The argument was removed. Call grad_norm from on_before_optimizer_step instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `Trainer.add_argparse_args`  

Trainer.add_argparse_args was removed. Use LightningCLI or your own argparse setup. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `Trainer.from_argparse_args`  

Trainer.from_argparse_args was removed. Use LightningCLI or pass parsed args to Trainer directly. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `trainer.reset_*_dataloader`  

The reset\_\*\_dataloader methods were removed. Use reload_dataloaders_every_n_epochs instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `Trainer.tune`  

The method was removed. Create a Tuner from the Trainer and call its methods. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `training_epoch_end`  

The LightningModule \*\_epoch_end hooks were removed. Keep outputs yourself in a list in the \*\_step method and reduce them in the on\_\*\_epoch_end hook. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `training_step_end`  

The hook was removed. Use on_train_batch_end for code that ran at the end of the step. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `truncated_bptt_steps`  

TBPTT support was removed from the framework. Implement it yourself using manual optimization. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Removed** `validation_step_end`  

The hook was removed. Use on_validation_batch_end instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Renamed** `replace_sampler_ddp`  

The Trainer argument was renamed. Use use_distributed_sampler instead. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Behavior changed**  

The Trainer no longer adds the running training loss to the progress bar. Log it explicitly with prog_bar=True to keep it. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Behavior changed** `Trainer.train_dataloader`  

Trainer dataloader properties now match what your dataloader hooks returned, such as a dict, instead of the old wrapped form. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Default changed** `ddp`  

The default for find_unused_parameters is now False. Use strategy="ddp_find_unused_parameters_true" if your model needs it. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Default changed** `Trainer`  

Trainer defaults changed to accelerator, strategy and devices set to auto. Set them explicitly if you relied on the old defaults. [github.com](https://github.com/Lightning-AI/pytorch-lightning/releases/tag/2.0.0)
- **Signature changed** `lightning.app.cli.commands.cp.cp`  

Was def cp(src_path: str, dst_path: str, r: bool = False, recursive: bool = False) -> None; now def cp(src_path: str, dst_path: str, r: bool = False, recursive: bool = False, zip: bool = False) -> None. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.cli.lightning_cli.cp`  

Was def cp(src_path: str, dst_path: str, r: bool = False, recursive: bool = False) -> None; now def cp(src_path: str, dst_path: str, r: bool = False, recursive: bool = False, zip: bool = False) -> None. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.cli.lightning_cli.ver`  

Was module lightning.app.\_\_version\_\_; now module lightning.\_\_version\_\_. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.LightningPlugin.run_job`  

Was def run_job(self, name: str, app_entrypoint: str, env_vars: Optional\[Dict\[str, str\]\] = None) -> str; now def run_job(self, name: str, app_entrypoint: str, env_vars: Dict\[str, str\] = {}) -> str. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.runners.CloudRuntime.load_app_from_file`  

Was @classmethod def load_app_from_file(cls, filepath: str) -> LightningApp; now @classmethod def load_app_from_file(cls, filepath: str, env_vars: Dict\[str, str\] = {}) -> LightningApp. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.runners.load_app_from_file`  

Was def load_app_from_file(filepath: str, raise_exception: bool = False, mock_imports: bool = False) -> LightningApp; now def load_app_from_file(filepath: str, raise_exception: bool = False, mock_imports: bool = False, env_vars: Dict\[str... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.testing.application_testing`  

Was def application_testing(lightning_app_cls: Type\[LightningTestApp\] = LightningTestApp, command_line: List\[str\] = \[\]) -> Any; now def application_testing(lit_app_cls: Type\[LightningTestApp\] = LightningTestApp, command_line: List\[str\] =... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.utilities.load_app.load_app_from_file`  

Was def load_app_from_file(filepath: str, raise_exception: bool = False, mock_imports: bool = False) -> LightningApp; now def load_app_from_file(filepath: str, raise_exception: bool = False, mock_imports: bool = False, env_vars: Dict\[str... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.app.utilities.packaging.lightning_utils.version`  

Was version; now module lightning.\_\_version\_\_. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.Callback.on_before_optimizer_step`  

Was def on_before_optimizer_step(self, trainer: pl.Trainer, pl_module: pl.LightningModule, optimizer: Optimizer, opt_idx: int) -> None; now def on_before_optimizer_step(self, trainer: pl.Trainer, pl_module: pl.LightningModule, optimizer... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.Callback.on_predict_batch_end`  

Was def on_predict_batch_end(self, trainer: pl.Trainer, pl_module: pl.LightningModule, outputs: Any, batch: Any, batch_idx: int, dataloader_idx: int) -> None; now def on_predict_batch_end(self, trainer: pl.Trainer, pl_module... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.Callback.on_predict_batch_start`  

Was def on_predict_batch_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule, batch: Any, batch_idx: int, dataloader_idx: int) -> None; now def on_predict_batch_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.Callback.on_predict_epoch_end`  

Was def on_predict_epoch_end(self, trainer: pl.Trainer, pl_module: pl.LightningModule, outputs: List\[Any\]) -> None; now def on_predict_epoch_end(self, trainer: pl.Trainer, pl_module: pl.LightningModule) -> None. [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.Callback.on_test_batch_end`  

Was def on_test_batch_end(self, trainer: pl.Trainer, pl_module: pl.LightningModule, outputs: Optional\[STEP_OUTPUT\], batch: Any, batch_idx: int, dataloader_idx: int) -> None; now def on_test_batch_end(self, trainer: pl.Trainer, pl_module... [pypi.org](https://pypi.org/project/lightning/2.0.0/)
- **Signature changed** `lightning.Callback.on_test_batch_start`  

Was def on_test_batch_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule, batch: Any, batch_idx: int, dataloader_idx: int) -> None; now def on_test_batch_start(self, trainer: pl.Trainer, pl_module: pl.LightningModule, batch... [pypi.org](https://pypi.org/project/lightning/2.0.0/)

And 97 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
