Skip to content

Straggler / Slow-Rank Detection

One rank runs slower than the rest, so every collective waits on it. There is no crash and no error. Just falling throughput and idle GPUs. Stragglers are the dominant cause of silent efficiency loss at scale and must be detected by comparing per-rank step times, not by waiting for a timeout.

Quick answer

Compare the same step across ranks and separate input wait, compute and collective wait. The rank reporting the longest collective wait may be waiting for a different rank that entered the collective late.

Root cause
Separate a delayed collective entry from slow communication after entry using per-rank step timing and matched collective sequence numbers.
Recommended fix
Choose one control for the slow stage: a cached batch for input wait, the same operation on a comparable device for compute, or a small matching collective for transport.
How Denpex helps
Denpex investigates Straggler / Slow-Rank Detection using the evidence you provide or your connected workload collects. Earlier rank, host or application evidence is needed to distinguish an initiating failure from a downstream report.
Reliability#straggler#slow-rank#reliability#distributed#throughput#gray-failure

What this failure is

Straggler / Slow-Rank Detection is a Reliability failure seen during ML training runs. One rank runs slower than the rest, so every collective waits on it. There is no crash and no error. Just falling throughput and idle GPUs. Stragglers are the dominant cause of silent efficiency loss at scale and must be detected by comparing per-rank step times, not by waiting for a timeout. Common tags: Straggler, Slow Rank, Reliability, Distributed.

Live diagnosis, no signup

Is this what broke your run? Paste your log.

You're reading about Straggler / Slow-Rank Detection. Paste your own traceback and relevant evidence for an investigation of your workload, with a next action or a specific missing fact. A reference entry does not establish your cause. No account or card for the free diagnosis. Review data handling before submitting sensitive logs.

Before uploading, review cloud data handling and local options.

training_logs.txt
No log to hand? Try one:

Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.

3 free cloud diagnoses per day

Why it happens (the mechanism)

The collective waits for participating ranks. A rank that prepares its batch late or computes more slowly can hold up peers. If ranks enter together, investigate transport and link behavior.

What you'll observe

  • Throughput drops with no error in the logs
  • All ranks block at all-reduce waiting on one slow rank
  • Step time is dominated by the slowest rank

Common symptoms and what they mean

Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.

SymptomPossible explanation
One rank's step time is consistently 1.5-10x the medianSeparate a delayed collective entry from slow communication after entry using per-rank step timing and matched collective sequence numbers.
GPU utilization on most ranks oscillates between 100% and 0% (waiting)Separate a delayed collective entry from slow communication after entry using per-rank step timing and matched collective sequence numbers.
MFU / tokens-per-second degrades over hours without a config changeSeparate a delayed collective entry from slow communication after entry using per-rank step timing and matched collective sequence numbers.
No NCCL timeout fires because the slow rank still responds, just lateSeparate a delayed collective entry from slow communication after entry using per-rank step timing and matched collective sequence numbers.

Which systems are affected

  • Large multi-node data/tensor-parallel training
  • Heterogeneous nodes or mixed GPU SKUs
  • Shared clusters with noisy neighbors
  • Jobs sensitive to a single thermally-throttled or ECC-degraded GPU

How to confirm this is the problem

Use this checklist to test the hypothesis against a small reproduction. No single line proves the root cause, so preserve the preceding events and compare one variable at a time.

  • ✓Compare batch-ready and forward-start timestamps. A late batch points toward input or host contention.
  • ✓If inputs are ready together, compare per-rank compute duration and GPU telemetry for the same operation and shapes.
  • ✓If ranks enter together but communication stretches, compare matching collective sequence numbers and inspect the relevant transport and link evidence.

Root cause

  • Separate a delayed collective entry from slow communication after entry using per-rank step timing and matched collective sequence numbers.

The fix and how to prevent it

How to fix it

  • Choose one control for the slow stage: a cached batch for input wait, the same operation on a comparable device for compute, or a small matching collective for transport.
  • Repeat the original step and confirm that the slow rank and overall step time improve under the same workload conditions.

How to prevent it

  • Continuously monitor per-rank step-time variance, not just average throughput
  • Run a per-node burn-in (GEMM + all-reduce) before claiming a node healthy
  • Alert on ECC remap-count and clock-throttle trends before they become stragglers
  • Pin dataloader workers and verify NUMA affinity on every host

Save this diagnosis and catch the next crash automatically

All root cause, fix, and prevention steps above are free to read. Create a free account with any email or GitHub to keep your saved diagnosis history across the encyclopedia and run cloud checks, or use a work email below for the 30-day Team evaluation. No card required.

Or start a 30-day free Team trial (work email)

Verified work email unlocks all 14 fleet diagnostic tools, Slack alerts, and team history for 30 days. No card and no automatic charge.

Use your company email, for example alex@yourcompany.com.

Who qualifies?

Company email domains activate the free 30-day Team evaluation (up to 50 diagnoses a day) after an email and domain check, whatever mail provider you use. If we cannot verify your domain automatically, support reviews it: write to support@denpex.com. Free local diagnosis in the editor extension needs no account.

Using a personal email (Gmail, Outlook, Naver, QQ) or solo cluster? Create a free $0 account (no work email required) to save 7-day history and unlock AI fallback, or send a cluster crash log for a live walkthrough.
Already have an account? Sign in

Diagnose your own log automatically

The root cause and fix steps above stay free. Create a free account to analyze full job logs, attribute the first failed rank, and keep saved incident history.

Sign up free. Analyze your cluster logs

No credit card. Daily allowance follows verified trust tier. Instant access.

Code examples

snippet
# Lightweight per-rank straggler check. Log ranks slower than 1.5x median
import torch, torch.distributed as dist

step_t = torch.tensor([elapsed], device='cuda')
gathered = [torch.zeros_like(step_t) for _ in range(dist.get_world_size())]
dist.all_gather(gathered, step_t)
times = torch.stack(gathered).flatten()
median = times.median()
slow = (times > 1.5 * median).nonzero().flatten().tolist()
if dist.get_rank() == 0 and slow:
    print(f'[straggler] ranks {slow} slower than 1.5x median ({median.item():.3f}s)')

This snippet illustrates the entry-specific check. Verify the installed versions, permissions, target and workload context before using it. A command or API example is not proof of recovery.

Diagnose this failure in VS Code

Select the traceback or open the failed terminal, then run Denpex locally to inspect matched failure patterns, supporting evidence and next checks without uploading the log. Verify recommendations against your workload before changing production.

Install the free VS Code extension

Don't just read the fix, diagnose your run

The encyclopedia explains documented failure patterns. Denpex investigates your logs, configuration and stack, shows the supporting evidence, and asks for missing details when needed.