create_training_plan
¶
create_training_plan(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
training_plan_name: Optional[TrainingPlanName] = None,
training_plan_offering_id: Optional[TrainingPlanOfferingId] = None,
spare_instance_count_per_ultra_server: Optional[
SpareInstanceCountPerUltraServer
] = None,
tags: Optional[TagList] = None,
) -> CreateTrainingPlanResponse
Creates a new training plan in SageMaker to reserve compute capacity.
Amazon SageMaker Training Plan is a capability within SageMaker that allows customers to reserve and manage GPU capacity for large-scale AI model training. It provides a way to secure predictable access to computational resources within specific timelines and budgets, without the need to manage underlying infrastructure.
How it works
Plans can be created for specific resources such as SageMaker Training Jobs or SageMaker HyperPod clusters, automatically provisioning resources, setting up infrastructure, executing workloads, and handling infrastructure failures.
Plan creation workflow
-
Users search for available plan offerings based on their requirements (e.g., instance type, count, start time, duration) using the
SearchTrainingPlanOfferingsAPI operation. -
They create a plan that best matches their needs using the ID of the plan offering they want to use.
-
After successful upfront payment, the plan's status becomes
Scheduled. -
The plan can be used to:
-
Queue training jobs.
-
Allocate to an instance group of a SageMaker HyperPod cluster.
-
-
When the plan start date arrives, it becomes
Active. Based on available reserved capacity:-
Training jobs are launched.
-
Instance groups are provisioned.
-
Plan composition
A plan can consist of one or more Reserved Capacities, each defined by a specific instance type, quantity, Availability Zone, duration, and start and end times. For more information about Reserved Capacity, see ReservedCapacitySummary .
Parameters:
-
training_plan_name(Optional[TrainingPlanName], default:None) –The name of the training plan to create.
-
training_plan_offering_id(Optional[TrainingPlanOfferingId], default:None) –The unique identifier of the training plan offering to use for creating this plan.
-
spare_instance_count_per_ultra_server(Optional[SpareInstanceCountPerUltraServer], default:None) –Number of spare instances to reserve per UltraServer for enhanced resiliency. Default is 1.
-
tags(Optional[TagList], default:None) –An array of key-value pairs to apply to this training plan.
Raises:
-
ResourceInUse–Resource being accessed is in use.
-
ResourceLimitExceeded–You have exceeded an SageMaker resource limit. For example, you might have too many training jobs created.
-
ResourceNotFound–Resource being access is not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 | |