Skip to content

Commit 2d310a1

Browse files
authored
Merge branch 'aws:master' into master
2 parents 36309a8 + 2e2b27c commit 2d310a1

File tree

210 files changed

+15100
-2122
lines changed

Some content is hidden

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

210 files changed

+15100
-2122
lines changed

.githooks/pre-push

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ start_time=`date +%s`
1212
tox -e sphinx,doc8 --parallel all
1313
./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
1414
start_time=`date +%s`
15-
tox -e py38,py39,py310 --parallel all -- tests/unit
16-
./ci-scripts/displaytime.sh 'py38,py39,py310 unit' $start_time
15+
tox -e py39,py310,py311,py312 --parallel all -- tests/unit
16+
./ci-scripts/displaytime.sh 'py39,py310,py311,py312 unit' $start_time

.github/workflows/codebuild-ci-health.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false
2828
matrix:
29-
python-version: ["py38", "py39", "py310", "py311"]
29+
python-version: ["py39", "py310", "py311","py312"]
3030
steps:
3131
- name: Configure AWS Credentials
3232
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/codebuild-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
strategy:
6464
fail-fast: false
6565
matrix:
66-
python-version: ["py38","py39","py310","py311"]
66+
python-version: ["py39","py310","py311","py312"]
6767
steps:
6868
- name: Configure AWS Credentials
6969
uses: aws-actions/configure-aws-credentials@v4

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ src/sagemaker/modules/train/container_drivers/sourcecode.json
3737
src/sagemaker/modules/train/container_drivers/distributed.json
3838
tests/data/**/_repack_model.py
3939
tests/data/experiment/sagemaker-dev-1.0.tar.gz
40-
src/sagemaker/serve/tmp_workspace
40+
src/sagemaker/serve/tmp_workspace
41+
test-examples

.pylintrc

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,24 @@ disable=
9494
useless-object-inheritance, # TODO: Enable this check and fix code once Python 2 is no longer supported.
9595
super-with-arguments,
9696
raise-missing-from,
97-
E1136,
97+
C0116, # Missing function or method docstring
98+
C0209, # Use f-string instead of format
99+
E0015, # Unrecognized option found in config
100+
E0702, # Raising a string instead of an exception
101+
E1101, # Module has no member (likely dynamic attr)
102+
E1136, # Value assigned to something inferred as None
103+
R0022, # Useless option value in config
104+
R1710, # Inconsistent return statements
105+
R1714, # Consider using `in` with comparisons
106+
R1729, # Use a generator
107+
R1732,
108+
R1735, # Consider using a dict or list literal
109+
W0237, # Argument renamed in override
110+
W0613, # Unused argument
111+
W0621, # Redefining name from outer scope
112+
W0719
113+
W1404, # Implicit string concatenation
114+
W1514, # `open()` used without encoding
98115

99116
[REPORTS]
100117
# Set the output format. Available formats are text, parseable, colorized, msvs
@@ -436,4 +453,4 @@ analyse-fallback-blocks=no
436453

437454
# Exceptions that will emit a warning when being caught. Defaults to
438455
# "Exception"
439-
overgeneral-exceptions=Exception
456+
overgeneral-exceptions=builtins.Exception

.readthedocs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
version: 2
66

77
build:
8-
os: ubuntu-20.04
8+
os: ubuntu-22.04
99
tools:
10-
python: "3.9"
10+
python: "3.12"
1111

1212

1313
python:

CHANGELOG.md

Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,264 @@
11
# Changelog
22

