Skip to content

Commit

Permalink
Fixes issue #7774 (#8322)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikegre-google authored Oct 30, 2024
1 parent c9e02e9 commit 8177447
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/perf/ddp.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ import torch_xla.runtime as xr
import torch_xla.distributed.xla_backend

def setup(rank, world_size):
os.environ['MASTER_ADDR'] = 'localhost'
os.environ['MASTER_PORT'] = '12355'
os.environ['PJRT_DEVICE'] = 'TPU'

# initialize the xla process group
dist.init_process_group("xla", rank=rank, world_size=world_size)
Expand Down

0 comments on commit 8177447

Please sign in to comment.