View a markdown version of this page

Setting up Studio for Ray - Amazon SageMaker AI

Setting up Studio for Ray

Amazon SageMaker Studio is a web-based IDE that gives data scientists and ML engineers a purpose-built interface for managing Ray workloads.

Prerequisites

You need the following before you set up Studio:

The following are optional, and each one adds a capability rather than gating the setup:

Step 1: Create a SageMaker AI domain

Studio access to a HyperPod cluster runs through a SageMaker AI domain, and the domain execution role is the IAM principal Studio uses to act on your cluster. Create the domain and associate it with your cluster by following Setting up an Amazon EKS cluster in Studio.

Step 2: Grant the domain access to your cluster

Cluster access for Studio users is controlled by cluster-access policies attached to the execution role on the domain or the user profile. Only a role with the right policies attached reaches the cluster.

To grant cluster access
  1. Open the SageMaker AI console and choose HyperPod clusters, then choose your cluster.

  2. On the Configuration tab, find Cluster access for SageMaker domains.

  3. Choose Manage access.

  4. Select the policies your users need:

    • AmazonSagemakerHyperpodTrainingPolicyRayCluster, RayJob, and RayCronJob.

    • AmazonSagemakerHyperpodInferencePolicyRayCluster and RayService.

    • AmazonSagemakerHyperpodSpacePolicy — spaces, for interactive development.

    • AmazonSagemakerHyperpodSpaceTemplatePolicy — space templates.

    • AmazonSagemakerHyperpodUserClusterPolicy — cluster visibility for a user.

  5. Choose whether to scope access to a namespace or to the whole cluster. Scope to a namespace when teams share a cluster.

  6. Save.

Granting access this way creates the Amazon EKS access entry for the execution role for you, so there is no separate step in the Amazon EKS console. For the concepts behind the access model, see Setting up Kubernetes role-based access control.

Step 3: Verify

To confirm access
  1. Open the Domains page in the SageMaker AI console and choose your domain.

  2. Launch Studio for a user profile.

  3. Under Compute, select your HyperPod cluster.

  4. Choose Tasks.

  5. Confirm that you are able to see your Ray workloads.