justheuristic 4 năm trước cách đây
mục cha
commit
de4a95f1a2
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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