pytorch-lightning
pytorch-lightning copied to clipboard
[TPU] Add Trainer support for PyTorch XLA FSDP
Implements Pytorch XLA FSDP for TPUs. This PR is based on https://github.com/Lightning-AI/lightning/pull/17421, but focuses only on Trainer related changes. Use the XLAFSDPStrategy to use FSDP on TPUs.
Fixes https://github.com/Lightning-AI/lightning/issues/13209
This issue was resolved in the 1.2 update.