sagemaker-core 1.0.56__py3-none-any.whl → 1.0.57__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of sagemaker-core might be problematic. Click here for more details.

@@ -1445,6 +1445,22 @@ SHAPE_DAG = {
1445
1445
  ],
1446
1446
  "type": "structure",
1447
1447
  },
1448
+ "ClusterAutoScalingConfig": {
1449
+ "members": [
1450
+ {"name": "Mode", "shape": "ClusterAutoScalingMode", "type": "string"},
1451
+ {"name": "AutoScalerType", "shape": "ClusterAutoScalerType", "type": "string"},
1452
+ ],
1453
+ "type": "structure",
1454
+ },
1455
+ "ClusterAutoScalingConfigOutput": {
1456
+ "members": [
1457
+ {"name": "Mode", "shape": "ClusterAutoScalingMode", "type": "string"},
1458
+ {"name": "AutoScalerType", "shape": "ClusterAutoScalerType", "type": "string"},
1459
+ {"name": "Status", "shape": "ClusterAutoScalingStatus", "type": "string"},
1460
+ {"name": "FailureMessage", "shape": "String", "type": "string"},
1461
+ ],
1462
+ "type": "structure",
1463
+ },
1448
1464
  "ClusterEbsVolumeConfig": {
1449
1465
  "members": [
1450
1466
  {"name": "VolumeSizeInGB", "shape": "ClusterEbsVolumeSizeInGB", "type": "integer"},
@@ -2251,6 +2267,8 @@ SHAPE_DAG = {
2251
2267
  "shape": "ClusterNodeProvisioningMode",
2252
2268
  "type": "string",
2253
2269
  },
2270
+ {"name": "ClusterRole", "shape": "RoleArn", "type": "string"},
2271
+ {"name": "AutoScaling", "shape": "ClusterAutoScalingConfig", "type": "structure"},
2254
2272
  ],
2255
2273
  "type": "structure",
2256
2274
  },
@@ -4647,6 +4665,8 @@ SHAPE_DAG = {
4647
4665
  "shape": "ClusterNodeProvisioningMode",
4648
4666
  "type": "string",
4649
4667
  },
4668
+ {"name": "ClusterRole", "shape": "RoleArn", "type": "string"},
4669
+ {"name": "AutoScaling", "shape": "ClusterAutoScalingConfigOutput", "type": "structure"},
4650
4670
  ],
4651
4671
  "type": "structure",
4652
4672
  },
@@ -15827,6 +15847,8 @@ SHAPE_DAG = {
15827
15847
  "shape": "ClusterInstanceGroupsToDelete",
15828
15848
  "type": "list",
15829
15849
  },
15850
+ {"name": "ClusterRole", "shape": "RoleArn", "type": "string"},
15851
+ {"name": "AutoScaling", "shape": "ClusterAutoScalingConfig", "type": "structure"},
15830
15852
  ],
15831
15853
  "type": "structure",
15832
15854
  },
@@ -106,7 +106,8 @@ SAGEMAKER_PYTHON_SDK_CONFIG_SCHEMA = {
106
106
  "type": "array",
107
107
  "items": {"type": "string"},
108
108
  },
109
- }
109
+ },
110
+ "cluster_role": {"type": "string"},
110
111
  },
111
112
  },
