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
7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 | |