Skip to content

Commit 02188a1

Browse files
Merge pull request #8 from mufaddal-rohawala/master
2 parents 28bbc0f + 437c39c commit 02188a1

21 files changed

+741
-51
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Bug report
33
about: File a report to help us reproduce and fix the problem
44
title: ''
5-
labels: ''
5+
labels: 'bug'
66
assignees: ''
77

88
---

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Feature request
33
about: Suggest new functionality for this library
44
title: ''
5-
labels: ''
5+
labels: 'feature request'
66
assignees: ''
77

88
---

CHANGELOG.md

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

3+
## v2.61.0 (2021-10-11)
4+
5+
### Features
6+
7+
* add support for PyTorch 1.9.0
8+
9+
### Bug Fixes and Other Changes
10+
11+
* Update TRAINING_DEFAULT_TIMEOUT_MINUTES to 40 min
12+
* notebook test for parallel PRs
13+
14+
## v2.60.0 (2021-10-08)
15+
16+
### Features
17+
18+
* Add support for Hugging Face 4.10.2
19+
20+
## v2.59.8 (2021-10-07)
21+
22+
### Bug Fixes and Other Changes
23+
24+
* fix feature store ingestion via data wrangler test
25+
26+
## v2.59.7 (2021-10-04)
27+
28+
### Bug Fixes and Other Changes
29+
30+
* update feature request label
31+
* update bug template
32+
33+
## v2.59.6 (2021-09-30)
34+
35+
### Bug Fixes and Other Changes
36+
37+
* ParamValidationError when scheduling a Clarify model monitor
38+
39+
## v2.59.5 (2021-09-29)
40+
41+
### Bug Fixes and Other Changes
42+
43+
* support maps in step parameters
44+
345
## v2.59.4 (2021-09-27)
446

547
### Bug Fixes and Other Changes

VERSION

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

src/sagemaker/clarify.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ def __init__(
228228
probability_threshold=None,
229229
label_headers=None,
230230
):
231-
"""Initializes a model output config to extract the predicted label.
231+
"""Initializes a model output config to extract the predicted label or predicted score(s).
232232
233233
The following examples show different parameter configurations depending on the endpoint:
234234
* Regression Task: The model returns the score, e.g. 1.2. we don't need to specify
@@ -255,11 +255,11 @@ def __init__(
255255
'label_headers=['cat','dog','fish']' and infer the predicted label to be 'fish.'
256256
257257
Args:
258-
label (str or int or list[int]): Optional index or JSONPath location in the model
259-
output for the prediction. In case, this is a predicted label of the same type as
260-
the label in the dataset no further arguments need to be specified.
261-
probability (str or int or list[int]): Optional index or JSONPath location in the model
262-
output for the predicted scores.
258+
label (str or int): Index or JSONPath location in the model output for the prediction.
259+
In case, this is a predicted label of the same type as the label in the dataset,
260+
no further arguments need to be specified.
261+
probability (str or int): Index or JSONPath location in the model output
262+
for the predicted score(s).
263263
probability_threshold (float): An optional value for binary prediction tasks in which
264264
the model returns a probability, to indicate the threshold to convert the
265265
prediction to a boolean value. Default is 0.5.

src/sagemaker/fw_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
)
6161
SM_DATAPARALLEL_SUPPORTED_FRAMEWORK_VERSIONS = {
6262
"tensorflow": ["2.3", "2.3.1", "2.3.2", "2.4", "2.4.1"],
63-
"pytorch": ["1.6", "1.6.0", "1.7", "1.7.1", "1.8", "1.8.0", "1.8.1"],
63+
"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"]
6666

@@ -298,7 +298,7 @@ def framework_name_from_image(image_uri):
298298
(tensorflow|mxnet|chainer|pytorch|scikit-learn|xgboost
299299
|huggingface-tensorflow|huggingface-pytorch)(?:-)?
300300
(scriptmode|training)?
301-
:(.*)-(.*?)-(py2|py3[67]?)(?:.*)$""",
301+
:(.*)-(.*?)-(py2|py3\d*)(?:.*)$""",
302302
re.VERBOSE,
303303
)
304304
name_match = name_pattern.match(sagemaker_match.group(9))
@@ -329,7 +329,7 @@ def framework_version_from_tag(image_tag):
329329
Returns:
330330
str: The framework version.
331331
"""
332-
tag_pattern = re.compile("^(.*)-(cpu|gpu)-(py2|py3[67]?)$")
332+
tag_pattern = re.compile(r"^(.*)-(cpu|gpu)-(py2|py3\d*)$")
333333
tag_match = tag_pattern.match(image_tag)
334334
return None if tag_match is None else tag_match.group(1)
335335

src/sagemaker/huggingface/estimator.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ def __init__(
178178
if "enable_sagemaker_metrics" not in kwargs:
179179
kwargs["enable_sagemaker_metrics"] = True
180180

181+
kwargs["py_version"] = self.py_version
182+
181183
super(HuggingFace, self).__init__(
182184
entry_point, source_dir, hyperparameters, image_uri=image_uri, **kwargs
183185
)

0 commit comments

Comments
 (0)