3+
## v2.254.0 (2025-10-29)
4+
5+
### Features
6+
7+
* Triton v25.09 DLC
8+
9+
### Bug Fixes and Other Changes
10+
11+
* Add Numpy 2.0 support
12+
* add HF Optimum Neuron DLCs
13+
* [Hugging Face][Pytorch] Inference DLC 4.51.3
14+
* [hf] HF Inference TGI
15+
16+
## v2.253.1 (2025-10-14)
17+
18+
### Bug Fixes and Other Changes
19+
20+
* Update instance type regex to also include hyphens
21+
* Revert the change "Add Numpy 2.0 support"
22+
* [hf-tei] add image uri to utils
23+
* add TEI 1.8.2
24+
25+
## v2.253.0 (2025-10-10)
26+
27+
### Features
28+
29+
* Added condition to allow eval recipe.
30+
* add model_type hyperparameter support for Nova recipes
31+
32+
### Bug Fixes and Other Changes
33+
34+
* Fix for a failed slow test: numpy fix
35+
* Add numpy 2.0 support
36+
* chore: domain support for eu-isoe-west-1
37+
* Adding default identity implementations to InferenceSpec
38+
* djl regions fixes #5273
39+
* Fix flaky integ test
40+
41+
## v2.252.0 (2025-09-29)
42+
43+
### Features
44+
45+
* change S3 endpoint env name
46+
* add eval custom lambda arn to hyperparameters
47+
48+
### Bug Fixes and Other Changes
49+
50+
* merge rba without the iso region changes
51+
* handle trial component status message longer than API supports
52+
* Add nova custom lambda in hyperparameter from estimator
53+
* add retryable option to emr step in SageMaker Pipelines
54+
* Feature/js mlops telemetry
55+
* latest tgi
56+
57+
## v2.251.1 (2025-08-29)
58+
59+
### Bug Fixes and Other Changes
60+
61+
* chore: onboard tei 1.8.0
62+
63+
## v2.251.0 (2025-08-21)
64+
65+
### Features
66+
67+
* support pipeline versioning
68+
69+
### Bug Fixes and Other Changes
70+
71+
* GPT OSS Hotfix
72+
* dockerfile stuck on interactive shell
73+
* add sleep for model deployment
74+
75+
## v2.250.0 (2025-08-08)
76+
77+
### Features
78+
79+
* Add support for InstancePlacementConfig in Estimator for training jobs running on ultraserver capacity
80+
81+
### Bug Fixes and Other Changes
82+
83+
* Add more constraints to test requirements
84+
85+
## v2.249.0 (2025-07-31)
86+
87+
### Features
88+
89+
* AWS Batch for SageMaker Training jobs
90+
91+
### Bug Fixes and Other Changes
92+
93+
* Directly use customer-provided endpoint name for ModelBuilder deployment.
94+
* update image_uri_configs 07-23-2025 07:18:25 PST
95+
96+
## v2.248.2 (2025-07-22)
97+
98+
### Bug Fixes and Other Changes
99+
100+
* Relax boto3 version requirement
101+
* update image_uri_configs 07-22-2025 07:18:25 PST
102+
* update image_uri_configs 07-18-2025 07:18:28 PST
103+
* add hard dependency on sagemaker-core pypi lib
104+
* When rootlessDocker is enabled, return a fixed SageMaker IP
105+
106+
## v2.248.1 (2025-07-16)
107+
108+
### Bug Fixes and Other Changes
109+
110+
* Nova training support
111+
112+
## v2.248.0 (2025-07-15)
113+
114+
### Features
115+
116+
* integrate amtviz for visualization of tuning jobs
117+
118+
### Bug Fixes and Other Changes
119+
120+
* build(deps): bump requests in /tests/data/serve_resources/mlflow/pytorch
121+
* build(deps): bump protobuf from 4.25.5 to 4.25.8 in /requirements/extras
122+
* build(deps): bump mlflow in /tests/data/serve_resources/mlflow/xgboost
123+
* build(deps): bump torch in /tests/data/modules/script_mode
124+
* sanitize git clone repo input url
125+
* Adding Hyperpod feature to enable hyperpod telemetry
126+
* Adding Hyperpod feature to enable hyperpod telemetry
127+
* Bump SMD version to enable custom workflow deployment.
128+
* Update TF DLC python version to py312
129+
* update image_uri_configs 07-04-2025 07:18:27 PST
130+
* update image_uri_configs 06-26-2025 07:18:35 PST
131+
* relax protobuf to <6.32
132+
133+
## v2.247.1 (2025-06-23)
134+
135+
### Bug Fixes and Other Changes
136+
137+
* update image_uri_configs 06-19-2025 07:18:34 PST
138+
139+
## v2.247.0 (2025-06-13)
140+
141+
### Features
142+
143+
* Add support for MetricDefinitions in ModelTrainer
144+
145+
### Bug Fixes and Other Changes
146+
147+
* update jumpstart region_config, update image_uri_configs 06-12-2025 07:18:12 PST
148+
* Add ignore_patterns in ModelTrainer to ignore specific files/folders
149+
* Allow import failure for internal _hashlib module
150+
151+
## v2.246.0 (2025-06-04)
152+
153+
### Features
154+
155+
* Triton v25.04 DLC
156+
157+
### Bug Fixes and Other Changes
158+
159+
* Update Attrs version to widen support
160+
* update estimator documentation regarding hyperparameters for source_dir
161+
162+
## v2.245.0 (2025-05-28)
163+
164+
### Features
165+
166+
* Correct mypy type checking through PEP 561
167+
168+
### Bug Fixes and Other Changes
169+
170+
* MLFLow update for dependabot
171+
* addWaiterTimeoutHandling
172+
* merge method inputs with class inputs
173+
* update image_uri_configs 05-20-2025 07:18:17 PST
174+
175+
## v2.244.2 (2025-05-19)
176+
177+
### Bug Fixes and Other Changes
178+
179+
* include model channel for gated uncompressed models
180+
* clarify model monitor one time schedule bug
181+
* update jumpstart region_config 05-15-2025 07:18:15 PST
182+
* update image_uri_configs 05-14-2025 07:18:16 PST
183+
* Add image configs and region config for TPE (ap-east-2)
184+
* Improve defaults handling in ModelTrainer
185+
186+
## v2.244.1 (2025-05-15)
187+
188+
### Bug Fixes and Other Changes
189+
190+
* Fix Flask-Limiter version
191+
* Fix test_huggingface_tei_uris()
192+
* huggingface-llm-neuronx dlc
193+
* huggingface-neuronx dlc image_uri
194+
* huggingface-tei dlc image_uri
195+
* Fix test_deploy_with_update_endpoint()
196+
* add AG v1.3
197+
* parameter mismatch in update_endpoint
198+
* remove --strip-component for untar source tar.gz
199+
* Fix type annotations
200+
* chore: Allow omegaconf >=2.2,<3
201+
* honor json serialization of HPs
202+
* Map llama models to correct script
203+
* pin test dependency
204+
* fix bad initialization script error message
205+
* Improve error logging and documentation for issue 4007
206+
* build(deps): bump scikit-learn
207+
* build(deps): bump mlflow
208+
* build(deps): bump mlflow in /tests/data/serve_resources/mlflow/pytorch
209+
* chore: Add tei 1.6.0 image
210+
211+
## v2.244.0 (2025-05-02)
212+
213+
### Features
214+
215+
* support custom workflow deployment in ModelBuilder using SMD image.
216+
217+
### Bug Fixes and Other Changes
218+
219+
* Add Owner ID check for bucket with path when prefix is provided
220+
* Add model server timeout
221+
* pin mamba version to 24.11.3-2 to avoid inconsistent test runs
222+
* Update ModelTrainer to support s3 uri and tar.gz file as source_dir
223+
* chore: add huggingface images
224+
225+
## v2.243.3 (2025-04-23)
226+
227+
### Bug Fixes and Other Changes
228+
229+
* update readme to reflect py312 upgrade
230+
* Revert the PR changes 5122
231+
* Py312 upgrade step 2: Update dependencies, integ tests and unit tests
232+
* update pr test to deprecate py38 and add py312
233+
* update image_uri_configs 04-16-2025 07:18:18 PST
234+
* update image_uri_configs 04-15-2025 07:18:10 PST
235+
* update image_uri_configs 04-11-2025 07:18:19 PST
236+
237+
## v2.243.2 (2025-04-16)
238+
239+
### Bug Fixes and Other Changes
240+
241+
* tgi image uri unit tests
242+
* Fix deepdiff dependencies
243+
244+
## v2.243.1 (2025-04-11)
245+
246+
### Bug Fixes and Other Changes
247+
248+
* Added handler for pipeline variable while creating process job
249+
* Fix issue #4856 by copying environment variables
250+
* remove historical job_name caching which causes long job name
251+
* Update instance gpu info
252+
* Master
253+
* Add mlflow tracking arn telemetry
254+
* chore: fix semantic versioning for wildcard identifier
255+
* flaky test
256+
257+
### Documentation Changes
258+
259+
* update pipelines step caching examples to include more steps
260+
* update ModelStep data dependency info
261+
3262
## v2.243.0 (2025-03-27)
4263

