Skip to content

Commit

Permalink
fixed ip address typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fluder-Paradyne committed Oct 29, 2023
1 parent 217faaf commit 03bb2c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/multigpu_remote_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def launch_train(*args):
num_processes = torch.cuda.device_count()
print(f"Device count: {num_processes}")
with patch_environment(
world_size=num_processes, master_addr="127.0.01", master_port="29500", mixed_precision=args[1].mixed_precision
world_size=num_processes, master_addr="127.0.0.1", master_port="29500", mixed_precision=args[1].mixed_precision
):
launcher = PrepareForLaunch(training_function, distributed_type="MULTI_GPU")
torch.multiprocessing.start_processes(launcher, args=args, nprocs=num_processes, start_method="spawn")
Expand Down
2 changes: 1 addition & 1 deletion src/accelerate/launchers.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def debug_launcher(function, args=(), num_processes=2):
# process here (the other ones will be set be the launcher).
with patch_environment(
world_size=num_processes,
master_addr="127.0.01",
master_addr="127.0.0.1",
master_port="29500",
accelerate_mixed_precision="no",
accelerate_debug_rdv_file=tmp_file.name,
Expand Down

0 comments on commit 03bb2c5

Please sign in to comment.