Massive-scale mannequin coaching is likely one of the costliest workloads you may run on GPUs, and a single unhealthy accelerator can stall a whole distributed job. When coaching throughput drops, the laborious half isn’t noticing that one thing is unsuitable. It is determining why and the place. Groups typically spend hours or days sifting by way of logs and disconnected dashboards to resolve whether or not a slowdown got here from a throttled GPU, a saturated community hyperlink, or a stalled knowledge pipeline on the host.
As we speak, we’re saying enhanced observability in Amazon SageMaker HyperPod, a brand new functionality that helps you diagnose GPU coaching points sooner. It brings collectively diagnostic and profiling capabilities for coaching workloads that run on each Amazon Elastic Kubernetes Service (Amazon EKS) and Slurm orchestrators:
Diagnostic abstract makes use of Amazon CloudWatch’s DetectGroupOutliers API to match every GPU in a coaching job on utilization, reminiscence, temperature, energy, and SM clock, and flags GPUs that deviate from their friends. Static diagnostic guidelines floor frequent failure patterns equivalent to GPU {hardware} faults (XID errors, ECC reminiscence errors), EFA throughput drops, thermal throttling, and overheating, so that you catch degradation earlier than it impacts coaching.
Why you want it
Distributed coaching is pricey, and small inefficiencies compound into important wasted GPU hours. Till now, getting visibility into HyperPod infrastructure meant stitching collectively separate instruments, and even then, the metrics advised you that efficiency had degraded with out telling you why.
Enhanced observability closes three gaps. It isolates a single dangerous accelerator throughout a whole lot or hundreds of GPUs whether or not by way of XID errors, ECC reminiscence faults, or thermal throttling, so that you spend time on the repair as an alternative of the search.
Collectively, these capabilities cut back troubleshooting time and enable you preserve costly accelerators busy.
The way it works
Every functionality targets a unique layer of a distributed coaching job.
Default and superior metrics
Enhanced observability collects telemetry at two ranges:
Default metrics (enabled robotically) cowl cluster well being, CPU/disk/OS-level utilization, GPU utilization and temperature, and per-job useful resource utilization. These metrics are collected each 30 seconds and despatched to your chosen metric retailer with roughly 1–2% CPU overhead and 250–300 MB of reminiscence.
Superior metrics (opt-in) present deeper visibility:
- Full node exporter suite: complete host-level metrics.
- All NVIDIA GPU DCGM and AWS Neuron metrics: detailed accelerator telemetry together with clock speeds, energy, PCIe exercise, and error indicators.
- Elastic Cloth Adapter (EFA) metrics: community interface throughput, drops, retransmissions, and errors.
Superior metrics are optionally available as a result of they improve the quantity of telemetry despatched to your metric retailer, which has a price implication. Most clients operating small jobs on small clusters might not want them, however they’re important for long-running coaching jobs on giant clusters the place patterns emerge over time.
Metric shops
You’ll be able to select between two metric shops:
- Amazon CloudWatch (new default) offers native monitoring by way of CloudWatch SageMaker Insights, so you may visualize metrics with out leaving the AWS Administration Console.
- Amazon Managed Service for Prometheus for groups that standardize on Prometheus and Grafana for observability.
Beforehand, solely Prometheus was supported. CloudWatch is now the default, providing decrease pricing in comparison with Amazon Managed Service Prometheus and tighter integration with the SageMaker console.
Diagnostic abstract
The diagnostic abstract makes use of two complementary approaches to floor points throughout your HyperPod cluster.
GPU outlier detection makes use of CloudWatch’s DetectGroupOutliers API to match GPUs inside a coaching job throughout utilization, reminiscence utilization, temperature, energy draw, and SM clock frequency. When a GPU deviates considerably from its friends, it seems as an outlier card within the diagnostic abstract. This works for each EKS and Slurm jobs.
Static diagnostic guidelines consider recognized failure patterns and manage detected points by sort:
- {Hardware}: GPU ECC reminiscence errors, XID faults, accelerator failures.
- Community: EFA throughput degradation, packet drops, retransmissions.
- Throttling: GPU clock throttling due to warmth, board, or reliability limits.
- Overheating: GPU temperatures exceeding configured limits.
Every detected subject identifies the affected job, cluster, node, accelerator, and rank.
The best way to get began
Enhanced observability is delivered as an add-on for EKS-orchestrated clusters and as an extension for Slurm-orchestrated clusters, which suggests you management who can set up or change it by way of AWS Identification and Entry Administration (IAM).
Step 1: Create a SageMaker HyperPod cluster
If you have already got a cluster, you should use it. To create a brand new SageMaker HyperPod cluster, you may observe the step-by-step define. On the whole, the steps are as follows:
- On the Amazon SageMaker AI console, select HyperPod clusters within the navigation pane.
- Select Create HyperPod cluster and Orchestrated on Amazon EKS or Orchestrated by Slurm.
- For Setup choices, choose Customized setup.
- For Title, enter a reputation.
- For Occasion restoration, choose Computerized.
- Select Submit.
The next screenshot reveals the Create HyperPod cluster web page.
Step 2: Configure HyperPod observability
Within the Customized setup workflow, broaden the HyperPod observability part:
- Allow HyperPod Observability is checked by default. Uncheck provided that you don’t want observability.
- Observability metrics present default metrics (cluster well being, CPU/disk/OS, GPU utilization/temperature, per-job sources) plus optionally available superior metrics.
- Choose superior metrics as wanted: Full node exporter suite, All NVIDIA GPU DCGM/Neuron metrics and EFA metrics.
- Allow logging to create CloudWatch log teams for containers and pod logs.
- For Metric retailer, select Amazon CloudWatch (default) or Amazon Managed Service for Prometheus.
- For Grafana workspace, select to create a brand new workspace, use an present one, or choose None.
- Configure IAM roles or let the console create them robotically.
The next determine reveals the configuration choices for HyperPod observability within the customized setup path:
Determine 2: The HyperPod observability part exhibiting default and superior metrics, metric retailer (CloudWatch or Prometheus), and Grafana workspace
Notice: In Fast setup, HyperPod observability is enabled by default and can’t be unchecked. Customized setup offers you management over which metric classes and superior metrics to allow.
Step 3: Set up the observability add-on utilizing the CLI (different, EKS)
You’ll be able to set up the HyperPod observability add-on (EKS) or extension (Slurm) from the AWS Administration Console or by way of the API. Alternatively, you may set up the add-on with the AWS Command Line Interface (AWS CLI).
The next command creates the add-on, allows the fundamental metric classes and leaves the opt-in profiling capabilities off:
Confirm the add-on is ACTIVE:
The next determine reveals the observability add-on on the cluster’s Add-ons tab.
Determine 3: The observability add-on on the cluster’s Add-ons tab, lively and sending metrics to Amazon CloudWatch
Step 4: Allow metrics (EKS)
You’ll be able to allow or disable any metric class or profiling functionality at any time. For an EKS cluster, replace the add-on configuration with the AWS Command Line Interface (AWS CLI). The next command activates superior community (EFA) metrics:
From the console, select Actions, then Edit on the add-on card to make the identical adjustments. The next determine reveals the Actions button.
Slurm clusters: set up or edit the observability extension
On Slurm-orchestrated clusters, HyperPod observability is a cluster extension. From the cluster element web page, open the Extensions tab. If the extension is put in, select Actions, then Edit. The next determine reveals the observability extension on a Slurm cluster’s Extensions tab.
The edit web page units a group degree for every metric class.
Determine 6: Modifying observability on a Slurm cluster: metric classes, host profiling, and the metric retailer
To put in the extension with the AWS CLI as an alternative:
To activate EFA metrics, replace the extension:
Examine the standing with aws sagemaker describe-cluster-extension --cluster-arn .
Step 5: Verify metrics are streaming
After the cluster is prepared, navigate to the cluster’s element web page. The brand new Observability tab shows an outline with:
- Nodes: complete node rely (for instance, 128).
- Accelerators: complete GPU/accelerator rely (for instance, 1024).
- Jobs: lively and up to date coaching job rely.
- Avg. GPU utilization: fleet-wide common (for instance, 87.3%).
- Avg. vCPU utilization: fleet-wide common (for instance, 76.8%).
- Avg. reminiscence utilization: fleet-wide common (for instance, 83.5%).
The next picture reveals the Cluster Observability tab with overview metrics, lively and up to date coaching jobs, and lively points:
Determine 7: The brand new Observability tab — fleet overview, lively coaching jobs, and detected points
CloudWatch dashboard
From the Observability tab, select Open dashboard to navigate to the CloudWatch SageMaker Insights expertise. The dashboard offers a number of views:
Diagnostic abstract
The Diagnostic abstract reveals incidents detected throughout your HyperPod clusters. Pinpoint the foundation trigger whether or not it’s a {hardware} fault, a community subject, throttling, or overheating.
Select any incident card to see extra particulars. Every card names the affected job, cluster, accelerator, and rank.
The next screenshot reveals the Diagnostic abstract tab:
Determine 8: Diagnostic abstract the place every incident card names the job, cluster, accelerator, and subject sort, with a cross-layer clarification
The next determine reveals an incident element:
Determine 9: Incident element exhibiting the affected job, cluster, occasion, and accelerator, with proof charts in opposition to the fleet common
{Hardware} tab
The {Hardware} tab offers a device-level view of your accelerator fleet. The fleet topology map reveals each gadget’s state (Lively, Idle, and Unhealthy). The gadget desk lists the accelerator sort, proudly owning staff, utilization, temperature, EFA utilization, standing, and the workload operating on every gadget. You’ll be able to search and filter by standing, accelerator, or staff to seek out an unhealthy gadget shortly.
The next screenshot reveals the {Hardware} tab:
Determine 10: {Hardware} tab exhibiting fleet topology and per-device accelerator, staff, utilization, temperature, EFA, standing, and workload
Workload tab
The Workload tab lists lively and up to date coaching jobs with their sort (for instance, distributed coaching, fine-tuning, or reinforcement studying), standing, and length. It additionally reveals useful resource utilization per job: EFA, GPU and CPU utilization, and reminiscence. The tab flags jobs with irregular community utilization.
The next screenshot reveals the Workload tab:
Determine 11: Workload tab exhibiting coaching jobs with per-job EFA, GPU, CPU, and reminiscence utilization
You’ll be able to choose a job to view extra particulars. The next screenshot reveals the job element view:
The Community tab
The Community tab summarizes the well being of the inter-node communication cloth for distributed workloads. Overview metrics embrace fleet-average EFA utilization, degraded node rely, and retransmits. A breakdown by occasion sort reveals the share of wholesome and degraded nodes for every.
The next screenshot reveals the Community tab:
Amazon Managed Grafana dashboard
From the cluster Observability tab or the Add-ons web page, select Open dashboard in Grafana to entry prebuilt Amazon Managed Grafana dashboards. These dashboards offer you full-stack visibility into HyperPod clusters, with telemetry from CloudWatch or Prometheus visualized throughout cluster, node, GPU, community, and job dimensions.
Notice: If utilizing Grafana for the primary time, you will need to first configure AWS IAM Identification Middle and add Grafana customers. Documentation hyperlinks are supplied throughout cluster creation when you choose the Grafana metric retailer possibility.
The next screenshot reveals a prebuilt Grafana dashboard:
Now obtainable
Enhanced observability in Amazon SageMaker HyperPod is on the market at the moment in all AWS Areas the place SageMaker HyperPod is on the market.
Study extra:
In regards to the authors







