Skip to content

doc: update container dependency versions for MXNet and PyTorch #1233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions src/sagemaker/mxnet/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ Your MXNet training script will be run on version 1.2.1 by default. (See below f

The Docker images have the following dependencies installed:

+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
| Dependencies | MXNet 0.12.1 | MXNet 1.0.0 | MXNet 1.1.0 | MXNet 1.2.1 | MXNet 1.3.0 | MXNet 1.4.0 | MXNet 1.4.1 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
| Python | 2.7 or 3.5 | 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.6| 2.7 or 3.6|
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
| CUDA (GPU image only) | 9.0 | 9.0 | 9.0 | 9.0 | 9.0 | 9.2 | 10.0 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
| numpy | 1.13.3 | 1.13.3 | 1.13.3 | 1.14.5 | 1.14.6 | 1.16.3 | 1.14.5 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
| onnx | N/A | N/A | N/A | 1.2.1 | 1.2.1 | 1.4.1 | 1.4.1 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
| keras-mxnet | N/A | N/A | N/A | N/A | 2.2.2 | 2.2.4.1 | 2.2.4.1 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+
| Dependencies | MXNet 0.12.1 | MXNet 1.0.0 | MXNet 1.1.0 | MXNet 1.2.1 | MXNet 1.3.0 | MXNet 1.4.0 | MXNet 1.4.1 | MXNet 1.6.0 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+
| Python | 2.7 or 3.5 | 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.5| 2.7 or 3.6| 2.7 or 3.6| 2.7 or 3.6|
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+
| CUDA (GPU image only) | 9.0 | 9.0 | 9.0 | 9.0 | 9.0 | 9.2 | 10.0 | 10.1 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+
| numpy | 1.13.3 | 1.13.3 | 1.13.3 | 1.14.5 | 1.14.6 | 1.16.3 | 1.14.5 | 1.17.2 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+
| onnx | N/A | N/A | N/A | 1.2.1 | 1.2.1 | 1.4.1 | 1.4.1 | 1.6.0 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+
| keras-mxnet | N/A | N/A | N/A | N/A | 2.2.2 | 2.2.4.1 | 2.2.4.1 | 2.2.4.2 |
+-------------------------+--------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+

The Docker images extend Ubuntu 16.04.

Expand Down
88 changes: 47 additions & 41 deletions src/sagemaker/pytorch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,59 +31,65 @@ libraries installed. When creating the Estimator and calling deploy to create th
the environment your script runs in.

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

The PyTorch Docker images have the following dependencies installed:

