Skip to content

Commit 05cbe36

Browse files
committed
Update base for redo rank -> trainer_rank doc fix on "Rollback ddp_tutorial fix"
Summary: #1618 was merged unintentionally before all the cmts were resolved. Also did a minior fix to skip demo parallel when ngpus is < 4 Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
1 parent 44281d1 commit 05cbe36

File tree

1 file changed

+1
-1
lines changed
  • advanced_source/rpc_ddp_tutorial

1 file changed

+1
-1
lines changed

advanced_source/rpc_ddp_tutorial/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def run_worker(rank, world_size):
141141
for trainer_rank in [0, 1]:
142142
trainer_name = "trainer{}".format(trainer_rank)
143143
fut = rpc.rpc_async(
144-
trainer_name, _run_trainer, args=(remote_emb_module, trainer_rank)
144+
trainer_name, _run_trainer, args=(remote_emb_module, rank)
145145
)
146146
futs.append(fut)
147147

0 commit comments

Comments
 (0)