File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ def _setup_distributed(self) -> None:
213
213
self ._set_world_ranks ()
214
214
self ._process_group_backend = self ._get_process_group_backend ()
215
215
assert self .cluster_environment is not None
216
- kwargs = {"timeout" : self ._timeout }
216
+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
217
217
if _TORCH_GREATER_EQUAL_2_3 :
218
218
kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
219
219
_init_dist_connection (
Original file line number Diff line number Diff line change @@ -663,7 +663,7 @@ def _setup_distributed(self) -> None:
663
663
self ._set_world_ranks ()
664
664
self ._process_group_backend = self ._get_process_group_backend ()
665
665
assert self .cluster_environment is not None
666
- kwargs = {"timeout" : self ._timeout }
666
+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
667
667
if _TORCH_GREATER_EQUAL_2_3 :
668
668
kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
669
669
_init_dist_connection (
Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ def _setup_distributed(self) -> None:
302
302
self ._set_world_ranks ()
303
303
self ._process_group_backend = self ._get_process_group_backend ()
304
304
assert self .cluster_environment is not None
305
- kwargs = {"timeout" : self ._timeout }
305
+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
306
306
if _TORCH_GREATER_EQUAL_2_3 :
307
307
kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
308
308
_init_dist_connection (
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ def setup_distributed(self) -> None:
200
200
self .set_world_ranks ()
201
201
self ._process_group_backend = self ._get_process_group_backend ()
202
202
assert self .cluster_environment is not None
203
- kwargs = {"timeout" : self ._timeout }
203
+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
204
204
if _TORCH_GREATER_EQUAL_2_3 :
205
205
kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
206
206
_init_dist_connection (
Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ def setup_environment(self) -> None:
260
260
261
261
self ._process_group_backend = self ._get_process_group_backend ()
262
262
assert self .cluster_environment is not None
263
- kwargs = {"timeout" : self ._timeout }
263
+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
264
264
if _TORCH_GREATER_EQUAL_2_3 :
265
265
kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
266
266
_init_dist_connection (
Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ def _setup_distributed(self) -> None:
350
350
self .set_world_ranks ()
351
351
self ._process_group_backend = self ._get_process_group_backend ()
352
352
assert self .cluster_environment is not None
353
- kwargs = {"timeout" : self ._timeout }
353
+ kwargs : dict [ str , Any ] = {"timeout" : self ._timeout }
354
354
if _TORCH_GREATER_EQUAL_2_3 :
355
355
kwargs ["device_id" ] = self .root_device if self .root_device .type != "cpu" else None
356
356
_init_dist_connection (
You can’t perform that action at this time.
0 commit comments