Migrating to PyTorch Lightning 2.6.1
Version 2.6.1 introduces 1 breaking change. This guide details how to update your code.
Released: 1/30/2026
1
Breaking Changes
1
Migration Steps
13
Affected Symbols
⚠️ Check Your Code
If you use any of these symbols, you need to read this guide:
LightningModule.freezeLightningModule.unfreezeto_torchscriptsave_hyperparametersLightningDataModule.load_from_checkpointModelParallelStrategytorch.compileStochasticWeightAveraging_generate_seed_sequence_samplingThroughputMonitorFabric.loadFabric.load_rawDistributedSamplerWrapperBreaking Changes
●Issue #1
Removed support for Python 3.9. Users must upgrade to Python 3.10 or newer.
Migration Steps
- 1If you rely on Python 3.9, upgrade your environment to Python 3.10 or newer.
Release Summary
This patch introduces method chaining for freezing/unfreezing modules and adds litlogger integration. It also removes support for Python 3.9 and fixes several bugs related to checkpointing, hyperparameter saving, and distributed sampling.
Need More Details?
View the full release notes and all changes for PyTorch Lightning 2.6.1.
View Full Changelog