search_training_plan_offerings
async
¶
search_training_plan_offerings(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
instance_type: Optional[ReservedCapacityInstanceType] = None,
instance_count: Optional[ReservedCapacityInstanceCount] = None,
ultra_server_type: Optional[UltraServerType] = None,
ultra_server_count: Optional[UltraServerCount] = None,
start_time_after: Optional[Timestamp] = None,
end_time_before: Optional[Timestamp] = None,
duration_hours: Optional[TrainingPlanDurationHoursInput] = None,
target_resources: Optional[SageMakerResourceNames] = None,
training_plan_arn: Optional[String] = None,
) -> SearchTrainingPlanOfferingsResponse
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 CreateTrainingPlan .
Parameters:
-
instance_type(Optional[ReservedCapacityInstanceType], default:None) –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.
-
instance_count(Optional[ReservedCapacityInstanceCount], default:None) –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.
-
ultra_server_type(Optional[UltraServerType], default:None) –The type of UltraServer to search for, such as ml.u-p6e-gb200x72.
-
ultra_server_count(Optional[UltraServerCount], default:None) –The number of UltraServers to search for.
-
start_time_after(Optional[Timestamp], default:None) –A filter to search for training plan offerings with a start time after a specified date.
-
end_time_before(Optional[Timestamp], default:None) –A filter to search for reserved capacity offerings with an end time before a specified date.
-
duration_hours(Optional[TrainingPlanDurationHoursInput], default:None) –The desired duration in hours for the training plan offerings.
-
target_resources(Optional[SageMakerResourceNames], default:None) –The target resources (e.g., SageMaker Training Jobs, SageMaker HyperPod, SageMaker Endpoints, Studio apps) 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.
-
A training plan for SageMaker endpoints can be used exclusively to provide compute resources to SageMaker endpoints for model deployment.
-
A training plan for Studio apps can be used to launch JupyterLab and Code Editor apps on reserved training plan capacity.
-
-
training_plan_arn(Optional[String], default:None) –The Amazon Resource Name (ARN); of an existing training plan to search for extension offerings. When specified, the API returns extension offerings that can be used to extend the specified training plan.
Raises:
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
30640 30641 30642 30643 30644 30645 30646 30647 30648 30649 30650 30651 30652 30653 30654 30655 30656 30657 30658 30659 30660 30661 30662 30663 30664 30665 30666 30667 30668 30669 30670 30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 30681 30682 30683 30684 30685 30686 30687 30688 30689 30690 30691 30692 30693 30694 30695 30696 30697 30698 30699 30700 30701 30702 30703 30704 30705 30706 30707 30708 30709 30710 30711 30712 30713 30714 30715 30716 30717 30718 30719 30720 30721 30722 30723 30724 30725 30726 30727 30728 | |