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
On this page
Latest version 2.6.6, released September 10, 2026.
Its 2.0.0 release requires Python 3.8 or later. Python end of life dates.
lightning 2.0.0 breaking changes
- Removed
The PL_FAULT_TOLERANT_TRAINING flag no longer enables fault tolerance. Use the OnExceptionCheckpoint callback instead. github.com - Removed
Lightning 2.0 no longer supports PyTorch 1.10. Upgrade PyTorch to a supported version. github.com - Removed
Lightning 2.0 supports Python 3.8 and later. Upgrade Python if you run 3.7. github.com - Removed
accumulate_grad_batches
Passing a dict to accumulate_grad_batches is no longer supported. Pass a GradientAccumulationScheduler callback instead. github.com - Removed
amp_backend
The apex backend was removed. Use precision="16-mixed" instead. github.com - Removed
amp_level
The Apex-only argument was removed along with the apex backend. github.com - Removed
auto_lr_find
The argument was removed. Use the Tuner class with lr_find instead. github.com - Removed
auto_scale_batch_size
The argument was removed. Use the Tuner class with scale_batch_size instead. github.com - Removed
auto_select_gpus
The argument was removed. Use devices="auto" or the find_usable_cuda_devices utility. github.com - Removed
DDPFullyShardedStrategy
The Fairscale strategy was removed. Use the native FSDPStrategy. github.com - Removed
DDPShardedStrategy
The Fairscale strategies were removed. Use the native FSDPStrategy. github.com - Removed
dp
The dp strategy was removed. Use strategy="ddp" for multi-GPU training. github.com - Removed
gpus
Use accelerator and devices instead. github.com - Removed
ipus
Use accelerator and devices instead. github.com - Removed
LightningLite
LightningLite was removed. Use Lightning Fabric instead. github.com - Removed
move_metrics_to_cpu
The argument was removed. Manage metric device placement yourself. github.com - Removed
multiple_trainloader_mode
The Trainer argument was removed. Wrap the loaders in CombinedLoader with a mode instead. github.com - Removed
num_processes
Use accelerator and devices instead. github.com - Removed
resume_from_checkpoint
The argument was removed. Pass ckpt_path to fit, test or other trainer methods. github.com - Removed
test_step_end
The hook was removed. Use on_test_batch_end instead. github.com - Removed
tpu_cores
Use accelerator and devices instead. github.com - Removed
track_grad_norm
The argument was removed. Call grad_norm from on_before_optimizer_step instead. github.com - Removed
Trainer.add_argparse_args
Trainer.add_argparse_args was removed. Use LightningCLI or your own argparse setup. github.com - Removed
Trainer.from_argparse_args
Trainer.from_argparse_args was removed. Use LightningCLI or pass parsed args to Trainer directly. github.com - Removed
trainer.reset_*_dataloader
The reset_*_dataloader methods were removed. Use reload_dataloaders_every_n_epochs instead. github.com - Removed
Trainer.tune
The method was removed. Create a Tuner from the Trainer and call its methods. github.com - 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 - 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 - Removed
truncated_bptt_steps
TBPTT support was removed from the framework. Implement it yourself using manual optimization. github.com - Removed
validation_step_end
The hook was removed. Use on_validation_batch_end instead. github.com - Renamed
replace_sampler_ddp
The Trainer argument was renamed. Use use_distributed_sampler instead. github.com - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
lightning.app.cli.lightning_cli.ver
Was module lightning.app.__version__; now module lightning.__version__. pypi.org - 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 - 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 - 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 - 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 - 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 - Signature changed
lightning.app.utilities.packaging.lightning_utils.version
Was version; now module lightning.__version__. pypi.org - 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 - 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 - 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 - 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 - 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 - 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
And 97 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The 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.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.