sagemaker-core 1.0.3__py3-none-any.whl → 1.0.4__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.
- sagemaker_core/main/code_injection/shape_dag.py +22 -2
- sagemaker_core/main/resources.py +12 -0
- sagemaker_core/main/shapes.py +30 -0
- {sagemaker_core-1.0.3.dist-info → sagemaker_core-1.0.4.dist-info}/METADATA +1 -1
- {sagemaker_core-1.0.3.dist-info → sagemaker_core-1.0.4.dist-info}/RECORD +8 -8
- {sagemaker_core-1.0.3.dist-info → sagemaker_core-1.0.4.dist-info}/LICENSE +0 -0
- {sagemaker_core-1.0.3.dist-info → sagemaker_core-1.0.4.dist-info}/WHEEL +0 -0
- {sagemaker_core-1.0.3.dist-info → sagemaker_core-1.0.4.dist-info}/top_level.txt +0 -0
|
@@ -1131,13 +1131,14 @@ SHAPE_DAG = {
|
|
|
1131
1131
|
{"name": "InstanceGroupName", "shape": "ClusterInstanceGroupName", "type": "string"},
|
|
1132
1132
|
{"name": "InstanceType", "shape": "ClusterInstanceType", "type": "string"},
|
|
1133
1133
|
{"name": "LifeCycleConfig", "shape": "ClusterLifeCycleConfig", "type": "structure"},
|
|
1134
|
-
{"name": "ExecutionRole", "shape": "
|
|
1134
|
+
{"name": "ExecutionRole", "shape": "RoleArn", "type": "string"},
|
|
1135
1135
|
{"name": "ThreadsPerCore", "shape": "ClusterThreadsPerCore", "type": "integer"},
|
|
1136
1136
|
{
|
|
1137
1137
|
"name": "InstanceStorageConfigs",
|
|
1138
1138
|
"shape": "ClusterInstanceStorageConfigs",
|
|
1139
1139
|
"type": "list",
|
|
1140
1140
|
},
|
|
1141
|
+
{"name": "OnStartDeepHealthChecks", "shape": "OnStartDeepHealthChecks", "type": "list"},
|
|
1141
1142
|
],
|
|
1142
1143
|
"type": "structure",
|
|
1143
1144
|
},
|
|
@@ -1152,13 +1153,14 @@ SHAPE_DAG = {
|
|
|
1152
1153
|
{"name": "InstanceGroupName", "shape": "ClusterInstanceGroupName", "type": "string"},
|
|
1153
1154
|
{"name": "InstanceType", "shape": "ClusterInstanceType", "type": "string"},
|
|
1154
1155
|
{"name": "LifeCycleConfig", "shape": "ClusterLifeCycleConfig", "type": "structure"},
|
|
1155
|
-
{"name": "ExecutionRole", "shape": "
|
|
1156
|
+
{"name": "ExecutionRole", "shape": "RoleArn", "type": "string"},
|
|
1156
1157
|
{"name": "ThreadsPerCore", "shape": "ClusterThreadsPerCore", "type": "integer"},
|
|
1157
1158
|
{
|
|
1158
1159
|
"name": "InstanceStorageConfigs",
|
|
1159
1160
|
"shape": "ClusterInstanceStorageConfigs",
|
|
1160
1161
|
"type": "list",
|
|
1161
1162
|
},
|
|
1163
|
+
{"name": "OnStartDeepHealthChecks", "shape": "OnStartDeepHealthChecks", "type": "list"},
|
|
1162
1164
|
],
|
|
1163
1165
|
"type": "structure",
|
|
1164
1166
|
},
|
|
@@ -1242,6 +1244,14 @@ SHAPE_DAG = {
|
|
|
1242
1244
|
],
|
|
1243
1245
|
"type": "structure",
|
|
1244
1246
|
},
|
|
1247
|
+
"ClusterOrchestrator": {
|
|
1248
|
+
"members": [{"name": "Eks", "shape": "ClusterOrchestratorEksConfig", "type": "structure"}],
|
|
1249
|
+
"type": "structure",
|
|
1250
|
+
},
|
|
1251
|
+
"ClusterOrchestratorEksConfig": {
|
|
1252
|
+
"members": [{"name": "ClusterArn", "shape": "EksClusterArn", "type": "string"}],
|
|
1253
|
+
"type": "structure",
|
|
1254
|
+
},
|
|
1245
1255
|
"ClusterSummaries": {
|
|
1246
1256
|
"member_shape": "ClusterSummary",
|
|
1247
1257
|
"member_type": "structure",
|
|
@@ -1659,6 +1669,8 @@ SHAPE_DAG = {
|
|
|
1659
1669
|
},
|
|
1660
1670
|
{"name": "VpcConfig", "shape": "VpcConfig", "type": "structure"},
|
|
1661
1671
|
{"name": "Tags", "shape": "TagList", "type": "list"},
|
|
1672
|
+
{"name": "Orchestrator", "shape": "ClusterOrchestrator", "type": "structure"},
|
|
1673
|
+
{"name": "NodeRecovery", "shape": "ClusterNodeRecovery", "type": "string"},
|
|
1662
1674
|
],
|
|
1663
1675
|
"type": "structure",
|
|
1664
1676
|
},
|
|
@@ -3818,6 +3830,8 @@ SHAPE_DAG = {
|
|
|
3818
3830
|
{"name": "FailureMessage", "shape": "String", "type": "string"},
|
|
3819
3831
|
{"name": "InstanceGroups", "shape": "ClusterInstanceGroupDetailsList", "type": "list"},
|
|
3820
3832
|
{"name": "VpcConfig", "shape": "VpcConfig", "type": "structure"},
|
|
3833
|
+
{"name": "Orchestrator", "shape": "ClusterOrchestrator", "type": "structure"},
|
|
3834
|
+
{"name": "NodeRecovery", "shape": "ClusterNodeRecovery", "type": "string"},
|
|
3821
3835
|
],
|
|
3822
3836
|
"type": "structure",
|
|
3823
3837
|
},
|
|
@@ -10775,6 +10789,11 @@ SHAPE_DAG = {
|
|
|
10775
10789
|
"members": [{"name": "Groups", "shape": "Groups", "type": "list"}],
|
|
10776
10790
|
"type": "structure",
|
|
10777
10791
|
},
|
|
10792
|
+
"OnStartDeepHealthChecks": {
|
|
10793
|
+
"member_shape": "DeepHealthCheckType",
|
|
10794
|
+
"member_type": "string",
|
|
10795
|
+
"type": "list",
|
|
10796
|
+
},
|
|
10778
10797
|
"OnlineStoreConfig": {
|
|
10779
10798
|
"members": [
|
|
10780
10799
|
{"name": "SecurityConfig", "shape": "OnlineStoreSecurityConfig", "type": "structure"},
|
|
@@ -13766,6 +13785,7 @@ SHAPE_DAG = {
|
|
|
13766
13785
|
"shape": "ClusterInstanceGroupSpecifications",
|
|
13767
13786
|
"type": "list",
|
|
13768
13787
|
},
|
|
13788
|
+
{"name": "NodeRecovery", "shape": "ClusterNodeRecovery", "type": "string"},
|
|
13769
13789
|
],
|
|
13770
13790
|
"type": "structure",
|
|
13771
13791
|
},
|
sagemaker_core/main/resources.py
CHANGED
|
@@ -3198,6 +3198,8 @@ class Cluster(Base):
|
|
|
3198
3198
|
creation_time: The time when the SageMaker Cluster is created.
|
|
3199
3199
|
failure_message: The failure message of the SageMaker HyperPod cluster.
|
|
3200
3200
|
vpc_config:
|
|
3201
|
+
orchestrator: The type of orchestrator used for the SageMaker HyperPod cluster.
|
|
3202
|
+
node_recovery: The node recovery mode configured for the SageMaker HyperPod cluster.
|
|
3201
3203
|
|
|
3202
3204
|
"""
|
|
3203
3205
|
|
|
@@ -3208,6 +3210,8 @@ class Cluster(Base):
|
|
|
3208
3210
|
failure_message: Optional[str] = Unassigned()
|
|
3209
3211
|
instance_groups: Optional[List[ClusterInstanceGroupDetails]] = Unassigned()
|
|
3210
3212
|
vpc_config: Optional[VpcConfig] = Unassigned()
|
|
3213
|
+
orchestrator: Optional[ClusterOrchestrator] = Unassigned()
|
|
3214
|
+
node_recovery: Optional[str] = Unassigned()
|
|
3211
3215
|
|
|
3212
3216
|
def get_name(self) -> str:
|
|
3213
3217
|
attributes = vars(self)
|
|
@@ -3252,6 +3256,8 @@ class Cluster(Base):
|
|
|
3252
3256
|
instance_groups: List[ClusterInstanceGroupSpecification],
|
|
3253
3257
|
vpc_config: Optional[VpcConfig] = Unassigned(),
|
|
3254
3258
|
tags: Optional[List[Tag]] = Unassigned(),
|
|
3259
|
+
orchestrator: Optional[ClusterOrchestrator] = Unassigned(),
|
|
3260
|
+
node_recovery: Optional[str] = Unassigned(),
|
|
3255
3261
|
session: Optional[Session] = None,
|
|
3256
3262
|
region: Optional[str] = None,
|
|
3257
3263
|
) -> Optional["Cluster"]:
|
|
@@ -3263,6 +3269,8 @@ class Cluster(Base):
|
|
|
3263
3269
|
instance_groups: The instance groups to be created in the SageMaker HyperPod cluster.
|
|
3264
3270
|
vpc_config:
|
|
3265
3271
|
tags: Custom tags for managing the SageMaker HyperPod cluster as an Amazon Web Services resource. You can add tags to your cluster in the same way you add them in other Amazon Web Services services that support tagging. To learn more about tagging Amazon Web Services resources in general, see Tagging Amazon Web Services Resources User Guide.
|
|
3272
|
+
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 (EKS) cluster as the orchestrator.
|
|
3273
|
+
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.
|
|
3266
3274
|
session: Boto3 session.
|
|
3267
3275
|
region: Region name.
|
|
3268
3276
|
|
|
@@ -3296,6 +3304,8 @@ class Cluster(Base):
|
|
|
3296
3304
|
"InstanceGroups": instance_groups,
|
|
3297
3305
|
"VpcConfig": vpc_config,
|
|
3298
3306
|
"Tags": tags,
|
|
3307
|
+
"Orchestrator": orchestrator,
|
|
3308
|
+
"NodeRecovery": node_recovery,
|
|
3299
3309
|
}
|
|
3300
3310
|
|
|
3301
3311
|
operation_input_args = Base.populate_chained_attributes(
|
|
@@ -3406,6 +3416,7 @@ class Cluster(Base):
|
|
|
3406
3416
|
def update(
|
|
3407
3417
|
self,
|
|
3408
3418
|
instance_groups: List[ClusterInstanceGroupSpecification],
|
|
3419
|
+
node_recovery: Optional[str] = Unassigned(),
|
|
3409
3420
|
) -> Optional["Cluster"]:
|
|
3410
3421
|
"""
|
|
3411
3422
|
Update a Cluster resource
|
|
@@ -3434,6 +3445,7 @@ class Cluster(Base):
|
|
|
3434
3445
|
operation_input_args = {
|
|
3435
3446
|
"ClusterName": self.cluster_name,
|
|
3436
3447
|
"InstanceGroups": instance_groups,
|
|
3448
|
+
"NodeRecovery": node_recovery,
|
|
3437
3449
|
}
|
|
3438
3450
|
logger.debug(f"Input request: {operation_input_args}")
|
|
3439
3451
|
# serialize the input request
|
sagemaker_core/main/shapes.py
CHANGED
|
@@ -2675,6 +2675,7 @@ class ClusterInstanceGroupDetails(Base):
|
|
|
2675
2675
|
execution_role: The execution role for the instance group to assume.
|
|
2676
2676
|
threads_per_core: The number you specified to TreadsPerCore in CreateCluster for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
|
|
2677
2677
|
instance_storage_configs: The additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
|
|
2678
|
+
on_start_deep_health_checks: A flag indicating whether deep health checks should be performed when the cluster instance group is created or updated.
|
|
2678
2679
|
"""
|
|
2679
2680
|
|
|
2680
2681
|
current_count: Optional[int] = Unassigned()
|
|
@@ -2685,6 +2686,7 @@ class ClusterInstanceGroupDetails(Base):
|
|
|
2685
2686
|
execution_role: Optional[str] = Unassigned()
|
|
2686
2687
|
threads_per_core: Optional[int] = Unassigned()
|
|
2687
2688
|
instance_storage_configs: Optional[List[ClusterInstanceStorageConfig]] = Unassigned()
|
|
2689
|
+
on_start_deep_health_checks: Optional[List[str]] = Unassigned()
|
|
2688
2690
|
|
|
2689
2691
|
|
|
2690
2692
|
class ClusterInstanceGroupSpecification(Base):
|
|
@@ -2701,6 +2703,7 @@ class ClusterInstanceGroupSpecification(Base):
|
|
|
2701
2703
|
execution_role: Specifies an IAM execution role to be assumed by the instance group.
|
|
2702
2704
|
threads_per_core: Specifies the value for Threads per core. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. For instance types that doesn't support multithreading, specify 1. For more information, see the reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
|
|
2703
2705
|
instance_storage_configs: Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
|
|
2706
|
+
on_start_deep_health_checks: A flag indicating whether deep health checks should be performed when the cluster instance group is created or updated.
|
|
2704
2707
|
"""
|
|
2705
2708
|
|
|
2706
2709
|
instance_count: int
|
|
@@ -2710,6 +2713,7 @@ class ClusterInstanceGroupSpecification(Base):
|
|
|
2710
2713
|
execution_role: str
|
|
2711
2714
|
threads_per_core: Optional[int] = Unassigned()
|
|
2712
2715
|
instance_storage_configs: Optional[List[ClusterInstanceStorageConfig]] = Unassigned()
|
|
2716
|
+
on_start_deep_health_checks: Optional[List[str]] = Unassigned()
|
|
2713
2717
|
|
|
2714
2718
|
|
|
2715
2719
|
class ClusterInstancePlacement(Base):
|
|
@@ -2796,6 +2800,32 @@ class ClusterNodeSummary(Base):
|
|
|
2796
2800
|
instance_status: ClusterInstanceStatusDetails
|
|
2797
2801
|
|
|
2798
2802
|
|
|
2803
|
+
class ClusterOrchestratorEksConfig(Base):
|
|
2804
|
+
"""
|
|
2805
|
+
ClusterOrchestratorEksConfig
|
|
2806
|
+
The configuration settings for the Amazon EKS cluster used as the orchestrator for the SageMaker HyperPod cluster.
|
|
2807
|
+
|
|
2808
|
+
Attributes
|
|
2809
|
+
----------------------
|
|
2810
|
+
cluster_arn: The Amazon Resource Name (ARN) of the Amazon EKS cluster associated with the SageMaker HyperPod cluster.
|
|
2811
|
+
"""
|
|
2812
|
+
|
|
2813
|
+
cluster_arn: str
|
|
2814
|
+
|
|
2815
|
+
|
|
2816
|
+
class ClusterOrchestrator(Base):
|
|
2817
|
+
"""
|
|
2818
|
+
ClusterOrchestrator
|
|
2819
|
+
The type of orchestrator used for the SageMaker HyperPod cluster.
|
|
2820
|
+
|
|
2821
|
+
Attributes
|
|
2822
|
+
----------------------
|
|
2823
|
+
eks: The Amazon EKS cluster used as the orchestrator for the SageMaker HyperPod cluster.
|
|
2824
|
+
"""
|
|
2825
|
+
|
|
2826
|
+
eks: ClusterOrchestratorEksConfig
|
|
2827
|
+
|
|
2828
|
+
|
|
2799
2829
|
class ClusterSummary(Base):
|
|
2800
2830
|
"""
|
|
2801
2831
|
ClusterSummary
|
|
@@ -6,15 +6,15 @@ sagemaker_core/main/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
6
6
|
sagemaker_core/main/config_schema.py,sha256=IDvL1YuMOwVg4nb0D4ysU51tc1UjlQASyz1QZoncs7I,56907
|
|
7
7
|
sagemaker_core/main/exceptions.py,sha256=87DUlrmHxaWoiYNlpNY9ixxFMPRk_dIGPsA2e_xdVwQ,5602
|
|
8
8
|
sagemaker_core/main/intelligent_defaults_helper.py,sha256=5SDM6UavZtp-k5LhqRL7GRIDgzFB5UsC_p7YuiSPK9A,8334
|
|
9
|
-
sagemaker_core/main/resources.py,sha256=
|
|
10
|
-
sagemaker_core/main/shapes.py,sha256=
|
|
9
|
+
sagemaker_core/main/resources.py,sha256=3ivOSUiWqH8VWmOwxz1Oa45aet7CTsc8mZott-ge7yc,1299296
|
|
10
|
+
sagemaker_core/main/shapes.py,sha256=mxsgFQYYMCWrZm_GF3w_wwgfTon0AgheZoXKu17ux1c,683409
|
|
11
11
|
sagemaker_core/main/user_agent.py,sha256=4sZybDXkzRoZnOnVDQ8p8zFTfiRJdsH7amDWInVQ4xU,2708
|
|
12
12
|
sagemaker_core/main/utils.py,sha256=I7WsC-DdbnAZg_PtqcLPywXlqjAwj7ZYbeHhv93Z1O4,18840
|
|
13
13
|
sagemaker_core/main/code_injection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
14
|
sagemaker_core/main/code_injection/base.py,sha256=11_Jif0nOzfbLGlXaacKf-wcizzfS64U0OSZGoVffFU,1733
|
|
15
15
|
sagemaker_core/main/code_injection/codec.py,sha256=2DjmeD2uND307UqDefvVEpE0rZ8yfFU3Bi3TvQCQveI,7658
|
|
16
16
|
sagemaker_core/main/code_injection/constants.py,sha256=2ICExGge8vAWx7lSTW0JGh-bH1korkvpOpDu5M63eI4,980
|
|
17
|
-
sagemaker_core/main/code_injection/shape_dag.py,sha256
|
|
17
|
+
sagemaker_core/main/code_injection/shape_dag.py,sha256=mQR562skpJVs3VbNS-dtGvF94JXVcRBZS5b0cpKH3x0,648111
|
|
18
18
|
sagemaker_core/resources/__init__.py,sha256=EAYTFMN-nPjnPjjBbhIUeaL67FLKNPd7qbcbl9VIrws,31
|
|
19
19
|
sagemaker_core/shapes/__init__.py,sha256=RnbIu9eTxKt-DNsOFJabrWIgrrtS9_SdAozP9JBl_ic,28
|
|
20
20
|
sagemaker_core/tools/__init__.py,sha256=xX79JImxCVzrWMnjgntLCve2G5I-R4pRar5s20kT9Rs,56
|
|
@@ -27,8 +27,8 @@ sagemaker_core/tools/resources_extractor.py,sha256=B9Twlf2vb7AkZUKLnxSdQZ_rNLPz0
|
|
|
27
27
|
sagemaker_core/tools/shapes_codegen.py,sha256=_ve959bwH8usZ6dPlpXxi2on9t0hLpcmhRWnaWHCWMQ,11745
|
|
28
28
|
sagemaker_core/tools/shapes_extractor.py,sha256=4KjgDmhlPM4G1f1NeYbORKlXs1s7Q_sm_NK31S_ROQ0,11950
|
|
29
29
|
sagemaker_core/tools/templates.py,sha256=IvL9ykLvOXDNCMnIZn30o-6Cmx4fw-BIJz3nl9LD4dc,24614
|
|
30
|
-
sagemaker_core-1.0.
|
|
31
|
-
sagemaker_core-1.0.
|
|
32
|
-
sagemaker_core-1.0.
|
|
33
|
-
sagemaker_core-1.0.
|
|
34
|
-
sagemaker_core-1.0.
|
|
30
|
+
sagemaker_core-1.0.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
31
|
+
sagemaker_core-1.0.4.dist-info/METADATA,sha256=62vOPMIkSDkfR_ekA4qjnxJ96kC4hbzlhAtd2w52Qk0,4877
|
|
32
|
+
sagemaker_core-1.0.4.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
|
33
|
+
sagemaker_core-1.0.4.dist-info/top_level.txt,sha256=R3GAZZ1zC5JxqdE_0x2Lu_WYi2Xfke7VsiP3L5zngfA,15
|
|
34
|
+
sagemaker_core-1.0.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|