Amazon SageMaker HyperPod quickstart
This quickstart guides you through creating your first HyperPod cluster with Slurm and Amazon EKS (EKS) orchestrations. Choose the orchestration that best fits your infrastructure needs to get started with SageMaker HyperPod.
In this topic:
Create a Slurm-orchestrated SageMaker HyperPod cluster
Follow these steps to create your first SageMaker HyperPod cluster with Slurm orchestration.
Open the Amazon SageMaker AI console at https://console.amazonaws.cn/sagemaker/
. -
Choose HyperPod Clusters in the left navigation pane and then Cluster Management.
-
On the SageMaker HyperPod Clusters page, choose Create HyperPod cluster.
-
On the Create HyperPod cluster drop-down, choose Orchestrated by Slurm.
-
On the cluster creation page, choose Quick setup. With this option, you get started immediately with default settings. SageMaker AI will create new resources such as VPC, subnets, security groups, Amazon S3 bucket, IAM role, and FSx for Lustre in the process of creating your cluster.
-
On General settings, specify a name for the new cluster. You can’t change the name after the cluster is created.
-
On Instance groups, choose Add group. Each instance group can be configured differently, and you can create a heterogeneous cluster that consists of multiple instance groups with various instance types. To deploy a cluster, you must add at least one instance group. You can add one instance group at a time. To create multiple instance groups, repeat the process for each instance group.
Follow these steps to add an instance group.
-
For Instance group type, choose a type for your instance group. For this quickstart, choose Controller (head) for
my-controller-group
, Login formy-login-group
, and Compute (worker) forworker-group-1
. -
For Name, specify a name for the instance group. For this quickstart, create three instance groups named
my-controller-group
,my-login-group
, andworker-group-1
. -
For Instance capacity, choose either on-demand capacity or a training plan to reserve your compute resources.
-
For Instance type, choose the instance for the instance group. For this quickstart, select
ml.c5.xlarge
formy-controller-group
,ml.m5.4xlarge
formy-login-group
, andml.trn1.32xlarge
forworker-group-1
.Ensure that you choose the instance type with sufficient quotas in your account, or request additional quotas by following the instructions at SageMaker HyperPod quotas.
-
For Instance quantity, specify an integer not exceeding the instance quota for cluster usage. For this quickstart, enter 1 for all three groups.
-
For Target Availability Zone, choose the Availability Zone where your instances will be provisioned. The Availability Zone should correspond to the location of your accelerated compute capacity.
-
For Additional storage volume per instance (GB) - optional, specify an integer between 1 and 16384 to set the size of an additional Elastic Block Store (EBS) volume in gigabytes (GB). The EBS volume is attached to each instance of the instance group. The default mount path for the additional EBS volume is
/opt/sagemaker
. After the cluster is successfully created, you can SSH into the cluster instances (nodes) and verify if the EBS volume is mounted correctly by running thedf -h
command. Attaching an additional EBS volume provides stable, off-instance, and independently persisting storage, as described in the Amazon EBS volumes section in the Amazon Elastic Block Store User Guide. -
Choose Add instance group.
-
-
On Quick configuration defaults, review the default settings. This section lists all the default settings for your cluster creation, including all the new Amazon resources that will be created during the cluster creation process.
-
Choose Submit.
For more information, see Getting started with SageMaker HyperPod using the SageMaker AI console.
Create an EKS-orchestrated SageMaker HyperPod cluster
Follow these steps to create your first SageMaker HyperPod cluster with Amazon EKS orchestration.
Open the Amazon SageMaker AI console at https://console.amazonaws.cn/sagemaker/
. -
Choose HyperPod Clusters in the left navigation pane and then Cluster Management.
-
On the SageMaker HyperPod Clusters page, choose Create HyperPod cluster.
-
On the Create HyperPod cluster drop-down, choose Orchestrated by Amazon EKS.
-
On the cluster creation page, choose Quick configuration. With this option, you can get started immediately with default settings. SageMaker AI will create new resources such as VPC, subnets, security groups, Amazon S3 bucket, IAM role, and FSx for Lustre in the process of creating your cluster.
-
On General settings, specify a name for the new cluster. You can’t change the name after the cluster is created.
-
On Instance groups, choose Add group. Each instance group can be configured differently, and you can create a heterogeneous cluster that consists of multiple instance groups with various instance types. To deploy a cluster, you must add at least one instance group. You can add one instance group at a time. To create multiple instance groups, repeat the process for each instance group.
Follow these steps to add an instance group.
-
For Instance group type, choose Standard or Restricted Instance Group (RIG). Typically, you will choose Standard, which provides a general purpose computing environment without additional security restrictions. Restricted Instance Group (RIG) is a specialized environment for foundational models customization such as Amazon Nova. For more information about setting up RIG for Amazon Nova model customization, see Amazon Nova customization on Amazon SageMaker HyperPod.
-
For Name, specify a name for the instance group.
-
For Instance capacity, choose either on-demand capacity or a training plan to reserve your compute resources.
-
For Instance type, choose the instance for the instance group. Ensure that you choose the instance type with sufficient quotas in your account, or request additional quotas by following at SageMaker HyperPod quotas.
-
For Instance quantity, specify an integer not exceeding the instance quota for cluster usage. For this quickstart, enter 1 for all three groups.
-
For Target Availability Zone, choose the Availability Zone where your instances will be provisioned. The Availability Zone should correspond to the location of your accelerated compute capacity.
-
For Additional storage volume per instance (GB) - optional, specify an integer between 1 and 16384 to set the size of an additional Elastic Block Store (EBS) volume in gigabytes (GB). The EBS volume is attached to each instance of the instance group. The default mount path for the additional EBS volume is
/opt/sagemaker
. After the cluster is successfully created, you can SSH into the cluster instances (nodes) and verify if the EBS volume is mounted correctly by running thedf -h
command. Attaching an additional EBS volume provides stable, off-instance, and independently persisting storage, as described in the Amazon EBS volumes section in the Amazon Elastic Block Store User Guide. -
For Instance deep health checks, choose your option. Deep health checks monitor instance health during creation and after software updates, automatically recovering faulty instances through reboots or replacements when enabled.
-
Choose Add instance group.
-
-
On Quick configuration defaults, review the default settings. This section lists all the default settings for your cluster creation, including all the new Amazon resources that will be created during the cluster creation process.
-
Choose Submit.
For more information, see Creating a SageMaker HyperPod cluster with Amazon EKS orchestration.
Submit workloads
Follow these workshop tutorials to submit sample workloads.