Silent data corruption (SDC) happens when hardware, such as a GPU, returns a wrong but plausible number and raises no error. In distributed training, the wrong number can flow into the gradients and weights of every replica. Loss can still look normal for hours, and by the time a team notices an unexplained divergence or a weaker model, the compute is spent. It happens at scale: during a 54-day period of Llama 3 405B pre-training on up to 16K H100 GPUs, Meta attributed 6 of 419 unexpected job interruptions to silent data corruption, and those were only the cases that interrupted the job and were traced to SDC.
Amazon SageMaker HyperPod already replaces nodes that report a fault: the health-monitoring agent watches for GPU errors, deep health checks stress-test nodes, and automatic node recovery swaps out bad hardware. SDC slips past all of these features, because the hardware never reports anything. Detection has to come from the training job itself.
In this post, we add three checks to a PyTorch DistributedDataParallel (DDP) training loop to detect SDC. When a check fires, we map the suspect rank to its node, contain the corruption, and have SageMaker HyperPod replace the node. Each check covers a different place where a fault can land:
We tested the checks with software-injected faults on a SageMaker HyperPod cluster with 4 ml.p5.48xlarge instances (32 NVIDIA H100 GPUs), and repeated every test on three instances, the minimum the checks need. The full code of this solution is available in the accompanying GitHub repository.
SDC comes from manufacturing defects (marginal transistors that slip past vendor screening) and silicon aging in a specific compute unit, most often a multiply-accumulate lane in a tensor core, which is exactly the hardware model training hammers. That marginal circuit computes correctly most of the time and wrong only under stress: high temperature, voltage droop, or specific operand patterns. Because the arithmetic logic path has no ECC or parity (unlike memory), the wrong result, say 4.0001 instead of 4.0000, is never flagged, and it flows through activations and gradients into every replica’s weights.
The reason it is so hard to catch is that SDC is in the compute path, and every integrity check you already have guards a different boundary:
The way to catch SDC is to check the result of the computation itself.
The loop has four steps. Your training job does the first two, and the last two use Kubernetes and SageMaker HyperPod features:
Step 1. Detect: Three checks in your training loop name a suspect GPU by comparing data-parallel replicas.
Step 2. Localize: On SageMaker HyperPod clusters orchestrated by Amazon Elastic Kubernetes Service (Amazon EKS), the Kubernetes node name contains the instance ID, so mapping a suspect rank to a node is a lookup.
Step 3. Contain and correlate: Stop the job, cordon the node, and look at its GPU metrics in the SageMaker HyperPod observability dashboards.
Figure 1: A SageMaker HyperPod EKS cluster with three p5 nodes running training pods and SDC checks. Node 1 raises an alarm for rank 13, and the proposed steps cordon the node, check GPU metrics, replace it, and restart training
It helps to see the loop as layers, each adding something different:
Layers 1–3 are the only layers that detect silent SDC, and they live in your training code. Layer 4 turns their alarm into an instance ID, and the HyperPod layers corroborate the alarm and close the loop.
Data parallelism trains several copies of the model, called replicas, at the same time. Each replica trains on a different slice of the batch. After each backward pass, an all-reduce averages the replicas’ gradients, and every replica applies that same average in optimizer.step(). Here’s one weight across three replicas, with a learning rate of 0.1:
Local gradients differ, because each replica sees different data. And after the optimizer step, the weights must be identical, bit for bit.
Where a fault lands decides which check can see it. If replica 1 computes a local gradient of 4.00 instead of 0.40, the all-reduce spreads that error to every replica: all three apply the same wrong update, and their weights still match. Only replica 1’s local gradient looked different, and only before the all-reduce. If instead replica 1 corrupts a weight during or after the optimizer step, its weights no longer match the others. There’s one exception: a NaN or Inf in one replica’s weights reaches every replica through the next all-reduce, and after that the replicas agree again. A fault inside the all-reduce itself, such as a GPU that adds a partial sum wrong, also reaches every replica identically.
So compute-path faults must be caught before the optimizer step, while the bad gradient can still be discarded, and faults in the update or in stored weights after it. Finite wrong values need recompute: comparing gradient norms across replicas catches only NaN and Inf (see Why not compare local gradient norms?). That gives three checks on every DP rank, in a fixed order within each training step:
The code in this step is for PyTorch DDP. For tensor, pipeline, or context parallelism, see Beyond DDP.
Figure 2: Flowchart of one training step. Check 1 (NaN/Inf gradients, before and after the all-reduce) and check 2 (ring replay, on audit steps) run before the optimizer step and stop the step if they fire. Check 3 (weight fingerprints) runs after it and blocks the checkpoint
A natural first design, and the one we started with, flags a rank whose local gradient norm is more than k median absolute deviations (MADs) from the median of that step. We recorded every rank’s local gradient norm on every step of the three fault-free runs on 4 instances (22,800 steps, see Fault-free runs) on 32 H100s training a 953-million-parameter model, and the test doesn’t work:
Checks 2 and 3 compare tensors across GPUs. Sending whole tensors would cost too much, so each tensor is reduced to a fingerprint: two 64-bit sums of its raw bit patterns, one plain and one weighted by position. Any change to one or two elements of a tensor changes the fingerprint, for tensors with fewer than 2³² elements of up to 4 bytes each. That covers every weight fault we injected. Larger changes could, in principle, cancel out, so equal fingerprints are strong evidence of equal tensors, not proof. The position-weighted sum matters: in our tests, a swap of two weight values and a compensating change to two values left the plain sum unchanged, and only the weighted sum caught them.
_INT_VIEW = {1: torch.uint8, 2: torch.int16, 4: torch.int32, 8: torch.int64} @torch.no_grad() def fingerprints(tensors, chunk=1 << 24): # ... picks the device and allocates out: one row of two int64 per tensor for k, t in enumerate(tensors): if t is None: continue bits = t.detach().contiguous().view(-1).view(_INT_VIEW[t.element_size()]) for i in range(0, bits.numel(), chunk): # chunked to bound temporary memory b = bits[i:i + chunk].to(torch.int64) pos = torch.arange(i + 1, i + 1 + b.numel(), dtype=torch.int64, device=dev) out[k, 0] += b.sum() out[k, 1] += (b * pos).sum() return out Check 1: NaN/Inf gradients, before and after the all-reduce A DDP communication hook records each rank’s local gradient before it’s averaged. It stores the squared norm of every gradient bucket and, on deterministic audit steps, the fingerprints of every parameter’s gradient (used by check 2). Then it passes the bucket to PyTorch’s standard all-reduce.
After backward, nonfinite_ranks gathers one scalar from every rank and returns the ranks whose local gradient norm is NaN or Inf. The first rank flagged is the faulty one. If the step were applied, the NaN would reach every rank on the next step.
def local_stats_hook(stats, bucket): stats.sq.append(bucket.buffer().float().pow(2).sum()) if stats.record_fingerprints: # per parameter, before allreduce_hook divides in place rows = [stats.row[p.data_ptr()] for p in bucket.parameters()] stats.fp[rows] = fingerprints(bucket.gradients()) return allreduce_hook(stats.dp_group, bucket) def attach(ddp_model, dp_group): stats = LocalStats(dp_group, list(ddp_model.module.parameters())) ddp_model.register_comm_hook(state=stats, hook=local_stats_hook) return stats def nonfinite_ranks(stats): """After backward: global ranks whose local gradient norm is NaN or Inf.""" local = torch.stack(stats.sq).sum().sqrt().reshape(1) n = dist.get_world_size(stats.dp_group) gathered = [torch.empty_like(local) for _ in range(n)] dist.all_gather(gathered, local, group=stats.dp_group) bad = ~torch.isfinite(torch.cat(gathered).cpu()) return [dist.get_global_rank(stats.dp_group, r) for r in bad.nonzero().flatten().tolist()] train() also checks the gradient after the all-reduce. A NaN or Inf produced inside the reduction reaches every replica the same way, so the copies still match and check 3 passes them. Without this check, the NaN becomes NaN weights on every replica, and a checkpoint due on that step is saved with them and tagged as passing. clip_grad_norm_ already computes the norm of the reduced gradient, so the check adds only one one-element all-reduce per step. A finite error in the reduction still passes every check.
If you train with fp16 and a gradient scaler, exclude the overflow steps the scaler already skips. bf16 doesn’t have them.
Every replica holds the same weights until optimizer.step(). So, between the backward pass and the optimizer step, any rank can recompute any other rank’s micro-batch, and with deterministic kernels it must get the same bits.
On an audit step, every rank r recomputes the micro-batch of rank r + 8: 8 positions ahead, which is one node away on p5 instances. It uses the unwrapped module, so nothing is all-reduced, and it restores the gradients, the module’s buffers, and the random-number state afterwards. A replay blocks the job no matter how many ranks do one, so auditing every rank costs the same wall-clock time as auditing one.
Each rank then appears in two comparisons: its own micro-batch, replayed by a peer, and the micro-batch it replayed for someone else.
def ring_audit(module, compute_loss, rebuild_batch, step, stats, local_loss, offset, with_grads): # ... g is the DP group, n its size, and me this rank's position in it target = dist.get_global_rank(g, (me + offset) % n) replay = _replay(module, compute_loss, rebuild_batch(step, target), with_grads) # ... v = [this rank's own loss bits and gradient fingerprints, its replay of target] dist.all_gather_into_tensor(out, v, group=g) table = out.view(n, 2, -1).cpu() # per DP rank: [own result, its replay of its target] pairs = [(dist.get_global_rank(g, (r + offset) % n), dist.get_global_rank(g, r)) for r in range(n) if not torch.equal(table[(r + offset) % n, 0], table[r, 1])] return pairs, table def localize(pairs): hits = Counter(r for p in pairs for r in p) culprits = sorted(r for r, c in hits.items() if c >= 2) ambiguous = [p for p in pairs if not set(p) & set(culprits)] return culprits, ambiguous def confirm(module, compute_loss, rebuild_batch, step, pair, table, stats, offset, with_grads): # ... the third GPU (target + offset) and the target replay the target's micro-batch again third_r, self_r = v.cpu() orig, peer = table[ti, 0], table[ri, 1] if torch.equal(third_r, orig): return {"pair": pair, "third": third, "suspect": replayer, "kind": "replayer computed wrong"} if torch.equal(third_r, peer): kind = ("persistent" if torch.equal(self_r, orig) else "transient" if torch.equal(self_r, third_r) else "unclear") return {"pair": pair, "third": third, "suspect": target, "kind": kind} return {"pair": pair, "third": third, "suspect": None, "kind": "unattributable"} The confirmation is only independent if the three GPUs are on three different nodes. check_topology verifies that for every pair before training starts, from each pod’s NODE_NAME, and raises an error otherwise.
Never replay a suspect’s work on the suspect alone. A GPU with a persistent defect can reproduce its own wrong answer.
After optimizer.step(), every replica’s weights must be identical, so there’s no tolerance to tune. Each rank fingerprints every weight tensor and gathers everyone’s fingerprints.
A rank is named only when its copy of a tensor differs from a strict majority, more than half of the copies. With two copies, or a split with no strict majority, the comparison reports a disagreement without naming any rank.
def find_divergent_ranks(params, dp_group): local = fingerprints(params).flatten() # ... all-gathers every rank's fingerprints into table: [dp_size, num_tensors, 2] differs = (table != table[0]).any(dim=2).any(dim=0) if not differs.any(): return {"diverged": False, "suspects": []} suspects = set() for k in differs.nonzero().flatten().tolist(): copies = [tuple(row) for row in table[:, k].tolist()] value, count = Counter(copies).most_common(1)[0] if 2 * count <= n: return {"diverged": True, "suspects": None} # no strict majority for tensor k suspects.update(r for r, c in enumerate(copies) if c != value) return {"diverged": True, "suspects": sorted(dist.get_global_rank(dp_group, r) for r in suspects)} Run it every N steps and on every checkpoint step. It’s the only check that runs after the update, so it’s the only one that can stop a checkpoint from being written out of a corrupted copy. In our tests, a weight corrupted right after one update was caught at the next checkpoint step, and the save didn’t happen. Without the forced check, the save went ahead from the corrupted copy, and the ring audit noticed only at the next audit, five steps later.
It costs 31.1 ms per check on a 953-million-parameter model: 2 percent of a step when it runs every 10 steps.
train runs each step in the order of Figure 2 and stops at the first alarm. It decides whether a step is an audit step before the forward pass, because a deterministic comparison needs the original computation to be deterministic too. When check 1 or 2 fires, it zeros the gradients and returns without clipping or applying the update, so the bad gradient never reaches the weights or the optimizer state, and the exact state is still there for confirmation. After clipping, it checks whether the reduced gradient is NaN or Inf, and if it is, returns before the update. It saves a checkpoint only if nothing fired.
def train(ddp_model, stats, optimizer, batches, compute_loss, rebuild_batch, save_checkpoint, sched, start_step=0): # ... setup, including check_topology(dp_group, sched.peer_offset) for step, batch in enumerate(batches, start_step): audit = step % sched.audit_every == 0 # 0. decide first det = audit and sched.deterministic_audits # ... resets the hook's per-step state with deterministic() if det else nullcontext(): loss = compute_loss(ddp_model, batch) # 1. forward, backward loss.backward() nonfinite = nonfinite_ranks(stats) # 2. non-finite check pairs, table = [], None if audit or nonfinite: # 3. ring replay pairs, table = ring_audit(module, compute_loss, rebuild_batch, step, stats, loss, sched.peer_offset, with_grads=det) if nonfinite or pairs: # 4. gate optimizer.zero_grad(set_to_none=True) # step not applied culprits, ambiguous = localize(pairs) verdicts = [confirm(module, compute_loss, rebuild_batch, step, p, table, stats, sched.peer_offset, with_grads=det) for p in ambiguous] return {"step": step, "check": "compute", "nonfinite": nonfinite, "mismatched_pairs": pairs, "culprits": culprits, "verdicts": verdicts, "suspect_window": _window(last_audit, step, start_step), "last_audit_pass": last_audit, "last_weight_check_pass": last_weights} if audit: last_audit = step grad_norm = torch.nn.utils.clip_grad_norm_(params, sched.max_grad_norm) bad = (~torch.isfinite(grad_norm)).to(torch.int32).reshape(1) # reduced gradient dist.all_reduce(bad, op=dist.ReduceOp.MAX, group=dp_group) if bad.item(): optimizer.zero_grad(set_to_none=True) # step not applied return {"step": step, "check": "reduced gradient", "suspect_window": [step, step], "last_audit_pass": last_audit, "last_weight_check_pass": last_weights} optimizer.step() optimizer.zero_grad(set_to_none=True) ckpt = step % sched.ckpt_every == 0 if step % sched.check_every == 0 or (ckpt and sched.check_on_checkpoint): wc = find_divergent_ranks(params, dp_group) # 5. weight check if wc["diverged"]: return {"step": step, "check": "weights", "suspects": wc["suspects"], "suspect_window": _window(last_weights, step, start_step), "last_audit_pass": last_audit, "last_weight_check_pass": last_weights} last_weights = step if ckpt: # 6. checkpoint save_checkpoint(step, tags={"last_audit_pass": last_audit, "last_weight_check_pass": last_weights}) return None The alarm’s suspect_window is the range of steps since the last pass of the check that fired. A fault that was active on every step since it started began inside it. An intermittent fault can be older, and a fault that no check sees can be in any checkpoint, so treat the tags as a record that the checks passed at that step, not as proof that the saved state is clean.
# ... imports, and the model, optimizer, and dataset setup import sdc_order as S stats = S.attach(ddp_model, dp_group) # registers the comm hook, once sched = S.Schedule(audit_every=10, deterministic_audits=True, check_every=10, ckpt_every=100, peer_offset=8) # 8 = GPUs per node def compute_loss(model, batch): # used for training AND replay x, y = batch with torch.autocast("cuda", dtype=torch.bfloat16): logits = model(x) return F.cross_entropy(logits.float().flatten(0, 1), y.flatten()) def rebuild_batch(step, rank): # exactly the micro-batch `rank` trained on return dataset.micro_batch(step, rank) # ... batches(start) yields this rank's micro-batches and sets the learning rate alarm = S.train(ddp_model, stats, optimizer, batches(start), compute_loss, rebuild_batch, save_checkpoint, sched, start_step=start) if alarm is not None: report_sdc(alarm) # metric + log line; Step 2 maps the rank to a node sys.exit(3) The replay depends on these:
audit_every is the main cost-versus-robustness setting:
Make ckpt_every a multiple of both audit_every and check_every, so every checkpoint step is audited before its update and fingerprinted after it.
We measured the average step time end to end, over 1,000 consecutive steps per schedule, on the 953M model and 32 H100s. Every schedule with the checks also runs the weight check every 10 steps:
About 7 percentage points of each schedule’s cost don’t depend on audits: the gradient hook and the two NaN/Inf checks on every step, and the weight check every 10 steps. A reasonable starting point for production is deterministic audits every 100 steps, which cost 10 percent here. They still catch a persistent fault within 100 steps, including a backward-only one, at the price of up to 99 corrupted updates to roll back. Audit every 10 steps when you need faster detection, for example during a burn-in on new capacity or while you watch a suspect node. Measure the cost on your own model: deterministic attention uses the math kernel, whose cost grows with the square of the sequence length.
In the fault-free runs, 15,320 audit steps and 3,080 weight checks raised no alarm, which bounds the false-alarm rate at about 1 in 5,100 audit steps (95 percent confidence).
A rank is a logical ID. To act on it, you need the instance and the physical GPU. On HyperPod EKS, the Kubernetes node name is the instance ID with a hyperpod- prefix. Pass it to your pod with the Kubernetes downward API:
env: - name: NODE_NAME # on HyperPod EKS, spec.nodeName is "hyperpod- " valueFrom: fieldRef: fieldPath: spec.nodeName At job start, log a table that maps every rank to its node, instance, and GPU UUID:
import os import torch import torch.distributed as dist node = os.environ["NODE_NAME"] # "hyperpod-i-0123456789abcdef0" instance_id = node.removeprefix("hyperpod-") # "i-0123456789abcdef0", what the Replace API takes gpu_uuid = "GPU-" + str(torch.cuda.get_device_properties(torch.cuda.current_device()).uuid) info = {"rank": dist.get_rank(), "node": node, "instance_id": instance_id, "gpu_uuid": gpu_uuid} table = [None] * dist.get_world_size() dist.all_gather_object(table, info) if dist.get_rank() == 0: print("rank_map", table) # log at every job start If a job is already running without the downward API, you can map a pod to its node from outside with kubectl get pod -o jsonpath='{.spec.nodeName}'.
When an alarm fires, stop the job first. Then stop new work from landing on the suspect node by cordoning the node while you investigate:
kubectl cordon # marks the node unschedulable; existing pods keep running Then open the GPU health dashboard in the SageMaker HyperPod observability add-on, filter to the suspect node and GPU, and look at the time the alarm fired. A rise in correctable ECC errors, PCIe replays, throttling, or temperature on that GPU raises confidence that the hardware is at fault. A clean panel doesn’t clear the node: pure SDC often leaves no trace in hardware telemetry.
With the Step 1 checks running, an alarm already names a suspect GPU. When you see a symptom without an alarm, such as a loss spike, or want to rule out software before you replace anything, start with the cheap explanations. Most loss spikes aren’t SDC, and chasing SDC on a data bug wastes days:
Loss anomaly / suspected corruption - Reproduces with the same seed on DIFFERENT nodes? -> deterministic bug, not SDC - Goes away, or follows one node, when you move the job? -> strong SDC candidate - DP replicas that must be bitwise identical disagree? -> strong SDC signal - One rank's step replayed on another node gives different bits? -> strong SDC signal - One rank's pre-all-reduce gradient is NaN or Inf? -> SDC candidate (use the first step it fired) - Fleet-wide and gradual? -> likely recipe or optimizer - Started at a data, config, or library change? -> usually software, but not proof The test that separates SDC from software is whether the problem follows the hardware:
In production, keep a human approval on every replacement until you have evidence of the checks’ precision on your own workload. Synthetic tests like ours don’t establish it.
A deep health check is the main tool for ambiguous alarms. Its stress tests catch faults that the hardware reports, and subtle data-dependent faults often pass. To run one on the suspect instance group:
aws sagemaker start-cluster-health-check \ --cluster-name \ --deep-health-check-configurations '[{"InstanceGroupName":" ","InstanceIds":["i-0123456789abcdef0"],"DeepHealthChecks":["InstanceStress"]}]' Replace the node When you’re ready to replace the node, you have two options. Both trigger the same SageMaker HyperPod recovery process, described in Manually quarantine, replace, or reboot a node.
If automatic node recovery is turned on, you can label the node and let SageMaker HyperPod replace it, which is convenient for automation:
kubectl label node \ sagemaker.amazonaws.com/node-health-status=UnschedulablePendingReplacement --overwrite To use the API instead, run:
aws sagemaker batch-replace-cluster-nodes --cluster-name --node-ids On clusters that use Karpenter for autoscaling, BatchReplaceClusterNodes terminates the node but creates a replacement only if pending pods need one. After the replacement joins, the training job restarts through the SageMaker HyperPod training operator or the job’s restart policy, and your training script resumes from the newest checkpoint saved before the alarm’s suspect_window starts. Call find_divergent_ranks right after loading it, before the first step. Replacement destroys the node’s root and secondary volumes, so keep checkpoints on shared storage.
The manual steps are for understanding. In production, wrap them in a small controller that runs in your own cluster and account:
Build it as a lightweight Kubernetes operator, or as an Amazon EventBridge rule on the CloudWatch alarm that invokes an AWS Lambda function.
We ran the tests twice on one SageMaker HyperPod cluster orchestrated by Amazon EKS, using 4 and then 3 ml.p5.48xlarge instances with 8 NVIDIA H100 80GB HBM3 GPUs each, and PyTorch 2.9.0 (CUDA 13.0) from the AWS Deep Learning Containers training image. The model was a 953-million-parameter Llama-style decoder with 16 layers, a hidden size of 2,048, 16 attention heads, a 32,000-token vocabulary, and 2,048-token sequences. Each GPU processed 2 sequences per step (131,072 tokens per step on 32 GPUs), with fp32 weights, gradients, and optimizer state, and bf16 autocast for compute. We trained with AdamW at a learning rate of 3 × 10⁻⁴ after a 100-step linear warm-up, with betas of (0.9, 0.95), weight decay of 0.1, and gradient clipping at 1.0. The data was synthetic: a copy task with Zipf-distributed tokens whose first half repeats, seeded per rank and step so that any micro-batch can be rebuilt.
Faults were injected in one layer, the MLP down-projection of the eighth of 16 decoder blocks, on a chosen rank and step:
Every scenario restarts from a snapshot taken after 400 warm-up steps, and step numbers count from it. Unless noted, audits ran every 10 steps with deterministic kernels, weight checks every 10 steps, and a checkpoint every 20. The table shows the 4-instance results. On 3 instances, every scenario raised the same alarm, at the same step, from the same check, naming the same ranks. Only the peer ranks changed.
To measure false alarms, we trained without faults on both cluster sizes, with three schedules each. Every schedule ran the weight check every 10 steps and saved no checkpoints, and each run’s length was fixed in minutes, so the two schedules that audit every step contribute most of the audit steps:
With 0 alarms in 15,320 audit steps, the rule of three puts a 95 percent upper bound of 3 / 15,320, about 1 in 5,100, on the false-alarm rate per audit step. The NaN/Inf checks didn’t fire on any fault-free step either. The gradient-norm analysis in Why not compare local gradient norms? uses the 4-instance runs only.
The weight comparison isn’t limited to DDP. find_divergent_ranks takes any data-parallel group, so it also applies to tensor, pipeline, and context parallelism, HSDP, and mixture of experts, which are all layouts that keep independent copies of each weight. It can’t help under ZeRO-1 or full FSDP sharding, where each shard’s update is computed on only one rank. We tested the checks and the training loop in this post only with DDP.
To use it in another layout, call find_divergent_ranks with the group that holds copies of the same shard. With only two copies, it can detect a disagreement but can’t name the faulty copy.
If you’d rather have the service check your nodes for you, SageMaker HyperPod also offers the MultiNodeTraining deep health check. It runs a short, fixed distributed training job across a batch of GPU nodes, with no code changes, and replaces nodes whose training loss turns NaN or Inf, diverges, or doesn’t finish in time. Select it alongside InstanceStress and InstanceConnectivity when you create an instance group, or run it on demand with StartClusterHealthCheck. It complements the checks in this post: use it to screen new and replacement nodes before your job lands on them, and the in-job checks to catch wrong values in your own training that never become NaN or Inf. For details, visit SageMaker HyperPod Deep Health Checks.
To avoid ongoing charges, delete what you created for testing. If you created a HyperPod cluster, delete it with aws sagemaker delete-cluster --cluster-name . That removes only the HyperPod resources. Delete the EKS cluster, its add-ons, and any Amazon FSx volumes separately, after the HyperPod cluster. See Deleting a SageMaker HyperPod cluster.
In this post, we showed how to detect silent data corruption in data-parallel training and how to hand a suspect node to SageMaker HyperPod for replacement. Three checks cover the three places a fault can land: a NaN/Inf check on each rank’s gradient and on the reduced gradient, a ring replay that compares every GPU’s work with a GPU on another node, and a weight fingerprint comparison after the update. Run the first two before the optimizer step, don’t apply a step that failed a check, and compare weights before every checkpoint. Node names on SageMaker HyperPod EKS clusters turn the suspect rank into an instance ID. Then quarantine the node, roll back to a checkpoint from before the suspect window, and let the node-health label or the Replace API complete the recovery.
To get started, review the SageMaker HyperPod resiliency features for Amazon EKS, and try the companion repository. To go deeper, see deep health checks and the observability add-on.




