Single-Rank Reduce-Scatter Silent Data Corruption
On world_size=1 with non-aligned tensor sizes, NCCL's reduce-scatter/AVG left the last elements unprocessed (zero) due to a floor-division bug. Silent corruption with no error.
On world_size=1 with non-aligned tensor sizes, NCCL's reduce-scatter/AVG left the last elements unprocessed (zero) due to a floor-division bug. Silent corruption with no error.
- Symptom
Silent: no exception, no NCCL warning- Root cause
- Element distribution used integer floor division nElts/bn before alignment. The last block was assigned zero elements and skipped. Result: trailing elements never written.
- Recommended fix
- Upgrade to NCCL 2.29.7 (uses ceiling division divUp(nElts, bn))
- How Denpex helps
- Denpex investigates Single-Rank Reduce-Scatter Silent Data Corruption 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.
What this failure is
Single-Rank Reduce-Scatter Silent Data Corruption is a Data Integrity failure seen during ML training runs. On world_size=1 with non-aligned tensor sizes, NCCL's reduce-scatter/AVG left the last elements unprocessed (zero) due to a floor-division bug. Silent corruption with no error. Common tags: Nccl, Sdc, Reduce Scatter, Silent Corruption.
Is this what broke your run? Paste your log.
You're reading about Single-Rank Reduce-Scatter Silent Data Corruption. 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.
Upload your log file. Large files are processed in your browser. Only selected evidence is submitted when you run diagnosis.
Why it happens (the mechanism)
Element distribution used integer floor division nElts/bn before alignment. The last block was assigned zero elements and skipped. Result: trailing elements never written. Taken together, these mechanisms explain why the failure is reproducible, why it tends to surface on specific workloads or scales, and why generic mitigation attempts often fall short without addressing the underlying cause.
What you'll observe
- Reduce output has trailing zeros that should be real values
- Only with non-power-of-2 / non-aligned tensor sizes
- No error or warning is emitted
Common symptoms and what they mean
Check possible explanations against the incident evidence. A matching symptom alone does not establish its cause.
| Symptom | Possible explanation |
|---|---|
| Trailing elements equal 0.0 in reduce_scatter output | Element distribution used integer floor division nElts/bn before alignment |
| dist.reduce_scatter_tensor with ReduceOp.AVG on world_size=1 | The last block was assigned zero elements and skipped |
| Silent: no exception, no NCCL warning | Result: trailing elements never written |
Which systems are affected
- NCCL up to 2.27.5
- world_size=1 reductions with non-aligned sizes (e.g. 2164744)
- H100 and others
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.
- ✓Reproduce the failure from a clean checkpoint/seed: the symptom must appear without warm-up state from a previous run.
- ✓Verified signal present: Trailing elements equal 0.0 in reduce_scatter output
- ✓Verified signal present: dist.reduce_scatter_tensor with ReduceOp.AVG on world_size=1
- ✓Verified signal present: Silent: no exception, no NCCL warning
- ✓A targeted fix from the "How to fix it" section eliminates or substantially reduces the symptom within one validation pass.
Root cause
- Element distribution used integer floor division nElts/bn before alignment
- The last block was assigned zero elements and skipped
- Result: trailing elements never written
The fix and how to prevent it
How to fix it
- Upgrade to NCCL 2.29.7 (uses ceiling division divUp(nElts, bn))
- Until upgraded, pad tensors to aligned sizes for world_size=1 reductions
- Add a checksum/parity validation on critical reduce outputs
Step-by-step remediation
- 1Upgrade to NCCL 2.29.7 (uses ceiling division divUp(nElts, bn))
- 2Until upgraded, pad tensors to aligned sizes for world_size=1 reductions
- 3Add a checksum/parity validation on critical reduce outputs
How to prevent it
- Pin NCCL 2.29.7+ where reductions are correctness-critical
- Validate reduce outputs with a periodic checksum
- Avoid relying on world_size=1 collectives with arbitrary sizes
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.
Searchable error signature
Silent: no exception, no NCCL warningUse this text as a lookup key in logs and upstream issue trackers. It is not presented as a captured customer log. Confirm the cause from your own preceding events, versions, configuration and the cited references.
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 logsNo credit card. Daily allowance follows verified trust tier. Instant access.
Code examples
# Detection: verify no unexpected trailing zeros after reduce_scatter
import torch, torch.distributed as dist
out = torch.empty(shard, device='cuda')
dist.reduce_scatter_tensor(out, inp, op=dist.ReduceOp.AVG)
assert out[-8:].abs().sum() > 0, 'possible NCCL one-rank reduce SDC'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 extensionNCCL errors in context
An NCCL error can follow an earlier worker failure. The hub connects documented collective errors with their interpretation limits, worker evidence and configuration checks.
Compare related nccl errorsRelated failures to investigate next
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.