Skip to content

Commit a8d42ca

Browse files
authored
Merge branch 'master' into feature/large_pipeline
2 parents 7370871 + 2beb91e commit a8d42ca

File tree

117 files changed

+17587
-1954
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+17587
-1954
lines changed

CHANGELOG.md

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

3+
## v2.71.0 (2021-12-06)
4+
5+
### Features
6+
7+
* Add support for TF 2.6
8+
* Adding PT 17/18 Repo
9+
* Add profile_name support for Feature Store ingestion
10+
11+
### Bug Fixes and Other Changes
12+
13+
* Fix non-existent variable name
14+
* Add TF 2.6.2 on training
15+
* Recreate static lineage test data
16+
17+
## v2.70.0 (2021-12-02)
18+
19+
### Features
20+
21+
* update boto3 minor version >= 1.20.18
22+
* Add support for SageMaker lineage queries
23+
* add CV shap explainability for SageMaker Clarify
24+
* add NLP support for SageMaker Clarify
25+
* Add support for ModelMonitor/Clarify integration in model building pipelines
26+
* adding support for transformers 4.11 for SM Training Compiler
27+
* SM Training Compiler with an UI to enable/disable compilation for HuggingFace DLCs to speedup training
28+
29+
### Bug Fixes and Other Changes
30+
31+
* pin coveragepy
32+
* Add support for PyTorch 1.9.1
33+
* Update s3 path of scheduling analysis config on ClarifyCheckStep
34+
* documentation/logging to indicate correct place for DEBUG artifacts from SM trcomp
35+
* validate requested transformers version and use the best available version
36+
* Install custom pkgs
37+
38+
## v2.69.0 (2021-11-12)
39+
40+
### Features
41+
42+
* Hugging Face Transformers 4.12 for Pt1.9/TF2.5
43+
44+
## v2.68.0 (2021-11-02)
45+
46+
### Features
47+
48+
* CompilationStep support for Sagemaker Pipelines
49+
50+
## v2.67.0 (2021-11-01)
51+
52+
### Deprecations and Removals
53+
54+
* deprecate Serverless Lambda model-predictor
55+
56+
### Features
57+
58+
* add joinsource to DataConfig
59+
* Add support for Partial Dependence Plots(PDP) in SageMaker Clarify
60+
61+
### Bug Fixes and Other Changes
62+
63+
* localmode subprocess parent process not sending SIGTERM to child
64+
* remove buildspec from repo
65+
66+
## v2.66.2.post0 (2021-10-28)
67+
68+
### Documentation Changes
69+
70+
* Update estimator docstrings to add Fast File Mode
71+
372
## v2.66.2 (2021-10-27)
473

574
### Bug Fixes and Other Changes

VERSION

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

buildspec-deploy.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

buildspec-localmodetests.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

buildspec-notebooktests.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

buildspec-release.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

buildspec-slowtests.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

buildspec-unittests.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

buildspec.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

doc/api/inference/model.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,3 @@ Model
1616
:undoc-members:
1717
:show-inheritance:
1818

19-
.. autoclass:: sagemaker.serverless.model.LambdaModel
20-
:members:
21-
:undoc-members:
22-
:show-inheritance:

doc/api/inference/model_monitor.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,13 @@ Model Monitor
3131
:members:
3232
:undoc-members:
3333
:show-inheritance:
34+
35+
.. automodule:: sagemaker.model_metrics
36+
:members:
37+
:undoc-members:
38+
:show-inheritance:
39+
40+
.. automodule:: sagemaker.drift_check_baselines
41+
:members:
42+
:undoc-members:
43+
:show-inheritance:

doc/api/inference/predictors.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,3 @@ Make real-time predictions against SageMaker endpoints with Python objects
77
:members:
88
:undoc-members:
99
:show-inheritance:
10-
11-
.. autoclass:: sagemaker.serverless.predictor.LambdaPredictor
12-
:members:
13-
:undoc-members:
14-
:show-inheritance:

doc/frameworks/huggingface/sagemaker.huggingface.rst

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ Hugging Face
44
Hugging Face Estimator
55
----------------------
66

7-
.. autoclass:: sagemaker.huggingface.estimator.HuggingFace
7+
.. autoclass:: sagemaker.huggingface.HuggingFace
8+
:members:
9+
:undoc-members:
10+
:show-inheritance:
11+
12+
Hugging Face Training Compiler Configuration
13+
--------------------------------------------
14+
15+
.. autoclass:: sagemaker.huggingface.TrainingCompilerConfig
816
:members:
917
:undoc-members:
1018
:show-inheritance:
@@ -17,8 +25,8 @@ Hugging Face Model
1725
:undoc-members:
1826
:show-inheritance:
1927

20-
HuggingFace Predictor
21-
---------------------
28+
Hugging Face Predictor
29+
----------------------
2230

2331
.. autoclass:: sagemaker.huggingface.model.HuggingFacePredictor
2432
:members:

