Skip to content

Commit 2235b21

Browse files
committed
doc: document v2.0.0 changes
1 parent 77086de commit 2235b21

File tree

2 files changed

+71
-25
lines changed

2 files changed

+71
-25
lines changed

doc/index.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. important::
2-
We are working on v2.0.0. See https://github.com/aws/sagemaker-python-sdk/issues/1459
3-
for more info on our plans and to leave feedback!
4-
51
###########################
62
Amazon SageMaker Python SDK
73
###########################

doc/v2.rst

Lines changed: 71 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,20 @@
1-
##########################################################
2-
Use Version 2.0 of the SageMaker Python SDK (experimental)
3-
##########################################################
4-
5-
Development on v2.0.0 of the SageMaker Python SDK is underway.
6-
For more info on our plans, see https://github.com/aws/sagemaker-python-sdk/issues/1459.
1+
###########################################
2+
Use Version 2.x of the SageMaker Python SDK
3+
###########################################
74

85
.. contents::
96
:local:
7+
:depth: 2
108

119
************
1210
Installation
1311
************
1412

15-
.. warning::
16-
Version 2.0.0 is currently experimental, so proceed with caution. If you do run into issues or have any other feedback,
17-
please let us know by `opening an issue <https://github.com/aws/sagemaker-python-sdk/issues/new/choose>`_
18-
or `commenting on our planning issue <https://github.com/aws/sagemaker-python-sdk/issues/1459>`_.
19-
20-
To install the latest release candidate:
21-
22-
.. code:: bash
23-
24-
pip install git+git://github.com/aws/[email protected]
25-
26-
To install the latest version of v2:
13+
To install the latest version:
2714

2815
.. code:: bash
2916
30-
pip install git+git://github.com/aws/sagemaker-python-sdk.git@zwei
17+
pip install --upgrade sagemaker
3118
3219
If you are executing this pip install command in a notebook, make sure to restart your kernel.
3320

@@ -36,7 +23,7 @@ Changes
3623
*******
3724

3825
This section is for major changes that may require updates to your SageMaker Python SDK code.
39-
You can also see what changes have been made in the `CHANGELOG <https://github.com/aws/sagemaker-python-sdk/blob/zwei/CHANGELOG.md>`_.
26+
You can also see what changes have been made in the `CHANGELOG <https://github.com/aws/sagemaker-python-sdk/blob/master/CHANGELOG.md>`_.
4027

4128
Deprecations
4229
============
@@ -115,9 +102,46 @@ write MIME types as a string,
115102
| ``CONTENT_TYPE_NPY`` | ``"application/x-npy"`` |
116103
+-------------------------------+--------------------------------+
117104

105+
Image URI Functions (e.g. ``get_image_uri``)
106+
--------------------------------------------
107+
108+
The following functions have been deprecated in favor of :func:`sagemaker.image_uris.retrieve`:
109+
110+
- ``sagemaker.amazon_estimator.get_image_uri()``
111+
- ``sagemaker.fw_utils.create_image_uri()``
112+
- ``sagemaker.fw_registry.registry()``
113+
- ``sagemaker.utils.get_ecr_image_uri_prefix()``
114+
115+
For more information about usage, see :func:`sagemaker.image_uris.retrieve`.
116+
117+
SageMaker Python SDK CLI
118+
------------------------
119+
120+
The SageMaker Python SDK CLI has been deprecated.
121+
(This is different from the AWS CLI.)
122+
123+
``enable_cloudwatch_metrics`` for Estimators and Models
124+
-------------------------------------------------------
125+
126+
The parameter ``enable_cloudwatch_metrics`` has been deprecated.
127+
CloudWatch metrics are already emitted for all Training Jobs, etc.
128+
129+
``sagemaker.fw_utils.parse_s3_url``
130+
-----------------------------------
131+
132+
The ``sagemaker.fw_utils.parse_s3_url`` function has been deprecated.
133+
Please use :func:`sagemaker.s3.parse_s3_url` instead.
134+
135+
``sagemaker.session.ModelContainer``
136+
------------------------------------
137+
138+
The class ``sagemaker.session.ModelContainer`` has been deprecated, as it is not needed for creating inference pipelines.
139+
140+
Changes in Default Behavior
141+
===========================
118142

119143
Require ``framework_version`` and ``py_version`` for Frameworks
120-
===============================================================
144+
---------------------------------------------------------------
121145

122146
Framework estimator and model classes now require ``framework_version`` and ``py_version`` instead of supplying defaults,
123147
unless an image URI is explicitly supplied.
@@ -147,6 +171,19 @@ For example:
147171
py_version="py3", # now required
148172
)
149173
174+
Log Display Behavior with ``attach()``
175+
--------------------------------------
176+
177+
Logs are no longer printed when using ``attach()`` with an estimator.
178+
To view logs after attaching a training job to an estimator, use :func:`sagemaker.estimator.EstimatorBase.logs`.
179+
180+
``HyperparameterTuner.fit()`` and ``Transformer.transform()``
181+
-------------------------------------------------------------
182+
183+
:func:`sagemaker.tuner.HyperparameterTuner.fit` and :func:`sagemaker.transformer.Transformer.transform` now wait
184+
until the completion of the Hyperparameter Tuning Job or Batch Transform Job, respectively.
185+
To make the function non-blocking, use ``wait=False``.
186+
150187
Parameter and Class Name Changes
151188
================================
152189

@@ -270,6 +307,19 @@ TensorFlow Serving Predictor
270307
(For the previous implementation of that class, see `Deprecate Legacy TensorFlow <#deprecate-legacy-tensorflow>`_).
271308

272309

310+
Inputs
311+
------
312+
313+
``s3_input``
314+
~~~~~~~~~~~~
315+
316+
``sagemaker.session.s3_input`` has been renamed to :class:`sagemaker.inputs.TrainingInput`.
317+
318+
``ShuffleConfig``
319+
~~~~~~~~~~~~~~~~~
320+
321+
``sagemaker.session.ShuffleConfig`` has been renamed to :class:`sagemaker.inputs.ShuffleConfig`.
322+
273323
Airflow
274324
-------
275325

0 commit comments

Comments
 (0)