Skip to content

Commit 480ba14

Browse files
authored
Merge branch 'master' into cv_s3_upload
2 parents bb8b3c7 + bd51517 commit 480ba14

26 files changed

+1131
-6
lines changed

CHANGELOG.md

+19
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## v2.144.0 (2023-04-05)
4+
5+
### Features
6+
7+
* support create Clarify explainer enabled endpoint for Clarify Online Explainability
8+
* Combined inference and training script artifact
9+
* jumpstart instance types
10+
* Deprecation warning for framework profiling for TF 2.12 and on, PT 2.0 and on
11+
12+
### Bug Fixes and Other Changes
13+
14+
* always delete temporary directory even during exception
15+
* Fixes the completion_criteria_config dict in the to_input_req method
16+
* Update CHANGELOG.md
17+
18+
### Documentation Changes
19+
20+
* Update SageMaker Debugger doc
21+
322
## v2.143.0 (2023-03-29)
423

524
### Features

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.143.1.dev0
1+
2.144.1.dev0

doc/amazon_sagemaker_debugger.rst

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ Amazon SageMaker Debugger
44
#########################
55

66

7+
.. warning::
8+
9+
This page is no longer supported for maintenence. The live documentation is at `Debug and Profile Training Jobs Using Amazon SageMaker Debugger <https://docs.aws.amazon.com/sagemaker/latest/dg/train-debugger.html>`_
10+
and `Debugger API <https://sagemaker.readthedocs.io/en/stable/api/training/debugger.html>`_.
11+
12+
713
Amazon SageMaker Debugger allows you to detect anomalies while training your machine learning model by emitting relevant data during training, storing the data and then analyzing it.
814

915
.. contents::

doc/api/inference/explainer.rst

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Online Explainability
2+
---------------------
3+
4+
This module contains classes related to Amazon Sagemaker Clarify Online Explainability
5+
6+
.. automodule:: sagemaker.explainer.explainer_config
7+
:members:
8+
:undoc-members:
9+
:show-inheritance:
10+
11+
.. automodule:: sagemaker.explainer.clarify_explainer_config
12+
:members:
13+
:undoc-members:
14+
:show-inheritance:
15+
16+

doc/api/training/debugger.rst

+23
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,13 @@ Configure the Debugger-specific parameters when constructing
1010
a SageMaker estimator to gain visibility and insights
1111
into your training job.
1212

13+
.. contents::
14+
1315
.. currentmodule:: sagemaker.debugger
1416

17+
Debugger Rule APIs
18+
~~~~~~~~~~~~~~~~~~
19+
1520
.. autoclass:: get_rule_container_image_uri
1621
:show-inheritance:
1722

@@ -44,6 +49,9 @@ into your training job.
4449
:show-inheritance:
4550
:inherited-members:
4651

52+
Debugger Configuration APIs
53+
~~~~~~~~~~~~~~~~~~~~~~~~~~~
54+
4755
.. autoclass:: CollectionConfig
4856
:show-inheritance:
4957

@@ -56,6 +64,21 @@ into your training job.
5664
.. autoclass:: ProfilerConfig
5765
:show-inheritance:
5866

67+
Debugger Configuration APIs for Framework Profiling (Deprecated)
68+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
69+
70+
.. warning::
71+
72+
SageMaker Debugger deprecates the framework profiling feature starting from TensorFlow 2.11 and PyTorch 2.0. You can still use the feature in the previous versions of the frameworks and SDKs as follows.
73+
74+
* SageMaker Python SDK <= v2.130.0
75+
* PyTorch >= v1.6.0, < v2.0
76+
* TensorFlow >= v2.3.1, < v2.11
77+
78+
With the deprecation, SageMaker Debugger discontinues support for the APIs below this note.
79+
80+
See also `Amazon SageMaker Debugger Release Notes: March 16, 2023 <https://docs.aws.amazon.com/sagemaker/latest/dg/debugger-release-notes.html#debugger-release-notes-20230315>`_.
81+
5982
.. autoclass:: FrameworkProfile
6083
:show-inheritance:
6184

src/sagemaker/estimator.py

+4
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,7 @@ def deploy(
13781378
model_data_download_timeout=None,
13791379
container_startup_health_check_timeout=None,
13801380
inference_recommendation_id=None,
1381+
explainer_config=None,
13811382
**kwargs,
13821383
):
13831384
"""Deploy the trained model to an Amazon SageMaker endpoint.
@@ -1458,6 +1459,8 @@ def deploy(
14581459
inference_recommendation_id (str): The recommendation id which specifies the
14591460
recommendation you picked from inference recommendation job results and
14601461
would like to deploy the model and endpoint with recommended parameters.
1462+
explainer_config (sagemaker.explainer.ExplainerConfig): Specifies online explainability
1463+
configuration for use with Amazon SageMaker Clarify. (default: None)
14611464
**kwargs: Passed to invocation of ``create_model()``.
14621465
Implementations may customize ``create_model()`` to accept
14631466
``**kwargs`` to customize model creation during deploy.
@@ -1516,6 +1519,7 @@ def deploy(
15161519
data_capture_config=data_capture_config,
15171520
serverless_inference_config=serverless_inference_config,
15181521
async_inference_config=async_inference_config,
1522+
explainer_config=explainer_config,
15191523
volume_size=volume_size,
15201524
model_data_download_timeout=model_data_download_timeout,
15211525
container_startup_health_check_timeout=container_startup_health_check_timeout,

src/sagemaker/explainer/__init__.py

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You
4+
# may not use this file except in compliance with the License. A copy of
5+
# the License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is
10+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+
# ANY KIND, either express or implied. See the License for the specific
12+
# language governing permissions and limitations under the License.
13+
"""Imports the classes in this module to simplify customer imports"""
14+
15+
from __future__ import absolute_import
16+
17+
from sagemaker.explainer.explainer_config import ExplainerConfig # noqa: F401
18+
from sagemaker.explainer.clarify_explainer_config import ( # noqa: F401
19+
ClarifyExplainerConfig,
20+
ClarifyInferenceConfig,
21+
ClarifyShapConfig,
22+
ClarifyShapBaselineConfig,
23+
ClarifyTextConfig,
24+
)

0 commit comments

Comments
 (0)