A timeout reported by one PyTorch process does not necessarily identify the root cause of a stalled collective. Another rank may not have reached the same operation, may have called an incompatible operation or may have failed earlier. Flight Recorder can retain per-rank diagnostic information for comparison, but it does not replace investigation of the application, GPU and network.

The PyTorch Flight Recorder tutorial describes diagnostics for stuck jobs. Match instructions and environment variables to the installed PyTorch release; supported features and dump formats can change.

Preserve the incident context

Record the job identifier, time, node and process counts, rank-to-GPU mapping, PyTorch, CUDA, NCCL and driver versions, container, model, input size and last valid checkpoint. Collect logs from every rank rather than only the process that prints the final timeout. An earlier data-loader exception, device error or unavailable peer can be more informative.

Compare timestamps only after accounting for clock differences. Preserve hardware and network observations according to the site's operational procedures. An observed network counter or GPU warning is evidence to investigate, not automatic proof that it caused the collective to stall.

Understand the recorder's limits

Flight Recorder uses a bounded buffer of collective-operation information. Depending on version and configuration, entries can identify an operation, sequence number, state and additional diagnostics. Comparing rank traces can show which participants started or completed a collective and where their sequences diverged.

The buffer is not a complete application history. A small buffer can overwrite an interesting entry before a dump; extra timing or stack information can add overhead. Trial settings on a non-production workload and protect diagnostics that can reveal code paths or environment details.

PyTorch's ProcessGroupNCCL environment documentation states that TORCH_NCCL_DUMP_ON_TIMEOUT requires a positive TORCH_NCCL_TRACE_BUFFER_SIZE. Check the installed release for exact options and additional requirements. Enabling a dump does not guarantee a file for every failure mode or when the destination filesystem is unavailable.

Compare ranks in the same process group

Imagine four ranks numbered zero through three. Three show an illustrative collective numbered 120, while the fourth has no start record for it. Inspect the fourth rank's last completed operation and earlier application logs. The missing record does not prove a network fault: the process might have stalled in data preparation, the dump may be incomplete or the buffer may have overwritten the event.

If all ranks show the same sequence number but one shows a different collective or incompatible data shape, inspect the distributed program's control flow. Compare group membership and event states, not a number in isolation. Rank assignments can change after a restart; retain the mapping between rank, node, GPU and network interface for each run.

Separate code and infrastructure hypotheses

Where safe and authorized, reproduce the issue with a smaller workload. Verify that each process receives input, reaches compatible collectives in the same order and handles exceptions. Then inspect device health, topology and network evidence for the relevant interval.

A short synthetic test that passes does not exclude an issue appearing under sustained load or a different message size. A failing test also does not justify changing several production settings at once. Make controlled changes during an approved maintenance window, preserve the original settings and document a rollback.

Simply extending a timeout can leave expensive resources occupied for longer and hide a mismatch. Set thresholds using observed normal operation, workload size and the recovery policy rather than an arbitrary value.

Estimate the operational impact

If a hypothetical job uses 32 GPUs and waits 20 minutes before an issue is detected, the waiting time is 32 × 20 / 60, or approximately 10.7 GPU-hours. Multiply by the organization's agreed rate if a cost estimate is needed. This is an example, not a measured incident.

Add lost computation since the last valid checkpoint separately and avoid counting the waiting period twice. The result can help evaluate observability and recovery, but does not by itself determine the correct checkpoint interval.

Compare attempts carefully

Where possible, retain a successful run with the same configuration as a baseline. Compare collective order, data distribution and per-rank preparation. Note whether a repeated failure follows a node or a job step after rank placement changes; either observation is a clue rather than automatic proof. Diagnostics may contain internal paths and code details, so review them under the organization's data-handling rules before sharing.

Prepare before an incident

Define where logs and dumps are stored for every node, available capacity, access controls, notification, job shutdown and checkpoint recovery. Verify the dump destination in staging. The incident report should include the original configuration, timeline, per-rank observations, reproducible steps and the results of each change. Record uncertainty when the evidence does not establish a cause.

Include observability and recovery in GPU-cluster acceptance criteria. Review server selection or contact AI Server Lab with the workload and operational requirements. Follow the specific site's change procedures and vendor documentation.