+-----------------------------+---------------+-------------------+-------------------+
| Dependencies | pytorch 0.4.0 | pytorch 1.0.0 | pytorch 1.1.0 |
+-----------------------------+---------------+-------------------+-------------------+
| boto3 | >=1.7.35 | >=1.9.11 | 1.9.82 |
+-----------------------------+---------------+-------------------+-------------------+
| botocore | >=1.10.35 | >=1.12.11 | >= 1.12.11 |
+-----------------------------+---------------+-------------------+-------------------+
| CUDA (GPU image only) | 9.0 | 9.0 | 10.1 |
+-----------------------------+---------------+-------------------+-------------------+
| numpy | >=1.14.3 | >=1.15.2 | 1.16.4 |
+-----------------------------+---------------+-------------------+-------------------+
| Pillow | >=5.1.0 | >=5.2.0 | 6.0.0 |
+-----------------------------+---------------+-------------------+-------------------+
| pip | >=10.0.1 | >=18.0 | >=18.0 |
+-----------------------------+---------------+-------------------+-------------------+
| python-dateutil | >=2.7.3 | >=2.7.3 | >=2.7.3 |
+-----------------------------+---------------+-------------------+-------------------+
| retrying | >=1.3.3 | >=1.3.3 | 1.3.3 |
+-----------------------------+---------------+-------------------+-------------------+
| s3transfer | >=0.1.13 | >=0.1.13 | >=0.1.13 |
+-----------------------------+---------------+-------------------+-------------------+
| sagemaker-containers | >=2.1.0 | >=2.1.0 | 2.4.10.post0 |
+-----------------------------+---------------+-------------------+-------------------+
| sagemaker-pytorch-container | 1.0 | 1.1 | 1.2 |
+-----------------------------+---------------+-------------------+-------------------+
| setuptools | >=39.2.0 | >=40.4.3 | >=40.4.3 |
+-----------------------------+---------------+-------------------+-------------------+
| six | >=1.11.0 | >=1.11.0 | 1.12.0 |
+-----------------------------+---------------+-------------------+-------------------+
| torch | 0.4.0 | 1.0.0 | 1.1.0 |
+-----------------------------+---------------+-------------------+-------------------+
| torchvision | 0.2.1 | 0.2.1 | 0.3.0 |
+-----------------------------+---------------+-------------------+-------------------+
| Python | 2.7 or 3.5 | 2.7 or 3.6 | 2.7 or 3.6 |
+-----------------------------+---------------+-------------------+-------------------+
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| Dependencies | pytorch 0.4.0 | pytorch 1.0.0 | pytorch 1.1.0 | pytorch 1.2.0 | pytorch 1.3.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| boto3 | >=1.7.35 | >=1.9.11 | 1.9.82 | 1.9.249 | 1.10.34 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| botocore | >=1.10.35 | >=1.12.11 | >= 1.12.11 | 1.12.249 | 1.13.34 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| CUDA (GPU image only) | 9.0 | 9.0 | 10.1 | 10.0 | 10.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| numpy | >=1.14.3 | >=1.15.2 | 1.16.4 | 1.16.4 | 1.16.4 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| Pillow | >=5.1.0 | >=5.2.0 | 6.0.0 | 5.4.1 | 6.2.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| pip | >=10.0.1 | >=18.0 | >=18.0 | 19.3 | 19.3.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| python-dateutil | >=2.7.3 | >=2.7.3 | >=2.7.3 | 2.8.0 | 2.8.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| retrying | >=1.3.3 | >=1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| s3transfer | >=0.1.13 | >=0.1.13 | >=0.1.13 | 0.2.1 | 0.2.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| sagemaker-containers | >=2.1.0 | >=2.1.0 | 2.4.10.post0 | 2.5.4 | 2.5.4 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| sagemaker-inference (inference only) | N/A | N/A | N/A | N/A | 1.1.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| sagemaker-pytorch-container | 1.0 | 1.1 | 1.2 | 1.2 | 1.3 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| setuptools | >=39.2.0 | >=40.4.3 | >=40.4.3 | 41.4.0 | 42.0.2.post20191203 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| six | >=1.11.0 | >=1.11.0 | 1.12.0 | 1.12.0 | 1.12.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| torch | 0.4.0 | 1.0.0 | 1.1.0 | 1.2.0 | 1.3.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| torchvision | 0.2.1 | 0.2.1 | 0.3.0 | 0.4.0a0+9232c4a | 0.4.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
| Python | 2.7 or 3.5 | 2.7 or 3.6 | 2.7 or 3.6 | 2.7 or 3.6 | 2.7 or 3.6 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+

The Docker images extend Ubuntu 16.04.

If you need to install other dependencies you can put them into `requirements.txt` file and put it in the source directory
With most versions of PyTorch, if you need to install other dependencies, you can put them into ``requirements.txt`` file and put it in the source directory
(``source_dir``) you provide to the `PyTorch Estimator <#pytorch-estimators>`__.
For more, including directions specific to each version of PyTorch, see `Using third-party libraries <https://sagemaker.readthedocs.io/en/stable/using_pytorch.html#using-third-party-libraries>`_.

You can select version of PyTorch by passing a ``framework_version`` keyword arg to the PyTorch Estimator constructor.
Currently supported versions are listed in the above table. You can also set ``framework_version`` to only specify major and
minor version, which will cause your training script to be run on the latest supported patch version of that minor
version.

Alternatively, you can build your own image by following the instructions in the SageMaker Chainer containers
repository, and passing ``image_name`` to the Chainer Estimator constructor.
Alternatively, you can build your own image by following the instructions in the SageMaker PyTorch containers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:D

repository, and passing ``image_name`` to the PyTorch Estimator constructor.

You can visit `the SageMaker PyTorch containers repository <https://github.com/aws/sagemaker-pytorch-containers>`_.
You can visit the SageMaker PyTorch containers repositories:

- training: https://github.com/aws/sagemaker-pytorch-container
- serving: https://github.com/aws/sagemaker-pytorch-serving-container