create_training_plan
async
¶
create_training_plan(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 | |