Skip to content

Commit c6c4c9d

Browse files
authored
Merge branch 'master' into P50369404
2 parents ed034ed + a2ba96f commit c6c4c9d

File tree

24 files changed

+690
-62
lines changed

24 files changed

+690
-62
lines changed

CHANGELOG.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,45 @@
11
# Changelog
22

3+
## v2.66.0 (2021-10-25)
4+
5+
### Features
6+
7+
* Add image_uris.retrieve() support for AutoGluon
8+
9+
### Documentation Changes
10+
11+
* fix documentation for input types in estimator.fit
12+
* Add JsonGet v2 deprecation
13+
14+
## v2.65.0 (2021-10-21)
15+
16+
### Features
17+
18+
* modify RLEstimator to use newly generated Ray image (1.6.0)
19+
* network isolation mode for xgboost
20+
* update clarify imageURI for PDT
21+
22+
### Bug Fixes and Other Changes
23+
24+
* retry downstream_trials test
25+
* Add retries to pipeline execution
26+
27+
## v2.64.0 (2021-10-20)
28+
29+
### Deprecations and Removals
30+
31+
* warn for deprecation - Lambda model-predictor
32+
33+
### Features
34+
35+
* Add support for TF 2.5
36+
* Add a pre-push git hook
37+
38+
### Bug Fixes and Other Changes
39+
40+
* add s3_analysis_config_output_path field in DataConfig constructor
41+
* make marketplace jobnames random
42+
343
## v2.63.2 (2021-10-18)
444

545
### Bug Fixes and Other Changes

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.63.3.dev0
1+
2.66.1.dev0

doc/v2.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,12 @@ Please use :func:`sagemaker.s3.parse_s3_url` instead.
265265

266266
The class ``sagemaker.session.ModelContainer`` has been deprecated, as it is not needed for creating inference pipelines.
267267

268+
``sagemaker.workflow.condition_step.JsonGet``
269+
---------------------------------------------
270+
271+
The class ``sagemaker.workflow.condition_step.JsonGet`` has been deprecated.
272+
Please use :class:`sagemaker.workflow.functions.JsonGet` instead.
273+
268274
Parameter and Class Name Changes
269275
================================
270276

