Skip to content

Commit 5bd3d6e

Browse files
authored
Merge branch 'master-ci-py312-pr-test' into master-ci-py312-new
2 parents ae7d6e1 + 8d88e28 commit 5bd3d6e

Some content is hidden

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

49 files changed

+1677
-606
lines changed

CHANGELOG.md

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

3+
## v2.243.0 (2025-03-27)
4+
5+
### Features
6+
7+
* Enabled update_endpoint through model_builder
8+
9+
### Bug Fixes and Other Changes
10+
11+
* Update for PT 2.5.1, SMP 2.8.0
12+
* chore: move jumpstart region definitions to json file
13+
* fix flaky clarify model monitor test
14+
* fix flaky spark processor integ
15+
* use temp file in unit tests
16+
* Update transformers version
17+
* Aligned disable_output_compression for @remote with Estimator
18+
* Update Jinja version
19+
* update image_uri_configs 03-26-2025 07:18:16 PST
20+
* chore: fix integ tests to use latest version of model
21+
* update image_uri_configs 03-25-2025 07:18:13 PST
22+
* Skip tests failed due to deprecated instance type
23+
* update image_uri_configs 03-21-2025 07:17:55 PST
24+
* factor in set instance type when building JumpStart models in ModelBuilder.
25+
* ADD Documentation to ReadtheDocs for Upgrading torch versions
26+
* add new regions to JUMPSTART_LAUNCHED_REGIONS
27+
28+
## v2.242.0 (2025-03-14)
29+
30+
### Features
31+
32+
* add integ tests for training JumpStart models in private hub
33+
34+
### Bug Fixes and Other Changes
35+
36+
* Torch upgrade
37+
* Prevent RunContext overlap between test_run tests
38+
* remove s3 output location requirement from hub class init
39+
* Fixing Pytorch training python version in tests
40+
* update image_uri_configs 03-11-2025 07:18:09 PST
41+
* resolve infinite loop in _find_config on Windows systems
42+
* pipeline definition function doc update
43+
344
## v2.241.0 (2025-03-06)
445

546
### Features

VERSION

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

doc/overview.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ To train a model by using the SageMaker Python SDK, you:
3030

3131
After you train a model, you can save it, and then serve the model as an endpoint to get real-time inferences or get inferences for an entire dataset by using batch transform.
3232

33+
34+
Important Note:
35+
36+
* When using torch to load Models, it is recommended to use version torch>=2.6.0 and torchvision>=0.17.0
37+
3338
Prepare a Training script
3439
=========================
3540

requirements/extras/test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ attrs>=23.1.0,<24
2020
fabric==2.6.0
2121
requests==2.32.2
2222
sagemaker-experiments==0.1.35
23-
Jinja2==3.1.4
23+
Jinja2==3.1.6
2424
pyvis==0.2.1
2525
pandas==1.4.4
2626
scikit-learn==1.3.0

src/sagemaker/fw_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@
155155
"2.3.0",
156156
"2.3.1",
157157
"2.4.1",
158+
"2.5.1",
158159
]
159160

160161
TRAINIUM_SUPPORTED_DISTRIBUTION_STRATEGIES = ["torch_distributed"]

src/sagemaker/huggingface/model.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ def deploy(
218218
container_startup_health_check_timeout=None,
219219
inference_recommendation_id=None,
220220
explainer_config=None,
221+
update_endpoint: Optional[bool] = False,
221222
**kwargs,
222223
):
223224
"""Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.
@@ -296,6 +297,11 @@ def deploy(
296297
would like to deploy the model and endpoint with recommended parameters.
297298
explainer_config (sagemaker.explainer.ExplainerConfig): Specifies online explainability
298299
configuration for use with Amazon SageMaker Clarify. (default: None)
300+
update_endpoint (Optional[bool]):
301+
Flag to update the model in an existing Amazon SageMaker endpoint.
302+
If True, this will deploy a new EndpointConfig to an already existing endpoint
303+
and delete resources corresponding to the previous EndpointConfig. Default: False
304+
Note: Currently this is supported for single model endpoints
299305
Raises:
300306
ValueError: If arguments combination check failed in these circumstances:
301307
- If no role is specified or
@@ -335,6 +341,7 @@ def deploy(
335341
container_startup_health_check_timeout=container_startup_health_check_timeout,
336342
inference_recommendation_id=inference_recommendation_id,
337343
explainer_config=explainer_config,
344+
update_endpoint=update_endpoint,
338345
**kwargs,
339346
)
340347

0 commit comments

Comments
 (0)