Tutorials

Announcing workload recovery and broader infrastructure checks for Amazon SageMaker HyperPod

SageMaker HyperPod adds validation, Kubernetes monitoring, and hung-job detection to catch GPU and cluster failures, reducing lost training time

Announcing workload recovery and broader infrastructure checks for Amazon SageMaker HyperPod

Key Takeaways

  • Amazon SageMaker HyperPod introduces new workload recovery and infrastructure checks to detect failures that node-level hardware monitoring can miss in large multi-node GPU training jobs.
  • MultiNodeTrainingValidation is a deep health check for EKS clusters that catches GPUs which pass hardware tests but still produce NaN or infinite loss, or fail to finish training on time.
  • The HyperPod Kubernetes Resource Monitoring Agent continuously tracks Kubernetes node, pod, DaemonSet, device-plugin, and NCCL states to identify cluster-level failures across nodes.
  • Hung job detection for Slurm clusters finds stalled jobs that do not exit, cancels them quickly, and allows requeuing to reduce wasted GPU compute.
  • These capabilities are designed to improve goodput by preventing silent data corruption, hung jobs, and Kubernetes-level issues from consuming valuable training time.

Amazon SageMaker HyperPod workload recovery and infrastructure checks are aimed at teams running large multi-node training jobs on GPU clusters. Amazon has introduced three new capabilities—MultiNodeTrainingValidation, the HyperPod Kubernetes Resource Monitoring Agent, and hung job detection—to catch failures that node-level hardware checks can miss. These features are designed to raise goodput, the share of a cluster’s time that goes to useful training, by finding problems before lost hours of GPU compute are spent.

Announcing workload recovery and broader infrastructure checks for Amazon SageMaker HyperPod

Why single-node health checks can miss failures

SageMaker HyperPod already includes hardware-focused resiliency features. The health monitoring agent, or HMA, watches each node for GPU errors such as Xid and NVLink faults, Elastic Fabric Adapter (EFA) errors, and kernel errors. Deep health checks run during provisioning, and automatic node recovery can reboot or replace faulty hardware.

The existing InstanceStress deep health check runs DCGM level 4 diagnostics and tests each instance’s GPUs, GPU memory, NVLink, and EFA devices. The InstanceConnectivity check runs NCCL tests across GPU instances, or NCCOM tests on AWS Trainium. Together, these checks confirm that a node’s hardware is working. They do not answer three broader questions: whether GPUs train correctly, whether a job is still making progress, and whether the Kubernetes components a job depends on are healthy.

Three failure patterns can pass node-level checks.

First, numerical faults can occur when a GPU passes every hardware test but still computes wrong results. The first sign is often NaN, or not-a-number, or infinite loss in a production run. Meta attributed 6 of the 419 unexpected interruptions in its 54-day Llama 3 405B pre-training run to silent data corruption, as described in The Llama 3 Herd of Models.

Second, hung jobs can stall without exiting. An NCCL timeout, a stalled data pipeline, or a deadlock can stop a job while Slurm still reports it as running. The job keeps its GPUs and their memory until someone checks the loss curve or the logs.

Third, cluster-level failures can happen in Kubernetes rather than in node hardware. A device plugin may crash-loop, a required DaemonSet may never start on a new node, or ranks on different nodes may fall out of step in an NCCL collective. Because HMA checks each node on its own, it does not see these problems. When the job fails, the error often does not name the pod or node that caused it.

The three new capabilities

CapabilityWhat it catchesWhen it runsAvailable on
MultiNodeTrainingValidation deep health checkNaN or infinite loss, or training that does not finish in time, on GPUs that pass hardware checksWhen instances are created or updated, or on demandEKS clusters, on supported EFA-enabled NVIDIA GPU instances
HyperPod Kubernetes Resource Monitoring AgentNode condition changes, pod and DaemonSet failures, and failed training jobs, with the pods and nodes involved; NCCL communication state for jobs that opt inContinuouslyEKS clusters
Hung job detectionJobs that stop making progress but do not exitWhile each job runsSlurm clusters

Hung job detection is new for Slurm clusters. On EKS clusters, HyperPod already detects hung jobs that run through the HyperPod training operator, and Ray Train jobs get hang detection by default.

Each capability targets a different source of lost goodput. Scheduling goodput is the share of time that all the resources a job needs are available. Runtime goodput is the share of that time in which the job makes forward progress. Program goodput is the share of the hardware’s peak performance that the job gets.

MultiNodeTrainingValidation affects scheduling goodput because instances that fail the training test are labeled and, with automatic node recovery turned on, replaced so jobs do not start on hardware that produces invalid output. It affects runtime goodput by reducing production runs lost to NaN or infinite loss from a faulty GPU. It also flags instances whose training does not finish within the time limit.

The HyperPod Kubernetes Resource Monitoring Agent affects scheduling goodput by reporting nodes that lose GPUs or EFA devices, missing device plugins, and taints, so capacity can be restored sooner. It affects runtime goodput by naming the pods and nodes behind a failed job, so the cause can be found and the job can be restarted sooner. It has no direct effect on program goodput.

Hung job detection has no direct effect on scheduling or program goodput, but it affects runtime goodput by flagging a hung job in minutes instead of hours and canceling it so Slurm can requeue it.

A concrete cost example

