Skip to content

Commit e8ad3b3

Browse files
authored
Merge branch 'master' into fix/sagemaker-session-region-not-being-used
2 parents 18d388c + 0b4faf9 commit e8ad3b3

36 files changed

+6001
-13
lines changed

doc/api/prep_data/feature_store.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Feature Definition
6060
:members:
6161
:show-inheritance:
6262

63+
6364
Inputs
6465
******
6566

@@ -181,9 +182,13 @@ Feature Processor Data Source
181182
:members:
182183
:show-inheritance:
183184

185+
.. autoclass:: sagemaker.feature_store.feature_processor.PySparkDataSource
186+
:members:
187+
:show-inheritance:
184188

185-
Feature Processor Scheduler
186-
***************************
189+
190+
Feature Processor Scheduler and Triggers
191+
****************************************
187192

188193
.. automethod:: sagemaker.feature_store.feature_processor.to_pipeline
189194

@@ -196,3 +201,12 @@ Feature Processor Scheduler
196201
.. automethod:: sagemaker.feature_store.feature_processor.describe
197202

198203
.. automethod:: sagemaker.feature_store.feature_processor.list_pipelines
204+
205+
.. automethod:: sagemaker.feature_store.feature_processor.put_trigger
206+
207+
.. automethod:: sagemaker.feature_store.feature_processor.enable_trigger
208+
209+
.. automethod:: sagemaker.feature_store.feature_processor.disable_trigger
210+
211+
.. automethod:: sagemaker.feature_store.feature_processor.delete_trigger
212+

doc/api/training/automlv2.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AutoMLV2
2+
--------
3+
4+
.. automodule:: sagemaker.automl.automlv2
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

doc/api/training/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Training APIs
88
algorithm
99
analytics
1010
automl
11+
automlv2
1112
debugger
1213
estimators
1314
tuner

src/sagemaker/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@
6161

6262
from sagemaker.automl.automl import AutoML, AutoMLJob, AutoMLInput # noqa: F401
6363
from sagemaker.automl.candidate_estimator import CandidateEstimator, CandidateStep # noqa: F401
64+
from sagemaker.automl.automlv2 import ( # noqa: F401
65+
AutoMLV2,
66+
AutoMLJobV2,
67+
LocalAutoMLDataChannel,
68+
AutoMLDataChannel,
69+
AutoMLTimeSeriesForecastingConfig,
70+
AutoMLImageClassificationConfig,
71+
AutoMLTabularConfig,
72+
AutoMLTextClassificationConfig,
73+
AutoMLTextGenerationConfig,
74+
)
6475

6576
from sagemaker.debugger import ProfilerConfig, Profiler # noqa: F401
6677

src/sagemaker/automl/automlv2.py

Lines changed: 1433 additions & 0 deletions
Large diffs are not rendered by default.

src/sagemaker/config/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@
4747
MONITORING_SCHEDULE,
4848
MONITORING_SCHEDULE_INTER_CONTAINER_ENCRYPTION_PATH,
4949
AUTO_ML_ROLE_ARN_PATH,
50+
AUTO_ML_V2_ROLE_ARN_PATH,
5051
AUTO_ML_OUTPUT_CONFIG_PATH,
52+
AUTO_ML_V2_OUTPUT_CONFIG_PATH,
5153
AUTO_ML_JOB_CONFIG_PATH,
5254
AUTO_ML_JOB,
55+
AUTO_ML_JOB_V2,
5356
COMPILATION_JOB_ROLE_ARN_PATH,
5457
COMPILATION_JOB_OUTPUT_CONFIG_PATH,
5558
COMPILATION_JOB_VPC_CONFIG_PATH,
@@ -111,9 +114,13 @@
111114
FEATURE_GROUP_OFFLINE_STORE_KMS_KEY_ID_PATH,
112115
FEATURE_GROUP_ONLINE_STORE_KMS_KEY_ID_PATH,
113116
AUTO_ML_KMS_KEY_ID_PATH,
117+
AUTO_ML_V2_KMS_KEY_ID_PATH,
114118
AUTO_ML_VPC_CONFIG_PATH,
119+
AUTO_ML_V2_VPC_CONFIG_PATH,
115120
AUTO_ML_VOLUME_KMS_KEY_ID_PATH,
121+
AUTO_ML_V2_VOLUME_KMS_KEY_ID_PATH,
116122
AUTO_ML_INTER_CONTAINER_ENCRYPTION_PATH,
123+
AUTO_ML_V2_INTER_CONTAINER_ENCRYPTION_PATH,
117124
ENDPOINT_CONFIG_DATA_CAPTURE_KMS_KEY_ID_PATH,
118125
SESSION_DEFAULT_S3_BUCKET_PATH,
119126
SESSION_DEFAULT_S3_OBJECT_KEY_PREFIX_PATH,