112
113
  "CompilationJob": {
@@ -3226,6 +3226,8 @@ class Cluster(Base):
3226
3226
  orchestrator: The type of orchestrator used for the SageMaker HyperPod cluster.
3227
3227
  node_recovery: The node recovery mode configured for the SageMaker HyperPod cluster.
3228
3228
  node_provisioning_mode: The mode used for provisioning nodes in the cluster.
3229
+ cluster_role: The Amazon Resource Name (ARN) of the IAM role that HyperPod uses for cluster autoscaling operations.
3230
+ auto_scaling: The current autoscaling configuration and status for the autoscaler.
3229
3231
 
3230
3232
  """
3231
3233
 
@@ -3242,6 +3244,8 @@ class Cluster(Base):
3242
3244
  orchestrator: Optional[shapes.ClusterOrchestrator] = Unassigned()
3243
3245
  node_recovery: Optional[str] = Unassigned()
3244
3246
  node_provisioning_mode: Optional[str] = Unassigned()
3247
+ cluster_role: Optional[str] = Unassigned()
3248
+ auto_scaling: Optional[shapes.ClusterAutoScalingConfigOutput] = Unassigned()
3245
3249
 
3246
3250
  def get_name(self) -> str:
3247
3251
  attributes = vars(self)
@@ -3292,6 +3296,8 @@ class Cluster(Base):
3292
3296
  orchestrator: Optional[shapes.ClusterOrchestrator] = Unassigned(),
3293
3297
  node_recovery: Optional[str] = Unassigned(),
3294
3298
  node_provisioning_mode: Optional[str] = Unassigned(),
3299
+ cluster_role: Optional[str] = Unassigned(),
3300
+ auto_scaling: Optional[shapes.ClusterAutoScalingConfig] = Unassigned(),
3295
3301
  session: Optional[Session] = None,
3296
3302
  region: Optional[str] = None,
3297
3303
  ) -> Optional["Cluster"]:
@@ -3307,6 +3313,8 @@ class Cluster(Base):
3307
3313
  orchestrator: The type of orchestrator to use for the SageMaker HyperPod cluster. Currently, the only supported value is "eks", which is to use an Amazon Elastic Kubernetes Service cluster as the orchestrator.
3308
3314
  node_recovery: The node recovery mode for the SageMaker HyperPod cluster. When set to Automatic, SageMaker HyperPod will automatically reboot or replace faulty nodes when issues are detected. When set to None, cluster administrators will need to manually manage any faulty cluster instances.
3309
3315
  node_provisioning_mode: The mode for provisioning nodes in the cluster. You can specify the following modes: Continuous: Scaling behavior that enables 1) concurrent operation execution within instance groups, 2) continuous retry mechanisms for failed operations, 3) enhanced customer visibility into cluster events through detailed event streams, 4) partial provisioning capabilities. Your clusters and instance groups remain InService while scaling. This mode is only supported for EKS orchestrated clusters.
3316
+ cluster_role: The Amazon Resource Name (ARN) of the IAM role that HyperPod assumes to perform cluster autoscaling operations. This role must have permissions for sagemaker:BatchAddClusterNodes and sagemaker:BatchDeleteClusterNodes. This is only required when autoscaling is enabled and when HyperPod is performing autoscaling operations.
3317
+ auto_scaling: The autoscaling configuration for the cluster. Enables automatic scaling of cluster nodes based on workload demand using a Karpenter-based system.
3310
3318
  session: Boto3 session.
3311
3319
  region: Region name.
3312
3320
 
@@ -3344,6 +3352,8 @@ class Cluster(Base):
3344
3352
  "Orchestrator": orchestrator,
3345
3353
  "NodeRecovery": node_recovery,
3346
3354
  "NodeProvisioningMode": node_provisioning_mode,
3355
+ "ClusterRole": cluster_role,
3356
+ "AutoScaling": auto_scaling,
3347
3357
  }
3348
3358
 
3349
3359
  operation_input_args = Base.populate_chained_attributes(
@@ -3459,6 +3469,8 @@ class Cluster(Base):
3459
3469
  ] = Unassigned(),
3460
3470
  node_recovery: Optional[str] = Unassigned(),
3461
3471
  instance_groups_to_delete: Optional[List[str]] = Unassigned(),
3472
+ cluster_role: Optional[str] = Unassigned(),
3473
+ auto_scaling: Optional[shapes.ClusterAutoScalingConfig] = Unassigned(),
3462
3474
  ) -> Optional["Cluster"]:
3463
3475
  """
3464
3476
  Update a Cluster resource
@@ -3493,6 +3505,8 @@ class Cluster(Base):
3493
3505
  "RestrictedInstanceGroups": restricted_instance_groups,
3494
3506
  "NodeRecovery": node_recovery,
3495
3507
  "InstanceGroupsToDelete": instance_groups_to_delete,
3508
+ "ClusterRole": cluster_role,
3509
+ "AutoScaling": auto_scaling,
3496
3510
  }
