Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix nnodes in the doc of ddp training. #1462

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/en/common_usage/distributed_training.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ On the first machine:

```bash
python -m torch.distributed.launch \
--nnodes 8 \
--nnodes 2 \
--node_rank 0 \
--master_addr 127.0.0.1 \
--master_port 29500 \
Expand All @@ -38,9 +38,9 @@ On the second machine:

```bash
python -m torch.distributed.launch \
--nnodes 8 \
--nnodes 2 \
--node_rank 1 \
--master_addr 127.0.0.1 \
--master_addr "ip_of_the_first_machine" \
--master_port 29500 \
--nproc_per_node=8 \
examples/distributed_training.py --launcher pytorch
Expand Down
6 changes: 3 additions & 3 deletions docs/zh_cn/common_usage/distributed_training.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CUDA_VISIBLE_DEVICES=0,3 python -m torch.distributed.launch --nproc_per_node=2 e

```bash
python -m torch.distributed.launch \
--nnodes 8 \
--nnodes 2 \
--node_rank 0 \
--master_addr 127.0.0.1 \
--master_port 29500 \
Expand All @@ -38,9 +38,9 @@ python -m torch.distributed.launch \

```bash
python -m torch.distributed.launch \
--nnodes 8 \
--nnodes 2 \
--node_rank 1 \
--master_addr 127.0.0.1 \
--master_addr "ip_of_the_first_machine" \
--master_port 29500 \
--nproc_per_node=8 \
examples/distributed_training.py --launcher pytorch
Expand Down
Loading