Menu

1 / 2

How do you debug NCCL errors and hangs in multi-GPU training?

DEV Community: pytorch·Viswaretas Kotra·about 5 hours ago
#4s4CgkSA
#devtopytorch#devto#dev#rank#timeout
Long article (1790 words) — no AI summary yet.
Reading 0:00
15s threshold

Most NCCL errors and hangs fall into four symptoms: a failure at startup, a watchdog timeout, a silent hang, or one rank crashing and taking the rest down, and each has its own first check. On Nodus, a rank that exits non-zero fails the run instead of being retried, and nodus logs job/NAME --rank 1 reads each machine's log even after its capacity is gone. Before you blame the network, check whether one rank called a different collective than the others, a bug we reproduce three ways below.

This is the playbook for a job that is already broken. Launch setup, ports and NCCL_SOCKET_IFNAME are covered in our multi-node training guide , and DDP versus FSDP in our multi-GPU training guide .

Which kind of NCCL failure do you have?

Classify before you change anything, because the fixes do not overlap.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.