Skip to content

Commit

Permalink
Update DDP example in README.md (#6384)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavya01 committed Apr 22, 2024
1 parent ec4b301 commit ec3d137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ If you're using `DistributedDataParallel`, make the following changes:
+import torch_xla.distributed.xla_multiprocessing as xmp
+import torch_xla.distributed.xla_backend

def _mp_fn(rank, world_size):
def _mp_fn(rank):
...

- os.environ['MASTER_ADDR'] = 'localhost'
Expand Down

0 comments on commit ec3d137

Please sign in to comment.