Amazon SageMaker HyperPod Expands Job Recovery and Infrastructure Validation Features

AWS has added three new features to Amazon SageMaker HyperPod: MultiNode Training Validation, Kubernetes Resource Monitoring Agent, and Hung Job Detection. The core focus is on early detection of numerical faults, cluster-level Kubernetes failures, and job hang phenomena that were previously undetectable by existing node-level hardware checks, thereby increasing goodput. It demonstrated a cost-saving effect where a loss of approximately $16,900 from leaving a 256 H100 GPU cluster idle for 8 hours was reduced to $530 with a 15-minute detection rule. Hung job detection has been newly introduced in Slurm clusters, while EKS clusters are already supported through the existing HyperPod training operator and Ray Train.

Limitations of Node-Level Health Checks and Goodput Loss

Large-scale model training jobs can fail even when all nodes appear normal. A GPU with subtle faults can pass stress tests while returning incorrect values, and even if a job is halted due to NCCL timeouts, Slurm still shows it as 'running'. If a device plugin crashes in a node, the error message does not mention the plugin. Teams typically discover issues only after the loss curve diverges or the job fails, by which time computing resources have already been consumed. Each of these failures reduces goodput, the ratio of cluster time spent on meaningful training.

The existing HyperPod resilience feature targets single-node hardware. The Health Monitoring Agent (HMA) monitors GPU errors (Xid, NVLink), EFA errors, and kernel errors. The InstanceStress deep health check inspects GPUs, GPU memory, NVLink, and EFA devices with DCGM level 4 diagnostics. The InstanceConnectivity check performs NCCL tests between GPU instances and NCCOM tests in Trainium. While these confirm that the hardware of each node is operational, they cannot ascertain the following three:

"Each of these failures reduces goodput, the ratio of cluster time spent on meaningful training."

The HyperPod blog post defines goodput in three ways.

Goodput TypeDefinition
Scheduling GoodputThe ratio of time when all resources required for the job are available
Runtime GoodputThe ratio of time during which the job is making progress
Program GoodputThe ratio of actual achievement compared to hardware peak performance

Node-level checks only address scheduling goodput. Three types of failures that undermine runtime goodput and program goodput are overlooked.

1. Numerical Faults: GPUs that pass all hardware tests compute incorrect results. The first signs are NaN or infinite losses in production runs. Meta reported that out of 419 unexpected interruptions during the 54-day pre-training of Llama 3 405B, 6 were due to Silent Data Corruption. 2. Hung Jobs: NCCL timeouts, stalled data pipelines, and deadlocks halt jobs without terminating them. Jobs remain occupying GPU and memory while Slurm shows them as 'running'. 3. Cluster-Level Failures: Occur at the Kubernetes layer. This includes device plugin crash loops, essential DaemonSets not starting, and mismatched ranks in NCCL collective across different nodes. HMA views each node independently, so it misses these issues. Often, when a job fails, the error does not indicate which pod or node is at fault.

Three New Capabilities: Covering All Phases of Provisioning, Execution, and Continuous Monitoring

This announcement introduces three features targeting each of the aforementioned failure types. Each feature addresses a different point in the training execution.

FeatureTarget ClusterOperating PointDetection Target
MultiNodeTrainingValidationEKS Orchestrated HyperPodAt provisioning or on-demandGPU computation accuracy (NaN/Inf losses, timeouts)
HyperPod Kubernetes Resource Monitoring AgentEKS Orchestrated HyperPodContinuousKubernetes layer failures (plugin crash loops, missing DaemonSets, tainted nodes)
Hung Job DetectionSlurm Cluster (new), EKS (existing support)During job executionProgress stalls (NCCL timeouts, pipeline stalls, deadlocks)

"Each feature recovers lost goodput at different points in the training execution."

Hung job detection has been newly added to Slurm clusters. In EKS clusters, hung job detection is already provided through the HyperPod training operator, and Ray Train jobs inherently have hung detection capabilities.

MultiNodeTrainingValidation: Early Detection of Numerical Faults

MultiNodeTrainingValidation is a new deep health check for EKS orchestrated HyperPod clusters. At instance provisioning or during on-demand execution, a fixed small workload is first trained on each instance, followed by training across the same type of instances. Instances are deemed failed if the loss becomes NaN or infinite, or if training does not complete within a specified time. Since the workload is fixed, failures point to hardware rather than model or code changes. Failed instances are labeled as failed, and if automatic node recovery is enabled, they are rebooted or replaced.

This check adds two tests.

The relationship with existing deep health checks is as follows.

Check NameScopeInspection Content
InstanceStressSingle NodeDCGM Level 4, GPU/Memory/NVLink/EFA
InstanceConnectivityBetween NodesNCCL (GPU) or NCCOM (Trainium)
MultiNodeTrainingValidationBetween Nodes (Training Workload)Actual training loss NaN/Inf, completion time

Prerequisites: EKS orchestrated HyperPod cluster, EFA supported NVIDIA GPU instance group (e.g., ml.p5.48xlarge). The Megatron test runs between same-type instances.

HyperPod Kubernetes Resource Monitoring Agent: Visualizing Cluster Layer Failures

HyperPod Kubernetes Resource Monitoring Agent continuously monitors the Kubernetes layer of EKS clusters. The main detection targets are as follows.

When a job fails, it reports the related pods and nodes through Kubernetes events and Amazon CloudWatch logs. Unlike the existing HMA that only looks at node hardware, this agent checks the health of cluster-level components, addressing issues where "the error did not indicate which pod/node was the cause."

Hung Job Detection: Automatic Recovery from Slurm Job Stalls

Hung Job Detection has been newly introduced in Slurm clusters. Agents on each node monitor the job's output, GPU activity, or custom log patterns. Upon detecting a progress stall, it logs an event to CloudWatch and cancels the job according to the configuration, allowing Slurm to requeue it.

  1. Node Agent Monitoring (Output/GPU/Log Patterns)
  2. CloudWatch Event Logging
  3. Job Cancellation (Optional)
  4. Slurm Requeue

Cost-Saving Simulation: Case of 256 H100 GPU Cluster

The blog presents a specific cost scenario.

ScenarioDurationInstance-HoursGPU-HoursEstimated Cost (Northern Virginia, On-Demand $66/Instance-Hour)
No Detection (1 AM - 9 AM)8 hours2562,048Approximately $16,900
15-Minute Detection Rule Applied15 minutes864Approximately $530
Savings-2481,984Approximately $16,400

"Setting the hung job detection rule to 15 minutes allows HyperPod to cancel stalled jobs and requeue in Slurm. The hung cost is reduced to about $530, saving approximately $16,400."

This figure demonstrates that improvements in runtime goodput lead directly to TCO savings.

Practical Implications: So What from Developer, Operator, and Business Perspectives?

This update directly addresses the long-standing pain point that "even if nodes appear healthy, training can fail." Developers can filter out hardware faults at the provisioning stage without changing training code, operators can immediately recognize Kubernetes layer failures through events and logs, and Slurm users can automatically block budget waste caused by stalled hung jobs. Notably, the method of validating numerical faults using fixed Megatron-LM workloads establishes reproducible hardware validation criteria by excluding model and code variables. The addition of hung job detection to Slurm clusters also signifies the completion of runtime goodput protection across all three major orchestration environments: Slurm, EKS, and Ray.

Verified figures

Our take

The approach of automating the capture of hardware faults that silently disrupt learning at the software level is valid. In particular, the exclusion of model and code variables through fixed workload validation and the expansion of hung detection across Slurm, EKS, and Ray orchestration environments are likely to directly contribute to practical goodput improvements.

Open questions

Source

Back to catalog