|
| 1 | +.. list-table:: reg. user 2.0 |
| 2 | + :widths: 40 40 20 |
| 3 | + :header-rows: 1 |
| 4 | + |
| 5 | + * - If |
| 6 | + - Then |
| 7 | + - Ref |
| 8 | + |
| 9 | + * - used PyTorch 3.11 |
| 10 | + - upgrade to PyTorch 2.1 or higher |
| 11 | + - `PR18691`_ |
| 12 | + |
| 13 | + * - called ``self.trainer.model.parameters()`` in ``LightningModule.configure_optimizers()`` when using FSDP |
| 14 | + - On PyTorch 2.0+, call ``self.parameters()`` from now on |
| 15 | + - `PR17309`_ |
| 16 | + |
| 17 | + * - used ``Trainer(accelerator="tpu", devices=[i])"`` to select the 1-based TPU core index |
| 18 | + - the index is now 0-based |
| 19 | + - `PR17227`_ |
| 20 | + |
| 21 | + * - used ``torch_xla < 1.13`` |
| 22 | + - upgrade to ``torch_xla >= 1.13`` |
| 23 | + - `PR17368`_ |
| 24 | + |
| 25 | + * - used ``trainer.num_val_batches`` to get the total size of all validation dataloaders |
| 26 | + - use ``sum(trainer.num_val_batches)`` |
| 27 | + - `PR18441`_ |
| 28 | + |
| 29 | + * - used ``trainer.num_test_batches`` to get the total size of all test dataloaders |
| 30 | + - use ``sum(trainer.num_test_batches)`` |
| 31 | + - `PR18441`_ |
| 32 | + |
| 33 | + * - used ``trainer.num_sanity_val_batches`` to get the total size of all validation dataloaders for sanity checking |
| 34 | + - use ``sum(trainer.num_sanity_val_batches)`` |
| 35 | + - `PR18441`_ |
| 36 | + |
| 37 | + * - used ``Trainer(devices="auto")`` to auto-select all available GPUs in a Jupyter notebook |
| 38 | + - use ``Trainer(devices=-1)`` |
| 39 | + - `PR18291`_ |
| 40 | + |
| 41 | + * - used ``Trainer(devices="auto")`` to auto-select all available GPUs in a Jupyter notebook |
| 42 | + - use ``Trainer(devices=-1)`` |
| 43 | + - `PR18291`_ |
| 44 | + |
| 45 | + * - ``pip install lightning`` to install ``lightning.app`` dependencies |
| 46 | + - use ``pip install lightning[app]`` if you need ``lightning.app`` |
| 47 | + - `PR18386`_ |
| 48 | + |
| 49 | + |
| 50 | +.. _pr18691: https://github.com/Lightning-AI/lightning/pull/18691 |
| 51 | +.. _pr16579: https://github.com/Lightning-AI/lightning/pull/16579 |
| 52 | +.. _pr17309: https://github.com/Lightning-AI/lightning/pull/17309 |
| 53 | +.. _pr17227: https://github.com/Lightning-AI/lightning/pull/17227 |
| 54 | +.. _pr17368: https://github.com/Lightning-AI/lightning/pull/17368 |
| 55 | +.. _pr18441: https://github.com/Lightning-AI/lightning/pull/18441 |
| 56 | +.. _pr18291: https://github.com/Lightning-AI/lightning/pull/18291 |
| 57 | +.. _pr18386: https://github.com/Lightning-AI/lightning/pull/18386 |
0 commit comments