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
27238 27239 27240 27241 27242 27243 27244 27245 27246 27247 27248 27249 27250 27251 27252 27253 27254 27255 27256 27257 27258 27259 27260 27261 27262 27263 27264 27265 27266 27267 27268 27269 27270 27271 27272 27273 27274 27275 27276 27277 27278 27279 27280 27281 27282 27283 27284 27285 27286 27287 27288 27289 27290 27291 27292 27293 27294 27295 27296 27297 27298 27299 27300 27301 27302 27303 27304 27305 27306 27307 27308 27309 27310 27311 27312 27313 27314 27315 27316 27317 27318 27319 27320 27321 27322 27323 27324 27325 | |