In this PR we have upgraded the lightning to the 2.1 version in order prepare to the merge to PyTorch 2.1. In particular:
the fabric object is instantiated through hydra.utils.instantiate method; this let a user to modify the fabric object from the config, specifying custom accelerators, callbacks, strategies, devices and precision objects
cli.py now checks for configs. In particular we check that decoupled algorithms run only with DDP strategies
torchmetrics has been updated to the master version
Type of Change
Please select the one relevant option below:
New feature (non-breaking change that adds functionality)
Checklist
Please confirm that the following tasks have been completed:
[x] I have tested my changes locally and they work as expected. (Please describe the tests you performed.)
[x] I have added unit tests for my changes, or updated existing tests if necessary.
[x] I have updated the documentation, if applicable.
[x] I have installed pre-commit and run locally for my code changes.
Thank you for your contribution! Once you have filled out this template, please ensure that you have assigned the appropriate reviewers and that all tests have passed.
Summary
In this PR we have upgraded the
lightning
to the 2.1 version in order prepare to the merge to PyTorch 2.1. In particular:fabric
object is instantiated throughhydra.utils.instantiate
method; this let a user to modify the fabric object from the config, specifying custom accelerators, callbacks, strategies, devices and precision objectscli.py
now checks for configs. In particular we check thatdecoupled
algorithms run only with DDP strategiestorchmetrics
has been updated to the master versionType of Change
Please select the one relevant option below:
Checklist
Please confirm that the following tasks have been completed:
Thank you for your contribution! Once you have filled out this template, please ensure that you have assigned the appropriate reviewers and that all tests have passed.