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
8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 | |