From 022ac4ddf6fe4074a7647f58b0bab17e7ac9859a Mon Sep 17 00:00:00 2001 From: Sayak Paul Date: Tue, 24 Feb 2026 16:10:34 +0530 Subject: [PATCH] Fix torchrun command argument order in docs --- docs/source/en/training/distributed_inference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/training/distributed_inference.md b/docs/source/en/training/distributed_inference.md index bdaa2ae8ffff..c9a341df40c5 100644 --- a/docs/source/en/training/distributed_inference.md +++ b/docs/source/en/training/distributed_inference.md @@ -111,7 +111,7 @@ if __name__ == "__main__": Call `torchrun` to run the inference script and use the `--nproc_per_node` argument to set the number of GPUs to use. ```bash -torchrun run_distributed.py --nproc_per_node=2 +torchrun --nproc_per_node=2 run_distributed.py ``` ## device_map