justheuristic %!s(int64=4) %!d(string=hai) anos
pai
achega
de4a95f1a2
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      hivemind/averaging/averager.py

+ 3 - 1
hivemind/averaging/averager.py

@@ -554,7 +554,9 @@ class DecentralizedAverager(mp.Process, ServicerBase):
         self._inner_pipe.send(("_TRIGGER_GET_CURRENT_STATE", future))
         return await future
 
-    def load_state_from_peers(self, wait=True, timeout: Optional[float] = None) -> Optional[Tuple[Any, Sequence[torch.Tensor]]]:
+    def load_state_from_peers(
+        self, wait=True, timeout: Optional[float] = None
+    ) -> Optional[Tuple[Any, Sequence[torch.Tensor]]]:
         """
         Try to download the latest optimizer state one of the existing peer.
         :returns: on success, return a 2-tuple with (metadata, tensors), where