Skip to content

Commit 21dcae9

Browse files
laurenyuPiali Das
authored and
Piali Das
committed
Add MXNet 1.2.1 and bump SDK to v1.9.0 (aws#336)
1 parent 2f88dff commit 21dcae9

File tree

6 files changed

+24
-19
lines changed

6 files changed

+24
-19
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
CHANGELOG
33
=========
44

5+
1.9.0
6+
=====
7+
8+
* feature: Estimators: add support for MXNet 1.2.1
9+
510
1.8.0
611
=====
712

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ You can install from source by cloning this repository and issuing a pip install
5151

5252
git clone https://github.com/aws/sagemaker-python-sdk.git
5353
python setup.py sdist
54-
pip install dist/sagemaker-1.8.0.tar.gz
54+
pip install dist/sagemaker-1.9.0.tar.gz
5555

5656
Supported Operating Systems
5757
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -240,7 +240,7 @@ MXNet SageMaker Estimators
240240

241241
With MXNet Estimators, you can train and host MXNet models on Amazon SageMaker.
242242

243-
Supported versions of MXNet: ``1.1.0``, ``1.0.0``, ``0.12.1``.
243+
Supported versions of MXNet: ``1.2.1``, ``1.1.0``, ``1.0.0``, ``0.12.1``.
244244

245245
More details at `MXNet SageMaker Estimators and Models`_.
246246

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def read(fname):
2323

2424

2525
setup(name="sagemaker",
26-
version="1.8.0",
26+
version="1.9.0",
2727
description="Open source library for training and deploying models on Amazon SageMaker.",
2828
packages=find_packages('src'),
2929
package_dir={'': 'src'},

src/sagemaker/mxnet/README.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ MXNet SageMaker Estimators and Models
55

66
With MXNet Estimators, you can train and host MXNet models on Amazon SageMaker.
77

8-
Supported versions of MXNet: ``1.1.0``, ``1.0.0``, ``0.12.1``.
8+
Supported versions of MXNet: ``1.2.1``, ``1.1.0``, ``1.0.0``, ``0.12.1``.
99

1010
Training with MXNet
1111
~~~~~~~~~~~~~~~~~~~
@@ -81,7 +81,7 @@ If you want to run your training script locally via the Python interpreter, look
8181
Using MXNet and numpy
8282
^^^^^^^^^^^^^^^^^^^^^
8383

84-
You can import both ``mxnet`` and ``numpy`` in your training script. When your script runs in SageMaker, it will run with access to MXNet version 1.0.0 and numpy version 1.13.3 by default. For more information on the environment your script runs in, please see `SageMaker MXNet Containers <#sagemaker-mxnet-containers>`__.
84+
You can import both ``mxnet`` and ``numpy`` in your training script. When your script runs in SageMaker, it will run with access to MXNet version 1.2.1 and numpy version 1.14.5 by default. For more information on the environment your script runs in, please see `SageMaker MXNet Containers <#sagemaker-mxnet-containers>`__.
8585

8686
Running an MXNet training script in SageMaker
8787
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -584,23 +584,23 @@ When training and deploying training scripts, SageMaker runs your Python script
584584

585585
SageMaker runs MXNet Estimator scripts in either Python 2.7 or Python 3.5. You can select the Python version by passing a ``py_version`` keyword arg to the MXNet Estimator constructor. Setting this to ``py2`` (the default) will cause your training script to be run on Python 2.7. Setting this to ``py3`` will cause your training script to be run on Python 3.5. This Python version applies to both the Training Job, created by fit, and the Endpoint, created by deploy.
586586

587-
Your MXNet training script will be run on version 1.1.0 by default. (See below for how to choose a different version, and currently supported versions.) The decision to use the GPU or CPU version of MXNet is made by the ``train_instance_type``, set on the MXNet constructor. If you choose a GPU instance type, your training job will be run on a GPU version of MXNet. If you choose a CPU instance type, your training job will be run on a CPU version of MXNet. Similarly, when you call deploy, specifying a GPU or CPU deploy_instance_type, will control which MXNet build your Endpoint runs.
587+
Your MXNet training script will be run on version 1.2.1 by default. (See below for how to choose a different version, and currently supported versions.) The decision to use the GPU or CPU version of MXNet is made by the ``train_instance_type``, set on the MXNet constructor. If you choose a GPU instance type, your training job will be run on a GPU version of MXNet. If you choose a CPU instance type, your training job will be run on a CPU version of MXNet. Similarly, when you call deploy, specifying a GPU or CPU deploy_instance_type, will control which MXNet build your Endpoint runs.
588588

589589
The Docker images have the following dependencies installed:
590590

591-
+-------------------------+--------------+-------------+-------------+
592-
| Dependencies | MXNet 0.12.1 | MXNet 1.0.0 | MXNet 1.1.0 |
593-
+-------------------------+--------------+-------------+-------------+
594-
| Python | 2.7 or 3.5 | 2.7 or 3.5| 2.7 or 3.5|
595-
+-------------------------+--------------+-------------+-------------+
596-
| CUDA | 9.0 | 9.0 | 9.0 |
597-
+-------------------------+--------------+-------------+-------------+
598-
| numpy | 1.13.3 | 1.13.3 | 1.13.3 |
599-
+-------------------------+--------------+-------------+-------------+
591+
+-------------------------+--------------+-------------+-------------+-------------+
592+
| Dependencies | MXNet 0.12.1 | MXNet 1.0.0 | MXNet 1.1.0 | MXNet 1.2.1 |
593+
+-------------------------+--------------+-------------+-------------+-------------+
594+
| Python | 2.7 or 3.5 | 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.5|
595+
+-------------------------+--------------+-------------+-------------+-------------+
596+
| CUDA | 9.0 | 9.0 | 9.0 | 9.0 |
597+
+-------------------------+--------------+-------------+-------------+-------------+
598+
| numpy | 1.13.3 | 1.13.3 | 1.13.3 | 1.14.5 |
599+
+-------------------------+--------------+-------------+-------------+-------------+
600600

601601
The Docker images extend Ubuntu 16.04.
602602

603-
You can select version of MXNet by passing a ``framework_version`` keyword arg to the MXNet Estimator constructor. Currently supported versions are listed in the above table. You can also set ``framework_version`` to only specify major and minor version, e.g ``1.1``, which will cause your training script to be run on the latest supported patch version of that minor version, which in this example would be 1.1.0.
603+
You can select version of MXNet by passing a ``framework_version`` keyword arg to the MXNet Estimator constructor. Currently supported versions are listed in the above table. You can also set ``framework_version`` to only specify major and minor version, e.g ``1.2``, which will cause your training script to be run on the latest supported patch version of that minor version, which in this example would be 1.2.1.
604604
Alternatively, you can build your own image by following the instructions in the SageMaker MXNet containers repository, and passing ``image_name`` to the MXNet Estimator constructor.
605605

606606
You can visit the SageMaker MXNet containers repository here: https://github.com/aws/sagemaker-mxnet-containers/

src/sagemaker/mxnet/defaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
# language governing permissions and limitations under the License.
1313
from __future__ import absolute_import
1414

15-
MXNET_VERSION = '1.1'
15+
MXNET_VERSION = '1.2'

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def tf_version(request):
7676
return request.param
7777

7878

79-
@pytest.fixture(scope='module', params=['0.12', '0.12.1', '1.0', '1.0.0', '1.1', '1.1.0'])
79+
@pytest.fixture(scope='module', params=['0.12', '0.12.1', '1.0', '1.0.0', '1.1', '1.1.0', '1.2', '1.2.1'])
8080
def mxnet_version(request):
8181
return request.param
8282

@@ -96,7 +96,7 @@ def tf_full_version(request):
9696
return request.param
9797

9898

99-
@pytest.fixture(scope='module', params=['0.12.1', '1.0.0', '1.1.0'])
99+
@pytest.fixture(scope='module', params=['0.12.1', '1.0.0', '1.1.0', '1.2.1'])
100100
def mxnet_full_version(request):
101101
return request.param
102102

0 commit comments

Comments
 (0)