Skip to content

Commit 4a3e007

Browse files
authored
Merge branch 'master' into change/remove-setuptools-deprecation
2 parents aa0f46d + 57fd632 commit 4a3e007

File tree

337 files changed

+33553
-1419
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

337 files changed

+33553
-1419
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ env/
3434
**/_repack_script_launcher.sh
3535
tests/data/**/_repack_model.py
3636
tests/data/experiment/sagemaker-dev-1.0.tar.gz
37+
src/sagemaker/serve/tmp_workspace

CHANGELOG.md

+56
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# Changelog
22

3+
## v2.199.0 (2023-11-30)
4+
5+
### Features
6+
7+
* Update boto3 version to 1.33.3
8+
* Goldfinch InferenceComponent integration
9+
* Add Pipeline step decorator, NotebookJobStep, and scheduler
10+
* ModelBuilder for simplified model testing and deployment
11+
12+
### Bug Fixes and Other Changes
13+
14+
* Skip failing integ tests
15+
* chore: add jumpstart gated model integration tests
16+
* disable integration tests for Inference Component based endpoint for non supported regions
17+
* remove unnecessary whl file - Galactus
18+
* refactor endpoint type enums, comments, docstrings, method names…
19+
* Address SA feedback regarding deployment straight to Endpoint Mode - Galactus
20+
* fix HuggingFace GEN2 model deployment arguments
21+
* when customer role does not have permission to read logs from CW, default to standard logging - Galactus
22+
* Add pagination for ListInferenceComponent API responses, address non-blocking comments
23+
* Create CSVSerializerWrapper - Galactus
24+
* Model builder Final Fixes
25+
* remote function include_local_workdir default value
26+
* use copy instead of move in bootstrap script
27+
* WaiterError on failed pipeline execution. results()
28+
* Add a unit test for consistency between step and remote decorator
29+
* merge WorkdirConfig and custom_filter_filter parameters
30+
* Add back mixed step type integ test
31+
* do not delete temp folder generated by sdist
32+
* make collect_parameters decorator as private
33+
* HMAC signing for ModelBuilder Triton python backend
34+
35+
### Documentation Changes
36+
37+
* update docstring for Generation two endpoint and validation message
38+
* galactus doc updates
39+
* CustomFileFilter doc updates
40+
* NotebookJobSteps class parameter severity update
41+
42+
## v2.198.0 (2023-11-27)
43+
44+
### Features
45+
46+
* re:Invent 2023 keynote1
47+
48+
## v2.197.0 (2023-11-07)
49+
50+
### Features
51+
52+
* PT2.1 SM Training/Inference DLC Release
53+
54+
### Bug Fixes and Other Changes
55+
56+
* Release HuggingFace PT Neuronx training image 1.13.1
57+
* HuggingFace PT Neuronx release in SDK
58+
359
## v2.196.0 (2023-10-27)
460

561
### Features

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
recursive-include src/sagemaker *.py
22

