You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With MXNet Estimators, you can train and host MXNet models on Amazon SageMaker.
116
116
117
+
Supported versions of MXNet: ``1.0.0``, ``0.12.1``.
118
+
117
119
Training with MXNet
118
120
~~~~~~~~~~~~~~~~~~~
119
121
@@ -185,7 +187,7 @@ If you want to run your training script locally via the Python interpreter, look
185
187
Using MXNet and numpy
186
188
^^^^^^^^^^^^^^^^^^^^^
187
189
188
-
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 0.12 and numpy version 1.12.0. For more information on the environment your script runs in, please see `SageMaker MXNet Containers <#sagemaker-mxnet-containers>`__.
190
+
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>`__.
189
191
190
192
Running an MXNet training script in SageMaker
191
193
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -682,26 +684,33 @@ When training and deploying training scripts, SageMaker runs your Python script
682
684
683
685
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.
684
686
685
-
Your MXNet training script will be run on version 0.12 of MXNet, built for either GPU or CPU use. 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.
687
+
Your MXNet training script will be run on version 1.0.0 (by default) or 0.12 of MXNet, built for either GPU or CPU use. 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.
686
688
687
-
Each Docker container has the following dependencies installed:
689
+
The Docker images have the following dependencies installed:
688
690
689
-
- Python 2.7 or Python 3.5, depending on the ``py_version`` argument on
690
-
the MXNet constructor.
691
-
- MXNet 0.12, built for either GPU or CPU, depending on the instance
You can select version of MXNet by passing a ``framework_version`` keyword arg to the MXNet Estimator constructor. Currently supported versions are ``1.0.0`` and ``0.12.1``. You can also set ``framework_version`` to ``1.0 (default)`` or ``0.12`` which will cause your training script to be run on the latest supported MXNet 1.0 or 0.12 versions respectively.
704
+
698
705
TensorFlow SageMaker Estimators
699
706
-------------------------------
700
707
701
708
TensorFlow SageMaker Estimators allow you to run your own TensorFlow
702
709
training algorithms on SageMaker Learner, and to host your own TensorFlow
703
710
models on SageMaker Hosting.
704
711
712
+
Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``.
713
+
705
714
Training with TensorFlow
706
715
~~~~~~~~~~~~~~~~~~~~~~~~
707
716
@@ -735,7 +744,7 @@ Preparing the TensorFlow training script
735
744
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
736
745
737
746
Your TensorFlow training script must be a **Python 2.7** source file. The current supported TensorFlow
738
-
version is **1.4.0**. This training script **must contain** the following functions:
747
+
versions are **1.5.0 (default)** and **1.4.1**. This training script **must contain** the following functions:
739
748
740
749
- ``model_fn``: defines the model that will be trained.
741
750
- ``train_input_fn``: preprocess and load training data.
@@ -1419,27 +1428,49 @@ A example with ``input_fn`` and ``output_fn`` above can be found in
1419
1428
SageMaker TensorFlow Docker containers
1420
1429
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1421
1430
1422
-
The TensorFlow Docker container supports Python 2.7. The Docker container has the following Python modules installed:
1423
-
- awscli 1.12.1
1424
-
- boto3 1.4.7
1425
-
- botocore 1.5.92
1426
-
- futures 2.2.0
1427
-
- gevent 1.2.2
1428
-
- grpcio 1.7.0
1429
-
- numpy 1.13.3
1430
-
- pandas 0.21.0
1431
-
- protobuf 3.4.0
1432
-
- requests 2.14.2
1433
-
- scikit-learn 0.19.1
1434
-
- scipy 1.0.0
1435
-
- six 1.10.0
1436
-
- sklearn 0.0
1437
-
- tensorflow 1.4.0
1438
-
- tensorflow-serving-api 1.4.0
1439
-
- tensorflow-tensorboard 0.4.0rc2
1431
+
The TensorFlow Docker images support Python 2.7 and have the following Python modules installed:
You can select version of TensorFlow by passing a ``framework_version`` keyword arg to the TensorFlow Estimator constructor. Currently supported versions are ``1.5.0`` and ``1.4.1``. You can also set ``framework_version`` to ``1.5 (default)`` or ``1.4`` which will cause your training script to be run on the latest supported TensorFlow 1.5 or 1.4 versions respectively.
0 commit comments