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
Copy file name to clipboardExpand all lines: doc/frameworks/mxnet/using_mxnet.rst
+4-3
Original file line number
Diff line number
Diff line change
@@ -321,13 +321,14 @@ If there are other packages you want to use with your script, you can include a
321
321
Both ``requirements.txt`` and your training script should be put in the same folder.
322
322
You must specify this folder in ``source_dir`` argument when creating an MXNet estimator.
323
323
324
-
The function of installing packages using ``requirements.txt`` is supported for all MXNet versions during training.
324
+
The function of installing packages using ``requirements.txt`` is supported for MXNet versions 1.3.0 and higher during training.
325
+
325
326
When serving an MXNet model, support for this function varies with MXNet versions.
326
327
For MXNet 1.6.0 or newer, ``requirements.txt`` must be under folder ``code``.
327
328
The SageMaker MXNet Estimator automatically saves ``code`` in ``model.tar.gz`` after training (assuming you set up your script and ``requirements.txt`` correctly as stipulated in the previous paragraph).
328
329
In the case of bringing your own trained model for deployment, you must save ``requirements.txt`` under folder ``code`` in ``model.tar.gz`` yourself or specify it through ``dependencies``.
329
-
For MXNet 1.4.1, ``requirements.txt`` is not supported for inference.
330
-
For MXNet 0.12.1-1.3.0, ``requirements.txt`` must be in ``source_dir``.
330
+
For MXNet 0.12.1-1.2.1, 1.4.0-1.4.1, ``requirements.txt`` is not supported for inference.
331
+
For MXNet 1.3.0, ``requirements.txt`` must be in ``source_dir``.
331
332
332
333
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``.
333
334
You can also specify the version of an item to install.
Copy file name to clipboardExpand all lines: doc/frameworks/tensorflow/using_tf.rst
+22
Original file line number
Diff line number
Diff line change
@@ -197,6 +197,28 @@ The following args are not permitted when using Script Mode:
197
197
Where the S3 url is a path to your training data within Amazon S3.
198
198
The constructor keyword arguments define how SageMaker runs your training script.
199
199
200
+
Specify a Docker image using an Estimator
201
+
-----------------------------------------
202
+
203
+
There are use cases, such as extending an existing pre-built Amazon SageMaker images, that require specifing a Docker image when creating an Estimator by directly specifying the ECR URI instead of the Python and framework version. For a full list of available container URIs, see `Available Deep Learning Containers Images <https://github.com/aws/deep-learning-containers/blob/master/available_images.md>`__ For more information on using Docker containers, see `Use Your Own Algorithms or Models with Amazon SageMaker <https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms.html>`__.
204
+
205
+
When specifying the image, you must use the ``image_name=''`` arg to replace the following arg:
206
+
207
+
- ``py_version=''``
208
+
209
+
You should still specify the ``framework_version=''`` arg because the SageMaker Python SDK accomodates for differences in the images based on the version.
210
+
211
+
The following example uses the ``image_name=''`` arg to specify the container image, Python version, and framework version.
0 commit comments