Skip to content

Commit

Permalink
Fix typo size to world_size (#3274)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaochen1111 authored Feb 20, 2025
1 parent 1cedb08 commit 1437a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion intermediate_source/dist_tuto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ the following template.
mp.get_context("spawn")
else:
mp.set_start_method("spawn")
for rank in range(size):
for rank in range(world_size):
p = mp.Process(target=init_process, args=(rank, world_size, run))
p.start()
processes.append(p)
Expand Down

0 comments on commit 1437a21

Please sign in to comment.