Skip to content

Commit d0f2645

Browse files
authored
Merge branch 'master' into pipelinemodel_nw_isolation_fix
2 parents 2fa31c2 + 6a99ac7 commit d0f2645

File tree

447 files changed

+4440
-741
lines changed

Some content is hidden

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

447 files changed

+4440
-741
lines changed

CHANGELOG.md

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

3+
## v2.54.0 (2021-08-16)
4+
5+
### Features
6+
7+
* add pytorch 1.5.1 eia configuration
8+
9+
### Bug Fixes and Other Changes
10+
11+
* issue #2253 where Processing job in Local mode would call Describe…
12+
13+
## v2.53.0 (2021-08-12)
14+
15+
### Features
16+
17+
* support tuning step parameter range parameterization + support retry strategy in tuner
18+
19+
## v2.52.2.post0 (2021-08-11)
20+
21+
### Documentation Changes
22+
23+
* clarify that default_bucket creates a bucket
24+
* Minor updates to Clarify API documentation
25+
26+
## v2.52.2 (2021-08-10)
27+
28+
### Bug Fixes and Other Changes
29+
30+
* sklearn integ tests, remove swallowing exception on feature group delete attempt
31+
* sklearn integ test for custom bucket
32+
33+
### Documentation Changes
34+
35+
* Fix dataset_definition links
36+
* Document LambdaModel and LambdaPredictor classes
37+
38+
## v2.52.1 (2021-08-06)
39+
40+
### Bug Fixes and Other Changes
41+
42+
* revert #2251 changes for sklearn processor
43+
44+
## v2.52.0 (2021-08-05)
45+
46+
### Features
47+
48+
* processors that support multiple Python files, requirements.txt, and dependencies.
49+
* support step object in step depends on list
50+
51+
### Bug Fixes and Other Changes
52+
53+
* enable isolation while creating model from job
54+
* update `sagemaker.serverless` integration test
55+
* Use correct boto model name for RegisterModelStep properties
56+
57+
## v2.51.0 (2021-08-03)
58+
59+
### Features
60+
61+
* add LambdaStep support for SageMaker Pipelines
62+
* support JsonGet for all step types
63+
64+
## v2.50.1 (2021-08-02)
65+
66+
### Bug Fixes and Other Changes
67+
68+
* null checks for uploaded_code and entry_point
69+
70+
### Documentation Changes
71+
72+
* update sagemaker.estimator.EstimatorBase
73+
* Mark baseline as optional in KernelSHAP.
74+
75+
## v2.50.0 (2021-07-28)
76+
77+
### Features
78+
79+
* add KIX region to image_uris
80+
81+
### Bug Fixes and Other Changes
82+
83+
* Rename `PredictorBase.delete_endpoint` as `PredictorBase.delete_predictor`
84+
* incorrect default argument for callback output parameter
85+
86+
### Documentation Changes
87+
88+
* Remove years from copyright boilerplate
89+
* Fix documentation formatting for PySpark and SparkJar processors
90+
91+
### Testing and Release Infrastructure
92+
93+
* enable py38 tox env
94+
395
## v2.49.2 (2021-07-21)
496

597
### Bug Fixes and Other Changes

NOTICE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
Amazon SageMaker Python SDK
2-
Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ However, if you are using an IAM role with a path in it, you should grant permis
103103

104104
Licensing
105105
~~~~~~~~~
106-
SageMaker Python SDK is licensed under the Apache 2.0 License. It is copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. The license is available at:
106+
SageMaker Python SDK is licensed under the Apache 2.0 License. It is copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. The license is available at:
107107
http://aws.amazon.com/apache2.0/
108108

109109
Running tests

VERSION

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

ci-scripts/displaytime.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env bash
2-
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License"). You
55
# may not use this file except in compliance with the License. A copy of

ci-scripts/queue_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

doc/api/inference/model.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ Model
1515
:members:
1616
:undoc-members:
1717
:show-inheritance:
18+
19+
.. autoclass:: sagemaker.serverless.model.LambdaModel
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:

doc/api/inference/predictors.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ 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/api/utility/lambda_helper.rst

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

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

doc/overview.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,6 +1063,50 @@ 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+
10661110
******************
10671111
SageMaker Workflow
10681112
******************

doc/workflows/pipelines/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
################
2-
Amazon Pipelines
3-
################
1+
###################
2+
SageMaker Pipelines
3+
###################
44

5-
SageMaker APIs for creating and managing Amazon Pipelines.
5+
SageMaker APIs for creating and managing SageMaker Pipelines.
66

77
.. toctree::
88
:maxdepth: 2

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

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ ConditionStep
55
-------------
66

77
.. autoclass:: sagemaker.workflow.condition_step.ConditionStep
8-
9-
.. autoclass:: sagemaker.workflow.condition_step.JsonGet
8+
.. deprecated:: sagemaker.workflow.condition_step.JsonGet
109

1110
Conditions
1211
----------
@@ -33,8 +32,6 @@ Conditions
3332

3433
.. autoclass:: sagemaker.workflow.conditions.ConditionOr
3534

36-
.. autofunction:: sagemaker.workflow.conditions.primitive_or_expr
37-
3835
Entities
3936
--------
4037

@@ -44,7 +41,7 @@ Entities
4441

4542
.. autoclass:: sagemaker.workflow.entities.Expression
4643

47-
Execution_variables
44+
Execution Variables
4845
-------------------
4946

5047
.. autoclass:: sagemaker.workflow.execution_variables.ExecutionVariable
@@ -56,6 +53,8 @@ Functions
5653

5754
.. autoclass:: sagemaker.workflow.functions.Join
5855

56+
.. autoclass:: sagemaker.workflow.functions.JsonGet
57+
5958
Parameters
6059
----------
6160

@@ -73,12 +72,17 @@ Pipeline
7372
--------
7473

7574
.. autoclass:: sagemaker.workflow.pipeline.Pipeline
75+
:members:
7676

77-
.. autofunction:: sagemaker.workflow.pipeline.format_start_parameters
77+
.. autoclass:: sagemaker.workflow.pipeline._PipelineExecution
78+
:members:
7879

79-
.. autofunction:: sagemaker.workflow.pipeline.interpolate
80+
Pipeline Experiment Config
81+
--------------------------
8082

81-
.. autofunction:: sagemaker.workflow.pipeline.update_args
83+
.. autoclass:: sagemaker.workflow.pipeline_experiment_config.PipelineExperimentConfig
84+
85+
.. autoclass:: sagemaker.workflow.pipeline_experiment_config.PipelineExperimentConfigProperty
8286

8387
Properties
8488
----------
@@ -121,7 +125,6 @@ Steps
121125

122126
.. autoclass:: sagemaker.workflow.callback_step.CallbackStep
123127

124-
Utilities
125-
---------
128+
.. autoclass:: sagemaker.workflow.steps.CacheConfig
126129

127-
.. autofunction:: sagemaker.workflow.utilities.list_to_request
130+
.. autoclass:: sagemaker.workflow.lambda_step.LambdaStep

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/_studio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/amazon_estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/factorization_machines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/hyperparameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/ipinsights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/kmeans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/knn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/lda.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/linear_learner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/ntm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/object2vec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/pca.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/sagemaker/amazon/randomcutforest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2017-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

0 commit comments

Comments
 (0)