search_training_plan_offerings
¶
search_training_plan_offerings(
*,
config_overrides: Optional[SageMakerClientConfig] = 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/sage_maker.py
30259 30260 30261 30262 30263 30264 30265 30266 30267 30268 30269 30270 30271 30272 30273 30274 30275 30276 30277 30278 30279 30280 30281 30282 30283 30284 30285 30286 30287 30288 30289 30290 30291 30292 30293 30294 30295 30296 30297 30298 30299 30300 30301 30302 30303 30304 30305 30306 30307 30308 30309 30310 30311 30312 30313 30314 30315 30316 30317 30318 30319 30320 30321 30322 30323 30324 30325 30326 30327 30328 30329 30330 30331 30332 30333 30334 30335 30336 30337 30338 30339 30340 30341 30342 30343 30344 30345 30346 | |