Skip to content

Commit e41aae6

Browse files
authored
Merge branch 'master' into fix-duplicate-transformer-docstring
2 parents fa86af4 + edec8c7 commit e41aae6

File tree

162 files changed

+3940
-842
lines changed

Some content is hidden

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

162 files changed

+3940
-842
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ _Put an `x` in the boxes that apply. You can also fill these out after creating
2222
- [ ] I have added unit and/or integration tests as appropriate to ensure backward compatibility of the changes
2323
- [ ] I have checked that my tests are not configured for a specific region or account (if appropriate)
2424
- [ ] I have used [`unique_name_from_base`](https://github.com/aws/sagemaker-python-sdk/blob/master/src/sagemaker/utils.py#L77) to create resource names in integ tests (if appropriate)
25+
- [ ] If adding any dependency in requirements.txt files, I have spell checked and ensured they exist in PyPi
2526

2627
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ ignore-mixin-members=yes
310310
# (useful for modules/projects where namespaces are manipulated during runtime
311311
# and thus existing member attributes cannot be deduced by static analysis. It
312312
# supports qualified module names, as well as Unix pattern matching.
313-
ignored-modules=distutils
313+
ignored-modules=
314314

315315
# List of class names for which member attributes should not be checked (useful
316316
# for classes with dynamically set attributes). This supports the use of
@@ -384,7 +384,7 @@ max-returns=6
384384
max-branches=12
385385

386386
# Maximum number of statements in function / method body
387-
max-statements=100
387+
max-statements=105
388388

389389
# Maximum number of parents for a class (see R0901).
390390
max-parents=7

CHANGELOG.md

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

3+
## v2.232.3 (2024-10-30)
4+
5+
### Bug Fixes and Other Changes
6+
7+
* update image_uri_configs 10-29-2024 07:17:56 PST
8+
* Skip pytorch tests incompatible with latest version 2.4.0
9+
* adding eu-central-2 bucket info to JS constants
10+
* update image_uri_configs 10-23-2024 11:26:03 PST
11+
* update image_uri_configs 10-17-2024 07:17:55 PST
12+
* update image_uri_configs 10-03-2024 07:17:59 PST
13+
* update image_uri_configs 09-27-2024 07:18:01 PST
14+
* modified pull request template
15+
* fixing typo in dependecy setup
16+
* release: huggingface tgi neuronx 0.0.25 image
17+
* Revert "update cloudpickle version to >=2.2.1 in pyproject.toml (#4899)"
18+
* update cloudpickle version to >=2.2.1 in pyproject.toml
19+
* update cloudpickle version to >=2.2.1
20+
* chore(deps): bump pyspark from 3.3.1 to 3.3.2 in /requirements/extras
21+
* changes for PT 2.4 currency upgrade
22+
* chore: add lmi image config in me-central-1
23+
* tests: Implement integration tests covering JumpStart PrivateHub workflows
24+
* Use Miniforge to replace MambaForge
25+
26+
## v2.232.2 (2024-10-03)
27+
28+
### Bug Fixes and Other Changes
29+
30+
* Pass kwargs to HuggingFaceModel.deploy()
31+
* improve logging and exception messages
32+
* remove deprecated distutils
33+
* update image_uri_configs 09-24-2024 07:18:00 PST
34+
35+
## v2.232.1 (2024-09-19)
36+
37+
### Bug Fixes and Other Changes
38+
39+
* update image_uri_configs 09-17-2024 07:17:54 PST
40+
* support latest container version in image_uris and DJLModel for lmi c…
41+
42+
## v2.232.0 (2024-09-12)
43+
44+
### Features
45+
46+
* add deployment config name in modelbuilder telemetry
47+
* add Clarify image URIs for us-isof
48+
49+
### Bug Fixes and Other Changes
50+
51+
* chore: add flaky test markers & skip region with low P3 instance capacity
52+
* update image_uri_configs 09-11-2024 11:54:11 PST
53+
* update image_uri_configs 09-10-2024 07:18:01 PST
54+
* [change] add us-gov and cn region repo accounts to djl and hugging face image metadata
55+
* update image_uri_configs 09-06-2024 07:17:55 PST
56+
* add us-gov region repo accounts to djl image metadata
57+
* pass name from modelbuilder constructor to created model
58+
59+
## v2.231.0 (2024-08-30)
60+
61+
### Features
62+
63+
* Add SageMaker Core to the dependency
64+
65+
### Bug Fixes and Other Changes
66+
67+
* Disable test_mnist_async
68+
* SMP v2.5
69+
* update image_uri_configs 08-29-2024 07:17:59 PST
70+
71+
## v2.230.0 (2024-08-28)
72+
73+
### Features
74+
75+
* FastAPI integration for In_Process Mode (2/2)
76+
77+
### Bug Fixes and Other Changes
78+
79+
* chore: add HF LLM neuronx 0.0.24 image
80+
* TF-2.16 test modification and handling
81+
* fix test fail
82+
* Add troubleshooting links to exceptions
83+
* cross account private hub model fine-tuning
84+
* chore: cleanup jumpstart factory
85+
* disable failing integration tests
86+
87+
## v2.229.0 (2024-08-15)
88+
89+
### Features
90+
91+
* Support for ModelBuilder In_Process Mode (1/2)
92+
* Pulling in dependencies (in_process mode) using conda environment
93+
* Add optional CodeArtifact login to FrameworkProcessing job script
94+
* implemented security-monitoring to send metrics to CW #1510
95+
96+
### Bug Fixes and Other Changes
97+
98+
* alt configs model deployment and training issues
99+
* fix keras extension in integ test
100+
* update image_uri_configs 08-13-2024 07:17:54 PST
101+
* trn1 instance family does not support volume size
102+
* Update model.py
103+
* removed log statement
104+
* update image_uri_configs 08-09-2024 07:18:00 PST
105+
* Added torchrun compatibility for distributet training across multiple GPUs in a single node (single instance)
106+
* BiasConfig type hint
107+
* add model monitor image accounts for ap-southeast-5 and eu-central-2
108+
* aligned UTC times with PST
109+
* ensure hpt jobs inherit tags from config
110+
* add JumpStart PDT and OSU regions
111+
* chore(deps): bump certifi in /src/sagemaker/serve/utils
112+
* Updates for DJL 0.29.0 release
113+
* chore(deps): bump apache-airflow from 2.9.2 to 2.9.3 in /requirements/extras
114+
* chore(deps): bump torch from 2.0.1 to 2.2.0 in /tests/data/serve_resources/mlflow/pytorch
115+
* avoided printing stack trace and escaped input
116+
* removing kwargs as this is breaking predictor_cls param for mode…
117+
3118
## v2.228.0 (2024-08-06)
4119

5120
### Features

VERSION

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

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ dependencies = [
4747
"psutil",
4848
"PyYAML~=6.0",
4949
"requests",
50+
"sagemaker-core>=1.0.0,<2.0.0",
51+
"sagemaker-mlflow",
5052
"schema",
5153
"smdebug_rulesconfig==1.0.1",
5254
"tblib>=1.7.0,<4",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
pyspark==3.3.1
1+
pyspark==3.3.2
22
sagemaker-feature-store-pyspark-3.3
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
accelerate>=0.24.1,<=0.27.0
22
sagemaker_schema_inference_artifacts>=0.0.5
3+
uvicorn>=0.30.1
4+
fastapi>=0.111.0
5+
nest-asyncio

requirements/extras/test_requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
tox==3.24.5
2+
numpy>=1.24.0
23
build[virtualenv]==1.2.1
34
flake8==4.0.1
45
pytest==6.2.5
@@ -23,7 +24,7 @@ Jinja2==3.1.4
2324
pyvis==0.2.1
2425
pandas>=1.3.5,<1.5
2526
scikit-learn==1.3.0
26-
cloudpickle==2.2.1
27+
cloudpickle>=2.2.1
2728
PyYAML==6.0
2829
# TODO find workaround
2930
xgboost>=1.6.2,<=1.7.6
@@ -40,3 +41,6 @@ schema==0.7.5
4041
tensorflow>=2.1,<=2.16
4142
mlflow>=2.12.2,<2.13
4243
huggingface_hub>=0.23.4
44+
uvicorn>=0.30.1
45+
fastapi>=0.111.0
46+
nest-asyncio

src/sagemaker/algorithm.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,20 @@ def __init__(
157157
available (default: ``None``).
158158
**kwargs: Additional kwargs. This is unused. It's only added for AlgorithmEstimator
159159
to ignore the irrelevant arguments.
160+
161+
Raises:
162+
ValueError:
163+
- If an AWS IAM Role is not provided.
164+
- Bad value for instance type.
165+
RuntimeError:
166+
- When setting up custom VPC, both subnets and security_group_ids are not provided
167+
- If instance_count > 1 (distributed training) with instance type local or local gpu
168+
- If LocalSession is not used with instance type local or local gpu
169+
- file:// output path used outside of local mode
170+
botocore.exceptions.ClientError:
171+
- algorithm arn is incorrect
172+
- insufficient permission to access/ describe algorithm
173+
- algorithm is in a different region
160174
"""
161175
self.algorithm_arn = algorithm_arn
162176
super(AlgorithmEstimator, self).__init__(

src/sagemaker/base_predictor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,8 @@ def update_endpoint(
430430
- If ``initial_instance_count``, ``instance_type``, or ``accelerator_type`` is
431431
specified and either ``model_name`` is ``None`` or there are multiple models
432432
associated with the endpoint.
433+
botocore.exceptions.ClientError: If SageMaker throws an error while creating
434+
endpoint config, describing endpoint or updating endpoint
433435
"""
434436
production_variants = None
435437
current_model_names = self._get_model_names()

0 commit comments

Comments
 (0)