Skip to content

Commit 987663c

Browse files
Fix DS init (#285)
1 parent e23393f commit 987663c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

megatron/initialize.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,7 @@ def _initialize_distributed():
290290
args.local_rank = device
291291
torch.cuda.set_device(device)
292292
# Call the init process
293-
torch.distributed.init_process_group(
294-
backend=args.distributed_backend,
295-
world_size=args.world_size, rank=args.rank)
293+
deepspeed.init_distributed(args.distributed_backend)
296294

297295
# Set the tensor model-parallel, pipeline model-parallel, and
298296
# data-parallel communicators.

0 commit comments

Comments
 (0)