Skip to content

Commit a28fb14

Browse files
author
Haonian Wang
committed
feature: Add business details and hyper parameters fields and update test_model_card.py
1 parent e5b47ea commit a28fb14

File tree

21 files changed

+900
-42
lines changed

21 files changed

+900
-42
lines changed

CHANGELOG.md

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

3+
## v2.131.1 (2023-02-03)
4+
5+
### Bug Fixes and Other Changes
6+
7+
* test dub gpu integs with p3
8+
* fix(experiments/run.py): Stop duplication of RUN_TC_TAG on Consecutive Experiment Runs
9+
* Enable load_run without name args in Transform env
10+
* Remove confusing log line emitted during feature group ingestion
11+
* Enable Experiment integ test on beta clients
12+
* Make test_processor_with_role_as_pipeline_parameter more concrete
13+
14+
### Documentation Changes
15+
16+
* add security note for the estimator hyperparameter arg
17+
* SageMaker distributed - model parallism library release note
18+
* Add a deprecation note for DetailedProfileConfig
19+
320
## v2.131.0 (2023-01-31)
421

522
### Features

VERSION

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

doc/api/governance/model_card.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,9 @@ see `Amazon SageMaker Model Cards <https://docs.aws.amazon.com/sagemaker/latest/
4141

4242
.. autoclass:: TrainingJobDetails
4343
:show-inheritance:
44+
45+
.. autoclass:: BusinessDetails
46+
:show-inheritance:
47+
48+
.. autoclass:: HyperParameter
49+
:show-inheritance:

doc/api/training/smd_model_parallel_release_notes/smd_model_parallel_change_log.rst

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,47 @@ New features, bug fixes, and improvements are regularly made to the SageMaker
66
distributed model parallel library.
77

88

9-
SageMaker Distributed Model Parallel 1.13.0 Release Notes
9+
SageMaker Distributed Model Parallel 1.14.0 Release Notes
1010
=========================================================
1111

12+
*Date: Jan. 30. 2023*
13+
14+
**Currency Updates**
15+
16+
* Added support for PyTorch v1.13.1
17+
18+
**Improvements**
19+
20+
* Upgraded the flash-attention (https://github.com/HazyResearch/flash-attention) library to v0.2.6.post1
21+
22+
**Migration to AWS Deep Learning Containers**
23+
24+
This version passed benchmark testing and is migrated to the following AWS Deep Learning Containers (DLC):
25+
26+
- SageMaker training container for PyTorch v1.13.1
27+
28+
.. code::
29+
30+
763104351884.dkr.ecr.<region>.amazonaws.com/pytorch-training:1.13.1-gpu-py39-cu117-ubuntu20.04-sagemaker
31+
32+
33+
Binary file of this version of the library for `custom container
34+
<https://docs.aws.amazon.com/sagemaker/latest/dg/model-parallel-sm-sdk.html#model-parallel-bring-your-own-container>`_ users:
35+
36+
- For PyTorch 1.13.1
37+
38+
.. code::
39+
40+
https://sagemaker-distributed-model-parallel.s3.us-west-2.amazonaws.com/pytorch-1.13.1/build-artifacts/2023-01-19-18-35/smdistributed_modelparallel-1.14.0-cp39-cp39-linux_x86_64.whl
41+
42+
----
43+
44+
Release History
45+
===============
46+
47+
SageMaker Distributed Model Parallel 1.13.0 Release Notes
48+
---------------------------------------------------------
49+
1250
*Date: Dec. 15. 2022*
1351

1452
**New Features**
@@ -46,16 +84,12 @@ This version passed benchmark testing and is migrated to the following AWS Deep
4684
Binary file of this version of the library for `custom container
4785
<https://docs.aws.amazon.com/sagemaker/latest/dg/model-parallel-sm-sdk.html#model-parallel-bring-your-own-container>`_ users:
4886

49-
- For PyTorch 1.12.0
87+
- For PyTorch 1.12.1
5088

