Skip to content

Commit aac94be

Browse files
authored
[docs] Fix torchrun command argument order in docs (#13181)
Fix torchrun command argument order in docs
1 parent 1f6ac1c commit aac94be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/en/training/distributed_inference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ if __name__ == "__main__":
111111
Call `torchrun` to run the inference script and use the `--nproc_per_node` argument to set the number of GPUs to use.
112112

113113
```bash
114-
torchrun run_distributed.py --nproc_per_node=2
114+
torchrun --nproc_per_node=2 run_distributed.py
115115
```
116116

117117
## device_map

0 commit comments

Comments
 (0)