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
Allow Framework Estimators to use custom image (#223)
* Allow Framework Estimators to use custom image
All Estimators can now pass
an image_name argument to the constructor to use that image
instead of the default sagemaker ones.
Copy file name to clipboardExpand all lines: src/sagemaker/mxnet/README.rst
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -153,6 +153,12 @@ The following are optional arguments. When you create an ``MXNet`` object, you c
153
153
- ``job_name`` Name to assign for the training job that the fit()
154
154
method launches. If not specified, the estimator generates a default
155
155
job name, based on the training image name and current timestamp
156
+
- ``image_name`` An alternative docker image to use for training and
157
+
serving. If specified, the estimator will use this image for training and
158
+
hosting, instead of selecting the appropriate SageMaker official image based on
159
+
framework_version and py_version. Refer to: `SageMaker MXNet Docker Containers
160
+
<#sagemaker-mxnet-docker-containers>`_ for details on what the Official images support
161
+
and where to find the source code to build your custom image.
156
162
157
163
Calling fit
158
164
^^^^^^^^^^^
@@ -595,5 +601,6 @@ The Docker images have the following dependencies installed:
595
601
The Docker images extend Ubuntu 16.04.
596
602
597
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.
604
+
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.
598
605
599
606
You can visit the SageMaker MXNet containers repository here: https://github.com/aws/sagemaker-mxnet-containers/
0 commit comments