@@ -31,59 +31,65 @@ libraries installed. When creating the Estimator and calling deploy to create th
31
31
the environment your script runs in.
32
32
33
33
SageMaker runs PyTorch Estimator scripts in either Python 2 or Python 3. You can select the Python version by
34
- passing a ``py_version `` keyword arg to the PyTorch Estimator constructor. Setting this to `py3 ` (the default) will cause your
35
- 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
34
+ passing a ``py_version `` keyword arg to the PyTorch Estimator constructor. Setting this to `` py3 ` ` (the default) will cause your
35
+ 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
36
36
This Python version applies to both the Training Job, created by fit, and the Endpoint, created by deploy.
37
37
38
38
The PyTorch Docker images have the following dependencies installed:
39
39
40
- +-----------------------------+---------------+-------------------+-------------------+
41
- | Dependencies | pytorch 0.4.0 | pytorch 1.0.0 | pytorch 1.1.0 |
42
- +-----------------------------+---------------+-------------------+-------------------+
43
- | boto3 | >=1.7.35 | >=1.9.11 | 1.9.82 |
44
- +-----------------------------+---------------+-------------------+-------------------+
45
- | botocore | >=1.10.35 | >=1.12.11 | >= 1.12.11 |
46
- +-----------------------------+---------------+-------------------+-------------------+
47
- | CUDA (GPU image only) | 9.0 | 9.0 | 10.1 |
48
- +-----------------------------+---------------+-------------------+-------------------+
49
- | numpy | >=1.14.3 | >=1.15.2 | 1.16.4 |
50
- +-----------------------------+---------------+-------------------+-------------------+
51
- | Pillow | >=5.1.0 | >=5.2.0 | 6.0.0 |
52
- +-----------------------------+---------------+-------------------+-------------------+
53
- | pip | >=10.0.1 | >=18.0 | >=18.0 |
54
- +-----------------------------+---------------+-------------------+-------------------+
55
- | python-dateutil | >=2.7.3 | >=2.7.3 | >=2.7.3 |
56
- +-----------------------------+---------------+-------------------+-------------------+
57
- | retrying | >=1.3.3 | >=1.3.3 | 1.3.3 |
58
- +-----------------------------+---------------+-------------------+-------------------+
59
- | s3transfer | >=0.1.13 | >=0.1.13 | >=0.1.13 |
60
- +-----------------------------+---------------+-------------------+-------------------+
61
- | sagemaker-containers | >=2.1.0 | >=2.1.0 | 2.4.10.post0 |
62
- +-----------------------------+---------------+-------------------+-------------------+
63
- | sagemaker-pytorch-container | 1.0 | 1.1 | 1.2 |
64
- +-----------------------------+---------------+-------------------+-------------------+
65
- | setuptools | >=39.2.0 | >=40.4.3 | >=40.4.3 |
66
- +-----------------------------+---------------+-------------------+-------------------+
67
- | six | >=1.11.0 | >=1.11.0 | 1.12.0 |
68
- +-----------------------------+---------------+-------------------+-------------------+
69
- | torch | 0.4.0 | 1.0.0 | 1.1.0 |
70
- +-----------------------------+---------------+-------------------+-------------------+
71
- | torchvision | 0.2.1 | 0.2.1 | 0.3.0 |
72
- +-----------------------------+---------------+-------------------+-------------------+
73
- | Python | 2.7 or 3.5 | 2.7 or 3.6 | 2.7 or 3.6 |
74
- +-----------------------------+---------------+-------------------+-------------------+
40
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
41
+ | Dependencies | pytorch 0.4.0 | pytorch 1.0.0 | pytorch 1.1.0 | pytorch 1.2.0 | pytorch 1.3.1 |
42
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
43
+ | boto3 | >=1.7.35 | >=1.9.11 | 1.9.82 | 1.9.249 | 1.10.34 |
44
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
45
+ | botocore | >=1.10.35 | >=1.12.11 | >= 1.12.11 | 1.12.249 | 1.13.34 |
46
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
47
+ | CUDA (GPU image only) | 9.0 | 9.0 | 10.1 | 10.0 | 10.1 |
48
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
49
+ | numpy | >=1.14.3 | >=1.15.2 | 1.16.4 | 1.16.4 | 1.16.4 |
50
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
51
+ | Pillow | >=5.1.0 | >=5.2.0 | 6.0.0 | 5.4.1 | 6.2.1 |
52
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
53
+ | pip | >=10.0.1 | >=18.0 | >=18.0 | 19.3 | 19.3.1 |
54
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
55
+ | python-dateutil | >=2.7.3 | >=2.7.3 | >=2.7.3 | 2.8.0 | 2.8.0 |
56
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
57
+ | retrying | >=1.3.3 | >=1.3.3 | 1.3.3 | 1.3.3 | 1.3.3 |
58
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
59
+ | s3transfer | >=0.1.13 | >=0.1.13 | >=0.1.13 | 0.2.1 | 0.2.1 |
60
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
61
+ | sagemaker-containers | >=2.1.0 | >=2.1.0 | 2.4.10.post0 | 2.5.4 | 2.5.4 |
62
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
63
+ | sagemaker-inference (inference only) | N/A | N/A | N/A | N/A | 1.1.2 |
64
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
65
+ | sagemaker-pytorch-container | 1.0 | 1.1 | 1.2 | 1.2 | 1.3 |
66
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
67
+ | setuptools | >=39.2.0 | >=40.4.3 | >=40.4.3 | 41.4.0 | 42.0.2.post20191203 |
68
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
69
+ | six | >=1.11.0 | >=1.11.0 | 1.12.0 | 1.12.0 | 1.12.0 |
70
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
71
+ | torch | 0.4.0 | 1.0.0 | 1.1.0 | 1.2.0 | 1.3.1 |
72
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
73
+ | torchvision | 0.2.1 | 0.2.1 | 0.3.0 | 0.4.0a0+9232c4a | 0.4.2 |
74
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
75
+ | 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 |
76
+ +---------------------------------------+---------------+----------------+---------------+-----------------+---------------------+
75
77
76
78
The Docker images extend Ubuntu 16.04.
77
79
78
- If you need to install other dependencies you can put them into `requirements.txt ` file and put it in the source directory
80
+ 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
79
81
(``source_dir ``) you provide to the `PyTorch Estimator <#pytorch-estimators >`__.
82
+ 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 >`_.
80
83
81
84
You can select version of PyTorch by passing a ``framework_version `` keyword arg to the PyTorch Estimator constructor.
82
85
Currently supported versions are listed in the above table. You can also set ``framework_version `` to only specify major and
83
86
minor version, which will cause your training script to be run on the latest supported patch version of that minor
84
87
version.
85
88
86
- Alternatively, you can build your own image by following the instructions in the SageMaker Chainer containers
87
- repository, and passing ``image_name `` to the Chainer Estimator constructor.
89
+ Alternatively, you can build your own image by following the instructions in the SageMaker PyTorch containers
90
+ repository, and passing ``image_name `` to the PyTorch Estimator constructor.
88
91
89
- You can visit `the SageMaker PyTorch containers repository <https://github.com/aws/sagemaker-pytorch-containers >`_.
92
+ You can visit the SageMaker PyTorch containers repositories:
93
+
94
+ - training: https://github.com/aws/sagemaker-pytorch-container
95
+ - serving: https://github.com/aws/sagemaker-pytorch-serving-container
0 commit comments