src/sagemaker/clarify.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def __init__(
3131
self,
3232
s3_data_input_path,
3333
s3_output_path,
34+
s3_analysis_config_output_path=None,
3435
label=None,
3536
headers=None,
3637
features=None,
@@ -43,6 +44,9 @@ def __init__(
4344
Args:
4445
s3_data_input_path (str): Dataset S3 prefix/object URI.
4546
s3_output_path (str): S3 prefix to store the output.
47+
s3_analysis_config_output_path (str): S3 prefix to store the analysis_config output
48+
If this field is None, then the s3_output_path will be used
49+
to store the analysis_config output
4650
label (str): Target attribute of the model required by bias metrics (optional for SHAP)
4751
Specified as column name or index for CSV dataset, or as JSONPath for JSONLines.
4852
headers (list[str]): A list of column names in the input dataset.
@@ -61,6 +65,7 @@ def __init__(
6165
)
6266
self.s3_data_input_path = s3_data_input_path
6367
self.s3_output_path = s3_output_path
68+
self.s3_analysis_config_output_path = s3_analysis_config_output_path
6469
self.s3_data_distribution_type = s3_data_distribution_type
6570
self.s3_compression_type = s3_compression_type
6671
self.label = label
@@ -489,7 +494,7 @@ def _run(
489494
json.dump(analysis_config, f)
490495
s3_analysis_config_file = _upload_analysis_config(
491496
analysis_config_file,
492-
data_config.s3_output_path,
497+
data_config.s3_analysis_config_output_path or data_config.s3_output_path,
493498
self.sagemaker_session,
494499
kms_key,
495500
)

src/sagemaker/estimator.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -650,19 +650,22 @@ def fit(self, inputs=None, wait=True, logs="All", job_name=None, experiment_conf
650650
model using the Amazon SageMaker hosting services.
651651
652652
Args:
653-
inputs (str or dict or sagemaker.inputs.TrainingInput): Information
654-
about the training data. This can be one of three types:
653+
inputs (str or dict or sagemaker.inputs.TrainingInput or
654+
sagemaker.inputs.FileSystemInput): Information about the training data.
655+
This can be one of four types:
655656
656657
* (str) the S3 location where training data is saved, or a file:// path in
657658
local mode.
658-
* (dict[str, str] or dict[str, sagemaker.inputs.TrainingInput]) If using multiple
659-
channels for training data, you can specify a dict mapping channel names to
660-
strings or :func:`~sagemaker.inputs.TrainingInput` objects.
659+
* (dict[str, str] or dict[str, sagemaker.inputs.TrainingInput] or
660+
dict[str, sagemaker.inputs.FileSystemInput]) If using multiple channels for
661+
training data, you can specify a dict mapping channel names to strings or
662+
:func:`~sagemaker.inputs.TrainingInput` objects or
663+
:func:`~sagemaker.inputs.FileSystemInput` objects.
661664
* (sagemaker.inputs.TrainingInput) - channel configuration for S3 data sources
662665
that can provide additional information as well as the path to the training
663666
dataset.
664667
See :func:`sagemaker.inputs.TrainingInput` for full details.
665-
* (sagemaker.session.FileSystemInput) - channel configuration for
668+
* (sagemaker.inputs.FileSystemInput) - channel configuration for
666669
a file system data source that can provide additional information as well as
667670
the path to the training dataset.
668671

src/sagemaker/fw_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"local_gpu",
6060
)
6161
SM_DATAPARALLEL_SUPPORTED_FRAMEWORK_VERSIONS = {
62-
"tensorflow": ["2.3", "2.3.1", "2.3.2", "2.4", "2.4.1"],
62+
"tensorflow": ["2.3", "2.3.1", "2.3.2", "2.4", "2.4.1", "2.4.3", "2.5", "2.5.0", "2.5.1"],
6363
"pytorch": ["1.6", "1.6.0", "1.7", "1.7.1", "1.8", "1.8.0", "1.8.1", "1.9", "1.9.0"],
6464
}
6565
SMDISTRIBUTED_SUPPORTED_STRATEGIES = ["dataparallel", "modelparallel"]
@@ -533,7 +533,7 @@ def _validate_smdataparallel_args(
533533
if "py3" not in py_version:
534534
err_msg += (
535535
f"Provided py_version {py_version} is not supported by smdataparallel.\n"
536-
"Please specify py_version=py3"
536+
"Please specify py_version>=py3"
537537
)
538538

539539
if err_msg:
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"training": {
3+
"processors": ["cpu", "gpu"],
4+
"versions": {
5+
"0.3.1": {
6+
"registries": {
7+
"af-south-1": "626614931356",
8+
"ap-east-1": "871362719292",
9+
"ap-northeast-1": "763104351884",
10+
"ap-northeast-2": "763104351884",
11+
"ap-northeast-3": "364406365360",
12+
"ap-south-1": "763104351884",
13+
"ap-southeast-1": "763104351884",
14+
"ap-southeast-2": "763104351884",
15+
"ca-central-1": "763104351884",
16+
"eu-central-1": "763104351884",
17+
"eu-north-1": "763104351884",
18+
"eu-west-1": "763104351884",
19+
"eu-west-2": "763104351884",
20+
"eu-west-3": "763104351884",
21+
"eu-south-1": "692866216735",
22+
"me-south-1": "217643126080",
23+
"sa-east-1": "763104351884",
24+
"us-east-1": "763104351884",
25+
"us-east-2": "763104351884",
26+
"us-gov-west-1": "442386744353",
27+
"us-iso-east-1": "886529160074",
28+
"us-west-1": "763104351884",
29+
"us-west-2": "763104351884"
30+
},
31+
"repository": "autogluon-training",
32+
"py_versions": ["py37"]
33+
}
34+
}
35+
},
36+
"inference": {
37+
"processors": ["cpu"],
38+
"versions": {
39+
"0.3.1": {
40+
"registries": {
41+
"af-south-1": "626614931356",
42+
"ap-east-1": "871362719292",
43+
"ap-northeast-1": "763104351884",
44+
"ap-northeast-2": "763104351884",
45+
"ap-northeast-3": "364406365360",
46+
"ap-south-1": "763104351884",
47+
"ap-southeast-1": "763104351884",
48+
"ap-southeast-2": "763104351884",
49+
"ca-central-1": "763104351884",
50+
"cn-north-1": "727897471807",
51+
"cn-northwest-1": "727897471807",
52+
"eu-central-1": "763104351884",
53+
"eu-north-1": "763104351884",
54+
"eu-west-1": "763104351884",
55+
"eu-west-2": "763104351884",
56+
"eu-west-3": "763104351884",
57+
"eu-south-1": "692866216735",
58+
"me-south-1": "217643126080",
59+
"sa-east-1": "763104351884",
60+
"us-east-1": "763104351884",
61+
"us-east-2": "763104351884",
62+
"us-gov-west-1": "442386744353",
63+
"us-iso-east-1": "886529160074",
64+
"us-west-1": "763104351884",
65+
"us-west-2": "763104351884"
66+
},
67+
"repository": "autogluon-inference",
68+
"py_versions": ["py37"]
69+
}
70+
}
71+
}
72+
}

src/sagemaker/image_uri_config/clarify.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"us-east-1": "205585389593",
2626
"us-east-2": "211330385671",
2727
"us-west-1": "740489534195",
28-
"us-west-2": "306415355426"
28+
"us-west-2": "306415355426",
29+
"us-gov-west-1": "598674086554"
2930
},
3031
"repository": "sagemaker-clarify-processing"
3132
}

src/sagemaker/image_uri_config/ray-pytorch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,26 @@
2121
},
2222
"repository": "sagemaker-rl-ray-container",
2323
"tag_prefix": "ray-0.8.5-torch"
24+
},
25+
"1.6.0": {
26+
"py_versions": ["py36"],
27+
"registries": {
28+
"ap-northeast-1": "462105765813",
29+
"ap-northeast-2": "462105765813",
30+
"ap-south-1": "462105765813",
31+
"ap-southeast-1": "462105765813",
32+
"ap-southeast-2": "462105765813",
33+
"ca-central-1": "462105765813",
34+
"eu-central-1": "462105765813",
35+
"eu-west-1": "462105765813",
36+
"eu-west-2": "462105765813",
37+
"us-east-1": "462105765813",
38+
"us-east-2": "462105765813",
39+
"us-west-1": "462105765813",
40+
"us-west-2": "462105765813"
41+
},
42+
"repository": "sagemaker-rl-ray-container",
43+
"tag_prefix": "ray-1.6.0-torch"
2444
}
2545
}
2646
}

src/sagemaker/image_uri_config/ray-tensorflow.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,26 @@
165165
},
166166
"repository": "sagemaker-rl-ray-container",
167167
"tag_prefix": "ray-0.8.5-tf"
168+
},
169+
"1.6.0": {
170+
"py_versions": ["py37"],
171+
"registries": {
172+
"ap-northeast-1": "462105765813",
173+
"ap-northeast-2": "462105765813",
174+
"ap-south-1": "462105765813",
175+
"ap-southeast-1": "462105765813",
176+
"ap-southeast-2": "462105765813",
177+
"ca-central-1": "462105765813",
178+
"eu-central-1": "462105765813",
179+
"eu-west-1": "462105765813",
180+
"eu-west-2": "462105765813",
181+
"us-east-1": "462105765813",
182+
"us-east-2": "462105765813",
183+
"us-west-1": "462105765813",
184+
"us-west-2": "462105765813"
185+
},
186+
"repository": "sagemaker-rl-ray-container",
187+
"tag_prefix": "ray-1.6.0-tf"
168188
}
169189
}
170190
}

0 commit comments

Comments
 (0)