Using Ray with Pytorch Lightning ================================ .. note:: `Ray Lightning Library `_ will be deprecated in the future! In version 2.4, we introduced :class:`LightningTrainer `, which provides better integration with PyTorch Lightning. Please refer to :ref:`Train a PyTorch Lightning Image Classifier ` to learn how to use `LightningTrainer` for distributed model training.