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
27581 27582 27583 27584 27585 27586 27587 27588 27589 27590 27591 27592 27593 27594 27595 27596 27597 27598 27599 27600 27601 27602 27603 27604 27605 27606 27607 27608 27609 27610 27611 27612 27613 27614 27615 27616 27617 27618 27619 27620 27621 27622 27623 27624 27625 27626 27627 27628 27629 27630 27631 27632 27633 27634 27635 27636 27637 27638 27639 27640 27641 27642 27643 27644 27645 27646 27647 27648 27649 27650 27651 27652 27653 27654 27655 27656 27657 27658 27659 27660 27661 27662 27663 27664 27665 27666 27667 27668 27669 | |