3497
3511
  logger.debug(f"Input request: {operation_input_args}")
3498
3512
  # serialize the input request
@@ -3406,6 +3406,40 @@ class ClarifyExplainerConfig(Base):
3406
3406
  inference_config: Optional[ClarifyInferenceConfig] = Unassigned()
3407
3407
 
3408
3408
 
3409
+ class ClusterAutoScalingConfig(Base):
3410
+ """
3411
+ ClusterAutoScalingConfig
3412
+ Specifies the autoscaling configuration for a HyperPod cluster.
3413
+
3414
+ Attributes
3415
+ ----------------------
3416
+ mode: Describes whether autoscaling is enabled or disabled for the cluster. Valid values are Enable and Disable.
3417
+ auto_scaler_type: The type of autoscaler to use. Currently supported value is Karpenter.
3418
+ """
3419
+
3420
+ mode: str
3421
+ auto_scaler_type: Optional[str] = Unassigned()
3422
+
3423
+
3424
+ class ClusterAutoScalingConfigOutput(Base):
3425
+ """
3426
+ ClusterAutoScalingConfigOutput
3427
+ The autoscaling configuration and status information for a HyperPod cluster.
3428
+
3429
+ Attributes
3430
+ ----------------------
3431
+ mode: Describes whether autoscaling is enabled or disabled for the cluster.
3432
+ auto_scaler_type: The type of autoscaler configured for the cluster.
3433
+ status: The current status of the autoscaling configuration. Valid values are InService, Failed, Creating, and Deleting.
3434
+ failure_message: If the autoscaling status is Failed, this field contains a message describing the failure.
3435
+ """
3436
+
3437
+ mode: str
3438
+ status: str
3439
+ auto_scaler_type: Optional[str] = Unassigned()
3440
+ failure_message: Optional[str] = Unassigned()
3441
+
3442
+
3409
3443
  class ClusterEbsVolumeConfig(Base):
