diff --git a/src/lightning/fabric/connector.py b/src/lightning/fabric/connector.py index edbfd77721a95..3e1cd8cc46790 100644 --- a/src/lightning/fabric/connector.py +++ b/src/lightning/fabric/connector.py @@ -312,7 +312,8 @@ def _check_device_config_and_set_final_flags(self, devices: Union[List[int], str f" using {accelerator_name} accelerator." ) - def _choose_auto_accelerator(self) -> str: + @staticmethod + def _choose_auto_accelerator() -> str: """Choose the accelerator type (str) based on availability when ``accelerator='auto'``.""" if XLAAccelerator.is_available(): return "tpu"