|
25 | 25 | from pydantic import BaseModel, model_validator, ConfigDict |
26 | 26 |
|
27 | 27 | import sagemaker.core.shapes as shapes |
28 | | -from sagemaker.core.helper.pipeline_variable import StrPipeVar |
| 28 | +from sagemaker.core.helper.pipeline_variable import StrPipeVar, IntPipeVar, BoolPipeVar |
29 | 29 |
|
30 | 30 | # TODO: Can we add custom logic to some of these to set better defaults? |
31 | 31 | from sagemaker.core.shapes import ( |
@@ -158,23 +158,23 @@ class Compute(shapes.ResourceConfig): |
158 | 158 | instance_type (Optional[StrPipeVar]): |
159 | 159 | The ML compute instance type. For information about available instance types, |
160 | 160 | see https://aws.amazon.com/sagemaker/pricing/. |
161 | | - instance_count (Optional[int]): The number of ML compute instances to use. For distributed |
| 161 | + instance_count (Optional[IntPipeVar]): The number of ML compute instances to use. For distributed |
162 | 162 | training, provide a value greater than 1. |
163 | | - volume_size_in_gb (Optional[int]): |
| 163 | + volume_size_in_gb (Optional[IntPipeVar]): |
164 | 164 | The size of the ML storage volume that you want to provision. ML storage volumes store |
165 | 165 | model artifacts and incremental states. Training algorithms might also use the ML |
166 | 166 | storage volume for scratch space. Default: 30 |
167 | 167 | volume_kms_key_id (Optional[StrPipeVar]): |
168 | 168 | The Amazon Web Services KMS key that SageMaker uses to encrypt data on the storage |
169 | 169 | volume attached to the ML compute instance(s) that run the training job. |
170 | | - keep_alive_period_in_seconds (Optional[int]): |
| 170 | + keep_alive_period_in_seconds (Optional[IntPipeVar]): |
171 | 171 | The duration of time in seconds to retain configured resources in a warm pool for |
172 | 172 | subsequent training jobs. |
173 | 173 | instance_groups (Optional[List[InstanceGroup]]): |
174 | 174 | A list of instance groups for heterogeneous clusters to be used in the training job. |
175 | 175 | training_plan_arn (Optional[StrPipeVar]): |
176 | 176 | The Amazon Resource Name (ARN) of the training plan to use for this resource configuration. |
177 | | - enable_managed_spot_training (Optional[bool]): |
| 177 | + enable_managed_spot_training (Optional[BoolPipeVar]): |
178 | 178 | To train models using managed spot training, choose True. Managed spot training |
179 | 179 | provides a fully managed and scalable infrastructure for training machine learning |
180 | 180 | models. this option is useful when training jobs can be interrupted and when there |
|
0 commit comments