src/sagemaker/config/config_schema.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
ENDPOINT = "Endpoint"
8484
INFERENCE_COMPONENT = "InferenceComponent"
8585
AUTO_ML_JOB = "AutoMLJob"
86+
AUTO_ML_JOB_V2 = "AutoMLJobV2"
8687
COMPILATION_JOB = "CompilationJob"
8788
CUSTOM_PARAMETERS = "CustomParameters"
8889
PIPELINE = "Pipeline"
@@ -182,14 +183,21 @@ def _simple_path(*args: str):
182183
FEATURE_GROUP_ONLINE_STORE_CONFIG_PATH, SECURITY_CONFIG, KMS_KEY_ID
183184
)
184185
AUTO_ML_OUTPUT_CONFIG_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB, OUTPUT_DATA_CONFIG)
186+
AUTO_ML_V2_OUTPUT_CONFIG_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB_V2, OUTPUT_DATA_CONFIG)
185187
AUTO_ML_KMS_KEY_ID_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB, OUTPUT_DATA_CONFIG, KMS_KEY_ID)
188+
AUTO_ML_V2_KMS_KEY_ID_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB_V2, OUTPUT_DATA_CONFIG, KMS_KEY_ID)
186189
AUTO_ML_VOLUME_KMS_KEY_ID_PATH = _simple_path(
187190
SAGEMAKER, AUTO_ML_JOB, AUTO_ML_JOB_CONFIG, SECURITY_CONFIG, VOLUME_KMS_KEY_ID
188191
)
192+
AUTO_ML_V2_VOLUME_KMS_KEY_ID_PATH = _simple_path(
193+
SAGEMAKER, AUTO_ML_JOB_V2, SECURITY_CONFIG, VOLUME_KMS_KEY_ID
194+
)
189195
AUTO_ML_ROLE_ARN_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB, ROLE_ARN)
196+
AUTO_ML_V2_ROLE_ARN_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB_V2, ROLE_ARN)
190197
AUTO_ML_VPC_CONFIG_PATH = _simple_path(
191198
SAGEMAKER, AUTO_ML_JOB, AUTO_ML_JOB_CONFIG, SECURITY_CONFIG, VPC_CONFIG
192199
)
200+
AUTO_ML_V2_VPC_CONFIG_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB_V2, SECURITY_CONFIG, VPC_CONFIG)
193201
AUTO_ML_JOB_CONFIG_PATH = _simple_path(SAGEMAKER, AUTO_ML_JOB, AUTO_ML_JOB_CONFIG)
194202
MONITORING_JOB_DEFINITION_PREFIX = _simple_path(
195203
SAGEMAKER,
@@ -362,6 +370,12 @@ def _simple_path(*args: str):
362370
SECURITY_CONFIG,
363371
ENABLE_INTER_CONTAINER_TRAFFIC_ENCRYPTION,
364372
)
373+
AUTO_ML_V2_INTER_CONTAINER_ENCRYPTION_PATH = _simple_path(
374+
SAGEMAKER,
375+
AUTO_ML_JOB_V2,
376+
SECURITY_CONFIG,
377+
ENABLE_INTER_CONTAINER_TRAFFIC_ENCRYPTION,
378+
)
365379
PROCESSING_JOB_ENVIRONMENT_PATH = _simple_path(SAGEMAKER, PROCESSING_JOB, ENVIRONMENT)
366380
PROCESSING_JOB_INTER_CONTAINER_ENCRYPTION_PATH = _simple_path(
367381
SAGEMAKER, PROCESSING_JOB, NETWORK_CONFIG, ENABLE_INTER_CONTAINER_TRAFFIC_ENCRYPTION
@@ -947,6 +961,30 @@ def _simple_path(*args: str):
947961
TAGS: {"$ref": "#/definitions/tags"},
948962
},
949963
},
964+
# Auto ML V2
965+
# https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateAutoMLJobV2.html
966+
AUTO_ML_JOB_V2: {
967+
TYPE: OBJECT,
968+
ADDITIONAL_PROPERTIES: False,
969+
PROPERTIES: {
970+
SECURITY_CONFIG: {
971+
TYPE: OBJECT,
972+
ADDITIONAL_PROPERTIES: False,
973+
PROPERTIES: {
974+
ENABLE_INTER_CONTAINER_TRAFFIC_ENCRYPTION: {TYPE: "boolean"},
975+
VOLUME_KMS_KEY_ID: {"$ref": "#/definitions/kmsKeyId"},
976+
VPC_CONFIG: {"$ref": "#/definitions/vpcConfig"},
977+
},
978+
},
979+
OUTPUT_DATA_CONFIG: {
980+
TYPE: OBJECT,
981+
ADDITIONAL_PROPERTIES: False,
982+
PROPERTIES: {KMS_KEY_ID: {"$ref": "#/definitions/kmsKeyId"}},
983+
},
984+
ROLE_ARN: {"$ref": "#/definitions/roleArn"},
985+
TAGS: {"$ref": "#/definitions/tags"},
986+
},
987+
},
950988
# Transform Job
951989
# https://docs.aws.amazon.com/sagemaker/latest/APIReference/API_CreateTransformJob.html
952990
TRANSFORM_JOB: {

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"local_gpu",
9191
)
9292
SM_DATAPARALLEL_SUPPORTED_FRAMEWORK_VERSIONS = {
93-
# tf 2.12 should not be supported: smdataparallel excludes support for tf 2.12.
93+
# tf 2.12 should not be supported: smdataparallel excludes support for tf>=2.12.
9494
"tensorflow": [
9595
"2.3",
9696
"2.3.1",

src/sagemaker/image_uri_config/tensorflow.json

Lines changed: 88 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@
330330
"2.10": "2.10.1",
331331
"2.11": "2.11.1",
332332
"2.12": "2.12.1",
333-
"2.13": "2.13.0"
333+
"2.13": "2.13.0",
334+
"2.14": "2.14.1"
334335
},
335336
"versions": {
336337
"1.10.0": {
@@ -2135,6 +2136,46 @@
21352136
"ca-west-1": "204538143572"
21362137
},
21372138
"repository": "tensorflow-inference"
2139+
},
2140+
"2.14.1": {
2141+
"registries": {
2142+
"af-south-1": "626614931356",
2143+
"ap-east-1": "871362719292",
2144+
"ap-northeast-1": "763104351884",
2145+
"ap-northeast-2": "763104351884",
2146+
"ap-northeast-3": "364406365360",
2147+
"ap-south-1": "763104351884",
2148+
"ap-south-2": "772153158452",
2149+
"ap-southeast-1": "763104351884",
2150+
"ap-southeast-2": "763104351884",
2151+
"ap-southeast-3": "907027046896",
2152+
"ap-southeast-4": "457447274322",
2153+
"ca-central-1": "763104351884",
2154+
"ca-west-1": "204538143572",
2155+
"cn-north-1": "727897471807",
2156+
"cn-northwest-1": "727897471807",
2157+
"eu-central-1": "763104351884",
2158+
"eu-central-2": "380420809688",
2159+
"eu-north-1": "763104351884",
2160+
"eu-south-1": "692866216735",
2161+
"eu-south-2": "503227376785",
2162+
"eu-west-1": "763104351884",
2163+
"eu-west-2": "763104351884",
2164+
"eu-west-3": "763104351884",
2165+
"il-central-1": "780543022126",
2166+
"me-central-1": "914824155844",
2167+
"me-south-1": "217643126080",
2168+
"sa-east-1": "763104351884",
2169+
"us-east-1": "763104351884",
2170+
"us-east-2": "763104351884",
2171+
"us-gov-east-1": "446045086412",
2172+
"us-gov-west-1": "442386744353",
2173+
"us-iso-east-1": "886529160074",
2174+
"us-isob-east-1": "094389454867",
2175+
"us-west-1": "763104351884",
2176+
"us-west-2": "763104351884"
2177+
},
2178+
"repository": "tensorflow-inference"
21382179
}
21392180
}
21402181
},
@@ -2316,7 +2357,8 @@
23162357
"2.10": "2.10.1",
23172358
"2.11": "2.11.0",
23182359
"2.12": "2.12.0",
2319-
"2.13": "2.13.0"
2360+
"2.13": "2.13.0",
2361+
"2.14": "2.14.1"
23202362
},
23212363
"versions": {
23222364
"1.10.0": {
@@ -4190,7 +4232,50 @@
41904232
"ca-west-1": "204538143572"
41914233
},
41924234
"repository": "tensorflow-training"
4235+
},
4236+
"2.14.1": {
4237+
"py_versions": [
4238+
"py310"
4239+
],
4240+
"registries": {
4241+
"af-south-1": "626614931356",
4242+
"ap-east-1": "871362719292",
4243+
"ap-northeast-1": "763104351884",
4244+
"ap-northeast-2": "763104351884",
4245+
"ap-northeast-3": "364406365360",
4246+
"ap-south-1": "763104351884",
4247+
"ap-south-2": "772153158452",
4248+
"ap-southeast-1": "763104351884",
4249+
"ap-southeast-2": "763104351884",
4250+
"ap-southeast-3": "907027046896",
4251+
"ap-southeast-4": "457447274322",
4252+
"ca-central-1": "763104351884",
4253+
"ca-west-1": "204538143572",
4254+
"cn-north-1": "727897471807",
4255+
"cn-northwest-1": "727897471807",
4256+
"eu-central-1": "763104351884",
4257+
"eu-central-2": "380420809688",
4258+
"eu-north-1": "763104351884",
4259+
"eu-south-1": "692866216735",
4260+
"eu-south-2": "503227376785",
4261+
"eu-west-1": "763104351884",
4262+
"eu-west-2": "763104351884",
4263+
"eu-west-3": "763104351884",
4264+
"il-central-1": "780543022126",
4265+
"me-central-1": "914824155844",
4266+
"me-south-1": "217643126080",
4267+
"sa-east-1": "763104351884",
4268+
"us-east-1": "763104351884",
4269+
"us-east-2": "763104351884",
4270+
"us-gov-east-1": "446045086412",
4271+
"us-gov-west-1": "442386744353",
4272+
"us-iso-east-1": "886529160074",
4273+
"us-isob-east-1": "094389454867",
4274+
"us-west-1": "763104351884",
4275+
"us-west-2": "763104351884"
4276+
},
4277+
"repository": "tensorflow-training"
41934278
}
41944279
}
41954280
}
4196-
}
4281+
}

src/sagemaker/remote_function/client.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -694,11 +694,6 @@ def __init__(
694694
encrypt_inter_container_traffic (bool): A flag that specifies whether traffic between
695695
training containers is encrypted for the training job. Defaults to ``False``.
696696
697-
enable_network_isolation (bool): A flag that specifies whether container will run in
698-
network isolation mode. Defaults to ``False``. Network isolation mode restricts the
699-
container access to outside networks (such as the Internet). The container does not
700-
make any inbound or outbound network calls. Also known as Internet-free mode.
701-
702697
spark_config (SparkConfig): Configurations to the Spark application that runs on
703698
Spark image. If ``spark_config`` is specified, a SageMaker Spark image uri
704699
will be used for training. Note that ``image_uri`` can not be specified at the

0 commit comments

Comments
 (0)