create_compute_quota
¶
create_compute_quota(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
name: Optional[EntityName] = None,
description: Optional[EntityDescription] = None,
cluster_arn: Optional[ClusterArn] = None,
compute_quota_config: Optional[ComputeQuotaConfig] = None,
compute_quota_target: Optional[ComputeQuotaTarget] = None,
activation_state: Optional[ActivationState] = None,
tags: Optional[TagList] = None,
) -> CreateComputeQuotaResponse
Create compute allocation definition. This defines how compute is allocated, shared, and borrowed for specified entities. Specifically, how to lend and borrow idle compute and assign a fair-share weight to the specified entities.
Parameters:
-
name(Optional[EntityName], default:None) –The name of the compute allocation definition. The name must be unique within the SageMaker AI HyperPod cluster specified by
ClusterArn. You can use the same name in other clusters within a Region or across Regions. -
description(Optional[EntityDescription], default:None) –Description of the compute allocation definition.
-
cluster_arn(Optional[ClusterArn], default:None) –ARN of the cluster.
-
compute_quota_config(Optional[ComputeQuotaConfig], default:None) –Configuration of the compute allocation definition. This includes the resource sharing option, and the setting to preempt low priority tasks.
-
compute_quota_target(Optional[ComputeQuotaTarget], default:None) –The target entity to allocate compute resources to.
-
activation_state(Optional[ActivationState], default:None) –The state of the compute allocation being described. Use to enable or disable compute allocation.
Default is
Enabled. -
tags(Optional[TagList], default:None) –Tags of the compute allocation definition.
Raises:
-
ConflictException–There was a conflict when you attempted to modify a SageMaker entity such as an
ExperimentorArtifact. -
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
3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 | |