Skip to content

Search Training Plan Offerings

sagemaker_search_training_plan_offerings R Documentation

Searches for available training plan offerings based on specified criteria

Description

Searches for available training plan offerings based on specified criteria.

  • Users search for available plan offerings based on their requirements (e.g., instance type, count, start time, duration).

  • And then, they create a plan that best matches their needs using the ID of the plan offering they want to use.

For more information about how to reserve GPU capacity for your SageMaker training jobs or SageMaker HyperPod clusters using Amazon SageMaker Training Plan , see create_training_plan.

Usage

sagemaker_search_training_plan_offerings(InstanceType, InstanceCount,
  StartTimeAfter, EndTimeBefore, DurationHours, TargetResources)

Arguments

InstanceType

[required] The type of instance you want to search for in the available training plan offerings. This field allows you to filter the search results based on the specific compute resources you require for your SageMaker training jobs or SageMaker HyperPod clusters. When searching for training plan offerings, specifying the instance type helps you find Reserved Instances that match your computational needs.

InstanceCount

[required] The number of instances you want to reserve in the training plan offerings. This allows you to specify the quantity of compute resources needed for your SageMaker training jobs or SageMaker HyperPod clusters, helping you find reserved capacity offerings that match your requirements.

StartTimeAfter

A filter to search for training plan offerings with a start time after a specified date.

EndTimeBefore

A filter to search for reserved capacity offerings with an end time before a specified date.

DurationHours

The desired duration in hours for the training plan offerings.

TargetResources

[required] The target resources (e.g., SageMaker Training Jobs, SageMaker HyperPod) to search for in the offerings.

Training plans are specific to their target resource.

  • A training plan designed for SageMaker training jobs can only be used to schedule and run training jobs.

  • A training plan for HyperPod clusters can be used exclusively to provide compute resources to a cluster's instance group.

Value

A list with the following syntax:

list(
  TrainingPlanOfferings = list(
    list(
      TrainingPlanOfferingId = "string",
      TargetResources = list(
        "training-job"|"hyperpod-cluster"
      ),
      RequestedStartTimeAfter = as.POSIXct(
        "2015-01-01"
      ),
      RequestedEndTimeBefore = as.POSIXct(
        "2015-01-01"
      ),
      DurationHours = 123,
      DurationMinutes = 123,
      UpfrontFee = "string",
      CurrencyCode = "string",
      ReservedCapacityOfferings = list(
        list(
          InstanceType = "ml.p4d.24xlarge"|"ml.p5.48xlarge"|"ml.p5e.48xlarge"|"ml.p5en.48xlarge"|"ml.trn1.32xlarge"|"ml.trn2.48xlarge",
          InstanceCount = 123,
          AvailabilityZone = "string",
          DurationHours = 123,
          DurationMinutes = 123,
          StartTime = as.POSIXct(
            "2015-01-01"
          ),
          EndTime = as.POSIXct(
            "2015-01-01"
          )
        )
      )
    )
  )
)

Request syntax

svc$search_training_plan_offerings(
  InstanceType = "ml.p4d.24xlarge"|"ml.p5.48xlarge"|"ml.p5e.48xlarge"|"ml.p5en.48xlarge"|"ml.trn1.32xlarge"|"ml.trn2.48xlarge",
  InstanceCount = 123,
  StartTimeAfter = as.POSIXct(
    "2015-01-01"
  ),
  EndTimeBefore = as.POSIXct(
    "2015-01-01"
  ),
  DurationHours = 123,
  TargetResources = list(
    "training-job"|"hyperpod-cluster"
  )
)