5264
### Features

CONTRIBUTING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ information to effectively respond to your bug report or contribution.
1616
* [Run the Unit Tests](#run-the-unit-tests)
1717
* [Run the Integration Tests](#run-the-integration-tests)
1818
* [Make and Test Your Change](#make-and-test-your-change)
19+
* [Lint Your Change](#lint-your-change)
1920
* [Commit Your Change](#commit-your-change)
2021
* [Send a Pull Request](#send-a-pull-request)
2122
* [Documentation Guidelines](#documentation-guidelines)
@@ -117,6 +118,13 @@ If you are writing or modifying a test that creates a SageMaker job (training, t
117118
1. If your changes include documentation changes, please see the [Documentation Guidelines](#documentation-guidelines).
118119
1. If you include integration tests, do not mark them as canaries if they will not run in all regions.
119120

121+
### Lint Your Change
122+
123+
Before submitting, ensure your code meets our quality and style guidelines. Run:
124+
```shell
125+
tox -e flake8,pylint,docstyle,black-check,twine --parallel all
126+
```
127+
Address any errors or warnings before opening a pull request.
120128

121129
### Commit Your Change
122130

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,10 @@ Supported Python Versions
9494

9595
SageMaker Python SDK is tested on:
9696

97-
- Python 3.8
9897
- Python 3.9
9998
- Python 3.10
10099
- Python 3.11
100+
- Python 3.12
101101

102102
Telemetry
103103
~~~~~~~~~~~~~~~
@@ -191,9 +191,9 @@ Setup a Python environment, and install the dependencies listed in ``doc/require
191191
::
192192

193193
# conda
194-
conda create -n sagemaker python=3.7
194+
conda create -n sagemaker python=3.12
195195
conda activate sagemaker
196-
conda install sphinx=3.1.1 sphinx_rtd_theme=0.5.0
196+
conda install sphinx=5.1.1 sphinx_rtd_theme=0.5.0
197197

198198
# pip
199199
pip install -r doc/requirements.txt

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.243.1.dev0
1+
2.254.1.dev0

0 commit comments

Comments
 (0)