Changes in 2.6.0
PyTorch Lightning
Added
- Added
WeightAveragingcallback that wraps the PyTorchAveragedModelclass (#20545) - Added Torch-Tensorrt integration with
LightningModule(#20808) - Added time-based validation support though
val_check_interval(#21071) - Added attributes to access stopping reason in
EarlyStoppingcallback (#21188) - Added support for variable batch size in
ThroughputMonitor(#20236) - Added
EMAWeightAveragingcallback that wraps Lightning'sWeightAveragingclass (#21260)
Changed
- Expose
weights_onlyargument forTrainer.{fit,validate,test,predict}and lettorchhandle default value (#21072) - Default to
RichProgressBarandRichModelSummaryif the rich package is available. Fallback to TQDMProgressBar and ModelSummary otherwise (#20896) - Add MPS accelerator support for mixed precision (#21209)
Fixed
- Fixed edgecase when
max_trialsis reached inTuner.scale_batch_size(#21187) - Fixed case where
LightningCLIcould not be initialized withtrainer_defaultcontaining callbacks (#21192) - Fixed missing reset when
ModelPruningis applied with lottery ticket hypothesis (#21191) - Fixed preventing recursive symlink creation iwhen
save_last='link'andsave_top_k=-1(#21186) - Fixed
last.ckptbeing created and not linked to another checkpoint (#21244) - Fixed bug that prevented
BackboneFinetuningfrom being used together withLearningRateFinder(#21224) - Fixed
ModelPruningsparsity logging bug that caused incorrect sparsity percentages (#21223) - Fixed
LightningCLIloading of hyperparameters fromckpt_pathfailing for subclass model mode (#21246) - Fixed check the init args only when the given frames are in
__init__method (#21227) - Fixed how
ThroughputMonitorcalculated training time (#21291) - Fixed synchronization of gradients in manual optimization with
DDPStrategy(static_graph=True)(#21251) - Fixed FSDP mixed precision semantics and added user warning (#21361)
Lightning Fabric
Changed
Fixed
Full commit list: 2.5.4 -> 2.5.5
Contributors
We thank all folks who submitted issues, features, fixes and doc changes. It's the only way we can collectively make Lightning ⚡ better for everyone, nice job!
In particular, we would like to thank the authors of the pull-requests above