def teardown(self) -> None:
        """This method is called to teardown the training process.

        It is the right place to release memory and free other resources.

        """
        self.precision.teardown()
        assert self.accelerator is not None
        self.accelerator.teardown()
        self.checkpoint_io.teardown()
This method is called to teardown the training process.

        It is the right place to release memory and free other resources.

        
src/lightning/fabric/strategies/strategy.py