5189
.. code::
5290
5391
https://sagemaker-distributed-model-parallel.s3.us-west-2.amazonaws.com/pytorch-1.12.1/build-artifacts/2022-12-08-21-34/smdistributed_modelparallel-1.13.0-cp38-cp38-linux_x86_64.whl
5492
55-
----
56-
57-
Release History
58-
===============
5993
6094
SageMaker Distributed Model Parallel 1.11.0 Release Notes
6195
---------------------------------------------------------
@@ -92,7 +126,7 @@ Binary file of this version of the library for `custom container
92126

93127
.. code::
94128
95-
https://sagemaker-distribu
129+
https://sagemaker-distributed-model-parallel.s3.us-west-2.amazonaws.com/pytorch-1.12.0/build-artifacts/2022-08-12-16-58/smdistributed_modelparallel-1.11.0-cp38-cp38-linux_x86_64.whl
96130
97131
SageMaker Distributed Model Parallel 1.10.1 Release Notes
98132
---------------------------------------------------------

doc/api/training/smp_versions/latest.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ depending on which version of the library you need to use.
1010
To use the library, reference the
1111
**Common API** documentation alongside the framework specific API documentation.
1212

13-
Version 1.11.0, 1.13.0 (Latest)
14-
===============================
13+
Version 1.11.0, 1.13.0, 1.14.0 (Latest)
14+
=======================================
1515

1616
To use the library, reference the Common API documentation alongside the framework specific API documentation.
1717

src/sagemaker/estimator.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,13 @@ def __init__(
423423
hyperparameters (dict[str, str] or dict[str, PipelineVariable]):
424424
A dictionary containing the hyperparameters to
425425
initialize this estimator with. (Default: None).
426+
427+
.. caution::
428+
You must not include any security-sensitive information, such as
429+
account access IDs, secrets, and tokens, in the dictionary for configuring
430+
hyperparameters. SageMaker rejects the training job request and returns an
431+
validation error for detected credentials, if such user input is found.
432+
426433
container_log_level (int or PipelineVariable): The log level to use within the container
427434
(default: logging.INFO). Valid values are defined in the Python
428435
logging module.
@@ -1335,6 +1342,7 @@ def deploy(
13351342
volume_size=None,
13361343
model_data_download_timeout=None,
13371344
container_startup_health_check_timeout=None,
1345+
inference_recommendation_id=None,
13381346
**kwargs,
13391347
):
13401348
"""Deploy the trained model to an Amazon SageMaker endpoint.
@@ -1412,6 +1420,9 @@ def deploy(
14121420
inference container to pass health check by SageMaker Hosting. For more information
14131421
about health check see:
14141422
https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-algo-ping-requests
1423+
inference_recommendation_id (str): The recommendation id which specifies the
1424+
recommendation you picked from inference recommendation job results and
1425+
would like to deploy the model and endpoint with recommended parameters.
14151426
**kwargs: Passed to invocation of ``create_model()``.
14161427
Implementations may customize ``create_model()`` to accept
14171428
``**kwargs`` to customize model creation during deploy.
@@ -1476,6 +1487,7 @@ def deploy(
14761487
volume_size=volume_size,
14771488
model_data_download_timeout=model_data_download_timeout,
14781489
container_startup_health_check_timeout=container_startup_health_check_timeout,
1490+
inference_recommendation_id=inference_recommendation_id,
14791491
)
14801492

14811493
def register(
@@ -2462,6 +2474,13 @@ def __init__(
24622474
using the default AWS configuration chain.
24632475
hyperparameters (dict[str, str] or dict[str, PipelineVariable]):
24642476
Dictionary containing the hyperparameters to initialize this estimator with.
2477+
2478+
.. caution::
2479+
You must not include any security-sensitive information, such as
2480+
account access IDs, secrets, and tokens, in the dictionary for configuring
2481+
hyperparameters. SageMaker rejects the training job request and returns an
2482+
validation error for detected credentials, if such user input is found.
2483+
24652484
tags (list[dict[str, str] or list[dict[str, PipelineVariable]]): List of tags for
24662485
labeling a training job. For more, see
24672486
https://docs.aws.amazon.com/sagemaker/latest/dg/API_Tag.html.
@@ -2939,6 +2958,13 @@ def __init__(
29392958
SageMaker. For convenience, this accepts other types for keys
29402959
and values, but ``str()`` will be called to convert them before
29412960
training.
2961+
2962+
.. caution::
2963+
You must not include any security-sensitive information, such as
2964+
account access IDs, secrets, and tokens, in the dictionary for configuring
2965+
hyperparameters. SageMaker rejects the training job request and returns an
2966+
validation error for detected credentials, if such user input is found.
2967+
29422968
container_log_level (int or PipelineVariable): Log level to use within the container
29432969
(default: logging.INFO). Valid values are defined in the Python
29442970
logging module.

src/sagemaker/huggingface/model.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def deploy(
209209
volume_size=None,
210210
model_data_download_timeout=None,
211211
container_startup_health_check_timeout=None,
212+
inference_recommendation_id=None,
212213
**kwargs,
213214
):
214215
"""Deploy this ``Model`` to an ``Endpoint`` and optionally return a ``Predictor``.
@@ -282,6 +283,9 @@ def deploy(
282283
inference container to pass health check by SageMaker Hosting. For more information
283284
about health check see:
284285
https://docs.aws.amazon.com/sagemaker/latest/dg/your-algorithms-inference-code.html#your-algorithms-inference-algo-ping-requests
286+
inference_recommendation_id (str): The recommendation id which specifies the
287+
recommendation you picked from inference recommendation job results and
288+
would like to deploy the model and endpoint with recommended parameters.
285289
Raises:
286290
ValueError: If arguments combination check failed in these circumstances:
287291
- If no role is specified or
@@ -317,6 +321,7 @@ def deploy(
317321
volume_size=volume_size,
318322
model_data_download_timeout=model_data_download_timeout,
319323
container_startup_health_check_timeout=container_startup_health_check_timeout,
324+
inference_recommendation_id=inference_recommendation_id,
320325
)
321326

322327
def register(

0 commit comments

Comments
 (0)