doc/overview.rst

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,50 +1063,6 @@ You can also find these notebooks in the **Advanced Functionality** section of t
10631063
For information about using sample notebooks in a SageMaker notebook instance, see `Use Example Notebooks <https://docs.aws.amazon.com/sagemaker/latest/dg/howitworks-nbexamples.html>`__
10641064
in the AWS documentation.
10651065
1066-
********************
1067-
Serverless Inference
1068-
********************
1069-
1070-
You can use the SageMaker Python SDK to perform serverless inference on Lambda.
1071-
1072-
To deploy models to Lambda, you must complete the following prerequisites:
1073-
1074-
- `Package your model and inference code as a container image. <https://docs.aws.amazon.com/lambda/latest/dg/images-create.html>`_
1075-
- `Create a role that lists Lambda as a trusted entity. <https://docs.aws.amazon.com/lambda/latest/dg/lambda-intro-execution-role.html#permissions-executionrole-console>`_
1076-
1077-
After completing the prerequisites, you can deploy your model to Lambda using
1078-
the `LambdaModel`_ class.
1079-
1080-
.. code:: python
1081-
1082-
from sagemaker.serverless import LambdaModel
1083-
1084-
image_uri = "123456789012.dkr.ecr.us-west-2.amazonaws.com/my-lambda-repository:latest"
1085-
role = "arn:aws:iam::123456789012:role/MyLambdaExecutionRole"
1086-
1087-
model = LambdaModel(image_uri=image_uri, role=role)
1088-
predictor = model.deploy("my-lambda-function", timeout=20, memory_size=4092)
1089-
1090-
The ``deploy`` method returns a `LambdaPredictor`_ instance. Use the
1091-
`LambdaPredictor`_ ``predict`` method to perform inference on Lambda.
1092-
1093-
.. code:: python
1094-
1095-
url = "https://example.com/cat.jpeg"
1096-
predictor.predict({"url": url}) # {'class': 'tabby'}
1097-
1098-
Once you are done performing inference on Lambda, free the `LambdaModel`_ and
1099-
`LambdaPredictor`_ resources using the ``delete_model`` and ``delete_predictor``
1100-
methods.
1101-
1102-
.. code:: python
1103-
1104-
model.delete_model()
1105-
predictor.delete_predictor()
1106-
1107-
.. _LambdaModel : https://sagemaker.readthedocs.io/en/stable/api/inference/model.html#sagemaker.serverless.model.LambdaModel
1108-
.. _LambdaPredictor : https://sagemaker.readthedocs.io/en/stable/api/inference/predictors.html#sagemaker.serverless.predictor.LambdaPredictor
1109-
11101066
******************
11111067
SageMaker Workflow
11121068
******************

doc/workflows/pipelines/sagemaker.workflow.pipelines.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Conditions
3232

3333
.. autoclass:: sagemaker.workflow.conditions.ConditionOr
3434

35+
CheckJobConfig
36+
--------------
37+
38+
.. autoclass:: sagemaker.workflow.check_job_config.CheckJobConfig
39+
3540
Entities
3641
--------
3742

@@ -134,3 +139,13 @@ Steps
134139
.. autoclass:: sagemaker.workflow.steps.CacheConfig
135140

136141
.. autoclass:: sagemaker.workflow.lambda_step.LambdaStep
142+
143+
.. autoclass:: sagemaker.workflow.steps.CompilationStep
144+
145+
.. autoclass:: sagemaker.workflow.quality_check_step.QualityCheckConfig
146+
147+
.. autoclass:: sagemaker.workflow.quality_check_step.QualityCheckStep
148+
149+
.. autoclass:: sagemaker.workflow.clarify_check_step.ClarifyCheckConfig
150+
151+
.. autoclass:: sagemaker.workflow.clarify_check_step.ClarifyCheckStep

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def read_version():
3434
# Declare minimal set for installation
3535
required_packages = [
3636
"attrs",
37-
"boto3>=1.16.32",
37+
"boto3>=1.20.18",
3838
"google-pasta",
3939
"numpy>=1.9.0",
4040
"protobuf>=3.1",
@@ -69,6 +69,7 @@ def read_version():
6969
"pytest-rerunfailures",
7070
"pytest-timeout",
7171
"pytest-xdist",
72+
"coverage<6.2",
7273
"mock",
7374
"contextlib2",
7475
"awslogs",

src/sagemaker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
from sagemaker.local.local_session import LocalSession # noqa: F401
5050

5151
from sagemaker.model import Model, ModelPackage # noqa: F401
52-
from sagemaker.model_metrics import ModelMetrics, MetricsSource # noqa: F401
52+
from sagemaker.model_metrics import ModelMetrics, MetricsSource, FileSource # noqa: F401
5353
from sagemaker.pipeline import PipelineModel # noqa: F401
5454
from sagemaker.predictor import Predictor # noqa: F401
5555
from sagemaker.processing import Processor, ScriptProcessor # noqa: F401

0 commit comments

Comments
 (0)