Skip to content

feature: PyTorch 1.5.0 support #1460

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 1 commit into from
May 6, 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
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ PyTorch SageMaker Estimators

With PyTorch SageMaker Estimators, you can train and host PyTorch models on Amazon SageMaker.

Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``, ``1.4.0``.
Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``, ``1.4.0``, ``1.5.0``.

Supported versions of PyTorch for Elastic Inference: ``1.3.1``.

Expand Down
2 changes: 1 addition & 1 deletion doc/using_pytorch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Using PyTorch with the SageMaker Python SDK

With PyTorch Estimators and Models, you can train and host PyTorch models on Amazon SageMaker.

Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``, ``1.4.0``.
Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``, ``1.4.0``, ``1.5.0``.

Supported versions of PyTorch for Elastic Inference: ``1.3.1``.

Expand Down
84 changes: 44 additions & 40 deletions src/sagemaker/pytorch/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ SageMaker PyTorch Estimators and Models

With PyTorch Estimators and Models, you can train and host PyTorch models on Amazon SageMaker.

Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``, ``1.4.0``.
Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``, ``1.2.0``, ``1.3.1``, ``1.4.0``, ``1.5.0``.

Supported versions of PyTorch for Elastic Inference: ``1.3.1``.

Expand Down Expand Up @@ -39,45 +39,49 @@ This Python version applies to both the Training Job, created by fit, and the En

The PyTorch Docker images have the following dependencies installed:

+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| Dependencies | pytorch 0.4.0 | pytorch 1.0.0 | pytorch 1.1.0 | pytorch 1.2.0 | pytorch 1.3.1 | pytorch 1.4.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| boto3 | >=1.7.35 | >=1.9.11 | 1.9.82 | 1.9.249 | 1.10.34 | 1.12.4 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| botocore | >=1.10.35 | >=1.12.11 | >= 1.12.11 | 1.12.249 | 1.13.34 | 1.15.4 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| CUDA (GPU image only) | 9.0 | 9.0 | 10.1 | 10.0 | 10.1 | 10.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| numpy | >=1.14.3 | >=1.15.2 | 1.16.4 | 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 | 6.2.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| pip | >=10.0.1 | >=18.0 | >=18.0 | 19.3 | 19.3.1 | 20.0.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| python-dateutil | >=2.7.3 | >=2.7.3 | >=2.7.3 | 2.8.0 | 2.8.0 | 2.8.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| retrying | >=1.3.3 | >=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 | 0.3.3 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| sagemaker-containers | >=2.1.0 | >=2.1.0 | 2.4.10.post0 | 2.5.4 | 2.5.4 | 2.5.4 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| sagemaker-inference (inference only) | N/A | N/A | N/A | N/A | 1.1.2 | 1.1.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| sagemaker-pytorch-container | 1.0 | 1.1 | 1.2 | 1.2 | 1.3 | N/A |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| sagemaker-pytorch-inference | N/A | N/A | N/A | N/A | N/A | 1.1.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| setuptools | >=39.2.0 | >=40.4.3 | >=40.4.3 | 41.4.0 | 42.0.2.post20191203 | N/A |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| six | >=1.11.0 | >=1.11.0 | 1.12.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 | 1.4.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| torchvision | 0.2.1 | 0.2.1 | 0.3.0 | 0.4.0a0+9232c4a | 0.4.2 | 0.5.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+
| 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 | 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 | pytorch 1.4.0 | pytorch 1.5.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| boto3 | >=1.7.35 | >=1.9.11 | 1.9.82 | 1.9.249 | 1.10.34 | 1.12.4 | 1.10.32 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| botocore | >=1.10.35 | >=1.12.11 | >= 1.12.11 | 1.12.249 | 1.13.34 | 1.15.4 | 1.16.3 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| CUDA (GPU image only) | 9.0 | 9.0 | 10.1 | 10.0 | 10.1 | 10.1 | 10.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| numpy | >=1.14.3 | >=1.15.2 | 1.16.4 | 1.16.4 | 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 | 6.2.0 | 7.1.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| pip | >=10.0.1 | >=18.0 | >=18.0 | 19.3 | 19.3.1 | 20.0.2 | 20.0.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| python-dateutil | >=2.7.3 | >=2.7.3 | >=2.7.3 | 2.8.0 | 2.8.0 | 2.8.1 | 2.8.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| retrying | >=1.3.3 | >=1.3.3 | 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 | 0.3.3 | 0.3.3 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| sagemaker-containers | >=2.1.0 | >=2.1.0 | 2.4.10.post0 | 2.5.4 | 2.5.4 | 2.5.4 | N/A |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| sagemaker-training (training only) | N/A | N/A | N/A | N/A | N/A | N/A | >=3.4.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| sagemaker-inference (inference only) | N/A | N/A | N/A | N/A | 1.1.2 | 1.1.2 | >=1.2.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| sagemaker-pytorch-container | 1.0 | 1.1 | 1.2 | 1.2 | 1.3 | N/A | N/A |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| sagemaker-pytorch-training | N/A | N/A | N/A | N/A | N/A | N/A | >=2.1.1 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| sagemaker-pytorch-inference | N/A | N/A | N/A | N/A | N/A | 1.1.2 | >=1.2.2 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| setuptools | >=39.2.0 | >=40.4.3 | >=40.4.3 | 41.4.0 | 42.0.2.post20191203 | N/A | 46.1.3 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| six | >=1.11.0 | >=1.11.0 | 1.12.0 | 1.12.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 | 1.4.0 | 1.5.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| torchvision | 0.2.1 | 0.2.1 | 0.3.0 | 0.4.0a0+9232c4a | 0.4.2 | 0.5.0 | 0.6.0 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+
| 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 | 2.7 or 3.6 | 3.6 |
+---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+---------------------+---------------------+

The Docker images extend Ubuntu 16.04.

Expand Down
2 changes: 1 addition & 1 deletion src/sagemaker/pytorch/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
The default version is no longer updated so as to not break existing workflows.
"""

LATEST_VERSION = "1.4.0"
LATEST_VERSION = "1.5.0"
"""The latest version of PyTorch included in the SageMaker pre-built Docker images."""

PYTHON_VERSION = "py3"
Expand Down