@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 28028dff2f
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 7, 06:30 UTC

fix(docs): use static rdzv backend in multi-node troubleshooting script (#34784)

Signed-off-by: machov <mv1742@nyu.edu>

Manrique Vargas committed Mar 4, 2026 at 12:15 UTC 28028dff2fed19e0face08a303b86273d954979a
1 file changed +8 -10
docs/usage/troubleshooting.md
+8 -10
@@ -155,26 +155,24 @@ If you are testing with a single node, adjust `--nproc-per-node` to the number o
155 NCCL_DEBUG=TRACE torchrun --nproc-per-node=<number-of-GPUs> test.py
156 ```
157
158 -If you are testing with multi-nodes, adjust `--nproc-per-node` and `--nnodes` according to your setup and set `MASTER_ADDR` to the correct IP address of the master node, reachable from all nodes. Then, run:
158 +If you are testing with multi-nodes, adjust `--nproc-per-node` and `--nnodes` according to your setup and set `MASTER_ADDR` to the correct IP address and port of the master node (e.g., `10.0.0.1:29400`), reachable from all nodes. Then, run:
159
160 ```bash
161 NCCL_DEBUG=TRACE torchrun --nnodes 2 \
162 --nproc-per-node=2 \
163 - --rdzv_backend=c10d \
164 - --rdzv_endpoint=$MASTER_ADDR test.py
163 + --rdzv_backend=static \
164 + --rdzv_endpoint=$MASTER_ADDR \
165 + --node-rank $NODE_RANK test.py
166 ```
167
167 -If the script runs successfully, you should see the message `sanity check is successful!`.
168 -
169 -If the test script hangs or crashes, usually it means the hardware/drivers are broken in some sense. You should try to contact your system administrator or hardware vendor for further assistance. As a common workaround, you can try to tune some NCCL environment variables, such as `export NCCL_P2P_DISABLE=1` to see if it helps. Please check [their documentation](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html) for more information. Please only use these environment variables as a temporary workaround, as they might affect the performance of the system. The best solution is still to fix the hardware/drivers so that the test script can run successfully.
168 +Set `MASTER_ADDR` to the IP address and port of the master node (e.g., `10.0.0.1:29400`), reachable from all nodes. Set `NODE_RANK` to `0` on the master node and `1`, `2`, ... on the workers. Adjust `--nproc-per-node` and `--nnodes` according to your setup.
169
170 !!! note
172 - A multi-node environment is more complicated than a single-node one. If you see errors such as `torch.distributed.DistNetworkError`, it is likely that the network/DNS setup is incorrect. In that case, you can manually assign node rank and specify the IP via command line arguments:
171 + We use `--rdzv_backend=static` instead of `c10d` because the `c10d` rendezvous backend can fail with DNS resolution errors in multi-node setups (see [pytorch/pytorch#85300](https://github.com/pytorch/pytorch/issues/85300)). The `static` backend avoids this by requiring explicit node ranks.
172
174 - - In the first node, run `NCCL_DEBUG=TRACE torchrun --nnodes 2 --nproc-per-node=2 --node-rank 0 --master_addr $MASTER_ADDR test.py`.
175 - - In the second node, run `NCCL_DEBUG=TRACE torchrun --nnodes 2 --nproc-per-node=2 --node-rank 1 --master_addr $MASTER_ADDR test.py`.
173 +If the script runs successfully, you should see the message `sanity check is successful!`.
174
177 - Adjust `--nproc-per-node`, `--nnodes`, and `--node-rank` according to your setup, being sure to execute different commands (with different `--node-rank`) on different nodes.
175 +If the test script hangs or crashes, usually it means the hardware/drivers are broken in some sense. You should try to contact your system administrator or hardware vendor for further assistance. As a common workaround, you can try to tune some NCCL environment variables, such as `export NCCL_P2P_DISABLE=1` to see if it helps. Please check [their documentation](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html) for more information. Please only use these environment variables as a temporary workaround, as they might affect the performance of the system. The best solution is still to fix the hardware/drivers so that the test script can run successfully.
176
177 ## Python multiprocessing
178