File tree Expand file tree Collapse file tree 7 files changed +6
-7
lines changed Expand file tree Collapse file tree 7 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ def _setup_distributed(self) -> None:
213213 self ._set_world_ranks ()
214214 self ._process_group_backend = self ._get_process_group_backend ()
215215 assert self .cluster_environment is not None
216- kwargs = {"timeout" : self ._timeout }
216+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
217217 if _TORCH_GREATER_EQUAL_2_3 :
218218 kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
219219 _init_dist_connection (
Original file line number Diff line number Diff line change @@ -663,7 +663,7 @@ def _setup_distributed(self) -> None:
663663 self ._set_world_ranks ()
664664 self ._process_group_backend = self ._get_process_group_backend ()
665665 assert self .cluster_environment is not None
666- kwargs = {"timeout" : self ._timeout }
666+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
667667 if _TORCH_GREATER_EQUAL_2_3 :
668668 kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
669669 _init_dist_connection (
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ def _setup_distributed(self) -> None:
302302 self ._set_world_ranks ()
303303 self ._process_group_backend = self ._get_process_group_backend ()
304304 assert self .cluster_environment is not None
305- kwargs = {"timeout" : self ._timeout }
305+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
306306 if _TORCH_GREATER_EQUAL_2_3 :
307307 kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
308308 _init_dist_connection (
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def setup_distributed(self) -> None:
200200 self .set_world_ranks ()
201201 self ._process_group_backend = self ._get_process_group_backend ()
202202 assert self .cluster_environment is not None
203- kwargs = {"timeout" : self ._timeout }
203+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
204204 if _TORCH_GREATER_EQUAL_2_3 :
205205 kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
206206 _init_dist_connection (
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ def setup_environment(self) -> None:
260260
261261 self ._process_group_backend = self ._get_process_group_backend ()
262262 assert self .cluster_environment is not None
263- kwargs = {"timeout" : self ._timeout }
263+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
264264 if _TORCH_GREATER_EQUAL_2_3 :
265265 kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
266266 _init_dist_connection (
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ def _setup_distributed(self) -> None:
350350 self .set_world_ranks ()
351351 self ._process_group_backend = self ._get_process_group_backend ()
352352 assert self .cluster_environment is not None
353- kwargs = {"timeout" : self ._timeout }
353+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
354354 if _TORCH_GREATER_EQUAL_2_3 :
355355 kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
356356 _init_dist_connection (
You can’t perform that action at this time.
0 commit comments