33
include src/sagemaker/image_uri_config/*.json
4+
include src/sagemaker/serve/requirements.txt
45
recursive-include requirements *
56

67
include VERSION

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.196.1.dev0
1+
2.199.1.dev0

doc/api/inference/model_builder.rst

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Model Builder
2+
-------------
3+
4+
This module contains classes related to Amazon Sagemaker Model Builder
5+
6+
.. autoclass:: sagemaker.serve.builder.model_builder.ModelBuilder
7+
8+
.. automethod:: sagemaker.serve.builder.model_builder.ModelBuilder.build
9+
10+
.. automethod:: sagemaker.serve.builder.model_builder.ModelBuilder.save
11+
12+
.. autoclass:: sagemaker.serve.spec.inference_spec.InferenceSpec
13+
14+
.. autoclass:: sagemaker.serve.builder.schema_builder.SchemaBuilder
15+
16+
.. autoclass:: sagemaker.serve.marshalling.custom_payload_translator.CustomPayloadTranslator

doc/frameworks/pytorch/using_pytorch.rst

+36-1
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,49 @@ Using third-party libraries
132132
---------------------------
133133

134134
When running your training script on SageMaker, it will have access to some pre-installed third-party libraries including ``torch``, ``torchvision``, and ``numpy``.
135-
For more information on the runtime environment, including specific package versions, see `SageMaker PyTorch Docker containers <https://github.com/aws/deep-learning-containers/tree/master/pytorch>`_.
136135

137136
If there are other packages you want to use with your script, you can include a ``requirements.txt`` file in the same directory as your training script to install other dependencies at runtime. Both ``requirements.txt`` and your training script should be put in the same folder. You must specify this folder in ``source_dir`` argument when creating PyTorch estimator.
138137

139138
The function of installing packages using ``requirements.txt`` is supported for all PyTorch versions during training. When serving a PyTorch model, support for this function varies with PyTorch versions. For PyTorch 1.3.1 or newer, ``requirements.txt`` must be under folder ``code``. The SageMaker PyTorch Estimator will automatically save ``code`` in ``model.tar.gz`` after training (assuming you set up your script and ``requirements.txt`` correctly as stipulated in the previous paragraph). 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``. For PyTorch 1.2.0, ``requirements.txt`` is not supported for inference. For PyTorch 0.4.0 to 1.1.0, ``requirements.txt`` must be in ``source_dir``.
140139

141140
A ``requirements.txt`` file is a text file that contains a list of items that are installed by using ``pip install``. You can also specify the version of an item to install. For information about the format of a ``requirements.txt`` file, see `Requirements Files <https://pip.pypa.io/en/stable/user_guide/#requirements-files>`__ in the pip documentation.
142141

142+
If you were to use your own custom Docker Image, the `SageMaker Python SDK` and the `SageMaker Training Toolkit <https://github.com/aws/sagemaker-training-toolkit/>`__ need to be installed.
143+
144+
To do so, you can add the following lines to your ``requirements.txt`` file:
145+
146+
.. code:: text
147+
148+
sagemaker
149+
sagemaker-training
150+
151+
Deep Learning Framework-Specific SageMaker Toolkits and Containers
152+
------------------------------------------------------------------
153+
154+
Framework-specific Toolkits exist. You might want to use them in your applications for framework-specific features.
155+
156+
For Training Toolkits, see:
157+
158+
- `SageMaker PyTorch Training Toolkit <https://github.com/aws/sagemaker-pytorch-training-toolkit>`__
159+
- `SageMaker MXNet Training Toolkit <https://github.com/aws/sagemaker-mxnet-training-toolkit>`__
160+
- `SageMaker TensorFlow Training Toolkit <https://github.com/aws/sagemaker-tensorflow-training-toolkit>`__
161+
162+
For Inference Toolkits, see:
163+
164+
- `SageMaker PyTorch Inference Toolkit <https://github.com/aws/sagemaker-pytorch-inference-toolkit>`__
165+
- `SageMaker MXNet Inference Toolkit <https://github.com/aws/sagemaker-mxnet-training-toolkit>`__
166+
- `SageMaker TensorFlow Inference Toolkit <https://github.com/aws/sagemaker-tensorflow-inference-toolkit>`__
167+
- `SageMaker HuggingFace Inference Toolkit <https://github.com/aws/sagemaker-huggingface-inference-toolkit>`__
168+
169+
Moreover, for more information on the container runtime environment, including specific framework versions and configurations,
170+
see `AWS Deep Learning Containers <https://github.com/aws/deep-learning-containers/>`_. More specifically, see:
171+
172+
- `Images for PyTorch <https://github.com/aws/deep-learning-containers/tree/master/pytorch>`__
173+
- `Images for MXNet <https://github.com/aws/deep-learning-containers/tree/master/mxnet>`__
174+
- `Images for TensorFlow <https://github.com/aws/deep-learning-containers/tree/master/tensorflow>`__
175+
- `Images for HuggingFace <https://github.com/aws/deep-learning-containers/tree/master/huggingface>`__
176+
177+
143178
Create an Estimator
144179
===================
145180

0 commit comments

Comments
 (0)