Consider a pre-training job running on 32 ml.p5.48xlarge instances, or 256 NVIDIA H100 GPUs. If the job hangs at 1:00 AM and no one notices until 9:00 AM, it wastes 256 instance-hours, or 2,048 GPU-hours. At the SageMaker HyperPod on-demand price of approximately $66 per instance-hour in US East (N. Virginia), the hang costs about $16,900.

With a 15-minute hung job detection rule, HyperPod cancels the stalled job and Slurm requeues it. In that case, the hang costs about $530 instead, saving approximately $16,400.

How to set up and read MultiNodeTrainingValidation

MultiNodeTrainingValidation is a deep health check for HyperPod clusters orchestrated by Amazon Elastic Kubernetes Service, or Amazon EKS. It trains a fixed, known-good workload first on each instance and then across instances of the same type. It catches GPUs that pass InstanceStress and InstanceConnectivity but produce NaN or infinite loss once they train together. If an instance fails, HyperPod labels it as failed and, with automatic node recovery turned on, reboots or replaces it. When the check runs during provisioning, this happens before jobs can use the instance.

  1. Meet the prerequisites. You need an Amazon SageMaker HyperPod cluster orchestrated by Amazon EKS and an instance group of a supported EFA-enabled NVIDIA GPU instance type, such as ml.p5.48xlarge. The Megatron test runs across instances of the same type.
  1. Turn on MultiNodeTrainingValidation during cluster creation or update. HyperPod runs deep health checks when it creates or updates instances. To include MultiNodeTrainingValidation, add it to OnStartDeepHealthChecks in the instance group configuration passed to create-cluster or update-cluster. The example configuration used InstanceGroupName, InstanceType ml.p5.48xlarge, InstanceCount 2, a LifeCycleConfig with SourceS3Uri and OnCreate on_create.sh, an ExecutionRole, and OnStartDeepHealthChecks set to InstanceStress, InstanceConnectivity, and MultiNodeTrainingValidation.
  1. Confirm the setting. Run the aws sagemaker describe-cluster command with a query for the instance group’s OnStartDeepHealthChecks field. The output lists the three checks: InstanceStress, InstanceConnectivity, and MultiNodeTrainingValidation.
  1. Run MultiNodeTrainingValidation on demand. You can check instances already in the cluster, for example before a long pre-training run, using the StartClusterHealthCheck API through the aws sagemaker start-cluster-health-check command. The command accepts deep-health-check-configurations. To check specific instances instead of the whole group, add InstanceIds to the configuration.
  1. Check the results. HyperPod writes one line per test to the DeepHealthCheckResults log stream in the cluster’s CloudWatch log group under /aws/sagemaker/Clusters. In the example run on two ml.p5.48xlarge instances, TINY_MEGATRON and MEGATRON are the two MultiNodeTrainingValidation tests.
TimeResultInstance IDs
2026-11-11T10:58:33ZDeep health check configuration validation passedNot listed
2026-11-11T11:01:41Z2 out of 2 nodes succeeded HARDWARE_CHECK testi-0a1b2c3d4e5f60001 and i-0a1b2c3d4e5f60002
2026-11-11T12:16:07Z2 out of 2 nodes succeeded DCGM testi-0a1b2c3d4e5f60001 and i-0a1b2c3d4e5f60002
2026-11-11T12:17:14Z2 out of 2 nodes succeeded EFA testi-0a1b2c3d4e5f60001 and i-0a1b2c3d4e5f60002
2026-11-11T12:21:16Z2 out of 2 nodes succeeded TINY_MEGATRON testi-0a1b2c3d4e5f60001 and i-0a1b2c3d4e5f60002
2026-11-11T12:22:25Z0 nodes failed NCCL test at batch size 2None
2026-11-11T12:22:29Z2 out of 2 nodes succeeded NCCL testi-0a1b2c3d4e5f60001 and i-0a1b2c3d4e5f60002
2026-11-11T12:26:31Z0 nodes failed MEGATRON test at batch size 2None
2026-11-11T12:26:31Z2 out of 2 nodes succeeded MEGATRON testi-0a1b2c3d4e5f60001 and i-0a1b2c3d4e5f60002

When the run finishes, each instance carries the result as a node label.

Common mistakes

  • Expecting HMA to catch Kubernetes-level failures. HMA checks each node’s hardware, not the cluster-wide Kubernetes state that a job may depend on.
  • Waiting for the loss curve to diverge before noticing a hung job. A job can remain listed as running while using GPUs and memory without making progress.
  • Turning on MultiNodeTrainingValidation without automatic node recovery. The check labels failed instances, but reboot or replacement requires automatic node recovery.
  • Assuming MultiNodeTrainingValidation tests your own model or code. It uses a fixed workload, so a failure points to hardware rather than a model or code change.
  • Forgetting that the Megatron test needs instances of the same type. The check runs across instances of the same supported EFA-enabled NVIDIA GPU instance type.

Meta description: Amazon SageMaker HyperPod adds training validation, Kubernetes monitoring, and hung job detection to catch GPU faults sooner and raise training goodput.

Tags: SageMaker HyperPod, GPU training, cluster monitoring, Amazon EKS, Slurm

Featured image: abstract, friendly illustration of GPU cluster nodes, Kubernetes pods, and a Slurm job queue, with no people, logos, or text

Comments (0)

  1. No comments yet. Be the first to share what worked for you.

Leave a comment

Comments are reviewed before they appear. Your email address is not published.