3410
3444
  """
3411
3445
  ClusterEbsVolumeConfig
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sagemaker-core
3
- Version: 1.0.56
3
+ Version: 1.0.57
4
4
  Summary: An python package for sagemaker core functionalities
5
5
  Author-email: AWS <sagemaker-interests@amazon.com>
6
6
  Project-URL: Repository, https://github.com/aws/sagemaker-core.git
@@ -3,19 +3,19 @@ sagemaker_core/_version.py,sha256=4UH5LevZBa3Kl1OiDbkaeIzXUQNSYVFrc-2su2TCco4,86
3
3
  sagemaker_core/helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  sagemaker_core/helper/session_helper.py,sha256=GO1UJgpN1L9a25nYlVb-KWk4KvmFzVkLqFMqw-VaI4c,33126
5
5
  sagemaker_core/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- sagemaker_core/main/config_schema.py,sha256=Wxe2gJash1rrxBomGhSYmII1LmJ3E70LIuSWklX4_7g,57588
6
+ sagemaker_core/main/config_schema.py,sha256=1xYzDM0FEBQFmiE3R--Nj0_RMQQF3vxlFQXEHzOpOBM,57665
7
7
  sagemaker_core/main/default_configs_helper.py,sha256=bg_tgczX_bYzNiSlalJ6TWPTgrQYsI0uZguP5TIbPiw,8324
8
8
  sagemaker_core/main/exceptions.py,sha256=CsiM3V_Gb16grBotnu59LB6tznryPcSvAQDAOOYGc10,5563
9
9
  sagemaker_core/main/logs.py,sha256=yfEH7uP91nbE1lefymOlBr81ziBzsDSIOF2Qyd54FJE,6241
10
- sagemaker_core/main/resources.py,sha256=0IFGqHdVjFCtHANZda2cx7ZwYLy1A_JSSNzOjSDHFU4,1441719
11
- sagemaker_core/main/shapes.py,sha256=a2vctCKI8rGpfonG_ENh4k_shZybCvcbG7ScZgvOHTA,786198
10
+ sagemaker_core/main/resources.py,sha256=4RnjaJkM0O-2N-HCDUSGMiMBlpC1ctuJUL8QhvkkPZ0,1443013
11
+ sagemaker_core/main/shapes.py,sha256=gSe1d_n2DvDLYGgFuPXhIt6ZZ6ZozjldvybjMeDtGKg,787417
12
12
  sagemaker_core/main/user_agent.py,sha256=BPYDAfDd70ObP-VAjl7aDHALHyGknkpRP21ktVr_LDw,2744
13
13
  sagemaker_core/main/utils.py,sha256=y1aZzztCApczZSqT0U7_H8zLlpqp1vgoUKcp40mTM2o,19157
14
14
  sagemaker_core/main/code_injection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  sagemaker_core/main/code_injection/base.py,sha256=11_Jif0nOzfbLGlXaacKf-wcizzfS64U0OSZGoVffFU,1733
16
16
  sagemaker_core/main/code_injection/codec.py,sha256=2YzJ-iYEzmguVaJVcZeyCR0OpTSR7UOixATrOm4MiBk,8885
17
17
  sagemaker_core/main/code_injection/constants.py,sha256=2ICExGge8vAWx7lSTW0JGh-bH1korkvpOpDu5M63eI4,980
18
- sagemaker_core/main/code_injection/shape_dag.py,sha256=GET1PJhDdCGwyO7EEiWVkfcTi2JefU9JR4QJGLrtNwQ,745965
18
+ sagemaker_core/main/code_injection/shape_dag.py,sha256=JlXHyqJQKwvnkAi07vfi5uy2CWZgw1a46XeR9jbJols,747205
19
19
  sagemaker_core/resources/__init__.py,sha256=EAYTFMN-nPjnPjjBbhIUeaL67FLKNPd7qbcbl9VIrws,31
20
20
  sagemaker_core/shapes/__init__.py,sha256=RnbIu9eTxKt-DNsOFJabrWIgrrtS9_SdAozP9JBl_ic,28
21
21
  sagemaker_core/tools/__init__.py,sha256=xX79JImxCVzrWMnjgntLCve2G5I-R4pRar5s20kT9Rs,56
@@ -28,8 +28,8 @@ sagemaker_core/tools/resources_extractor.py,sha256=hN61ehZbPnhFW-2FIVDi7NsEz4rLv
28
28
  sagemaker_core/tools/shapes_codegen.py,sha256=4lsePZpjk7M6RpJs5yar_m4z5MzwGHFrvCkdS_-R12c,12172
29
29
  sagemaker_core/tools/shapes_extractor.py,sha256=vxVKjXD3lmjrkoKiexjUnOt8ITbFxQSeiDtx7P6Qtkw,14226
30
30
  sagemaker_core/tools/templates.py,sha256=0lOIH3Rq2CXWkQhK6VenN_TE_v5p852s2kQyb_BeQxA,23460
31
- sagemaker_core-1.0.56.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
32
- sagemaker_core-1.0.56.dist-info/METADATA,sha256=2hwMbATSpPXljHp6Z8offaO106L6wKVbNVaiHY6wS6U,4871
33
- sagemaker_core-1.0.56.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
- sagemaker_core-1.0.56.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
35
- sagemaker_core-1.0.56.dist-info/RECORD,,
31
+ sagemaker_core-1.0.57.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
32
+ sagemaker_core-1.0.57.dist-info/METADATA,sha256=7r-kp_zddHzStDxcWtjka4FHzYGz5do7t31LXZssmVA,4871
33
+ sagemaker_core-1.0.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
34
+ sagemaker_core-1.0.57.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
35
+ sagemaker_core-1.0.57.dist-info/RECORD,,